Sample source code for libRASCH
|
|
Here you will find some examples for the usage of libRASCH. For each
example the source code for all supported languages is
presented.
|
| |
Initialize libRASCH
|
|
This example shows how to start the usage of libRASCH and some
basic usage. The following steps will be shown
- init libRASCH
- get number of plugins
- find all measurements in a directory
C-Version --
Perl-Version --
Python-Version --
Matlab/Octave-Version
|
| |
Access Measurement
|
|
This example will show how to open a measurement and how to get
some information from a measurement. The following steps will be
shown
- open measurement
- get the number of sessions and the maximum sample rate
- get number of informations which are available about the measurement object
- get and print all measurement object infos
C-Version --
Perl-Version --
Python-Version --
Matlab/Octave-Version
|
| |
Access Recordings
|
|
This example will show how to get the root recording and some
information about it. The following steps will be shown
- get root recording
- get some general informations about the recording
- get some infos about all used recording devices
- get some infos about all recorded channels
C-Version --
Perl-Version --
Python-Version --
Matlab/Octave-Version
|
| |
Get Sample Data
|
|
This example will show how to get the recorded data. The following
steps will be shown
C-Version --
Perl-Version --
Python-Version --
Matlab/Octave-Version
|
| |
Access Evaluations
|
|
This example will show how to get the evaluation belonging to a
measurement and to get some information about it. The following
steps will be shown
- get default evaluation
- get some general infos about the evaluation
- get a list of event-properties
C-Version --
Perl-Version --
Python-Version --
Matlab/Octave-Version
|
| |
Get Events
|
|
This example will show how to get values associated with an
event. The following steps will be shown
- get RR intervals and the position of the QRS-complexes
- plot the tachogram of the measurement
C-Version --
Perl-Version --
Python-Version --
Matlab/Octave-Version
|
| |
Usage of Process-Plugins
|
|
This example will show how to calculate Heart-Rate-Variability
(HRV) using the process-plugin 'hrv'. The following steps will be shown
- get 'hrv' plugin
- calculate HRV using the plugin
- print the calculation results
C-Version --
Perl-Version --
Python-Version --
Matlab/Octave-Version
|
| |
Usage of view plugins
|
|
This example will show how to use view plugins. The example will
open a measurement and than display the measurement using the
'ra-view' plugin. This plugin is a wrapper, checking the recorded
signals in the measurement and than using best view plugins
to display the data.
At the moment only the C/C++ 'versions' of libRASCH can use view
plugins. It is planned to add support for view plugins in the other
available interfaces.
Qt-Version (Linux) --
MFC-Version (Windows)
|