![]() |
libRASCH |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
3.4. Get Sample DataThe example will show how to get the root recording and some information about it. We will perform the following steps:
When more than one recording device was used, the root recording provides access to the channels as if they were recorded with one device. rasch@rasch:~> octave GNU Octave, version 2.1.50 (i686-pc-linux-gnu). ... octave:1> ra=ra_lib_init ra = 145017272 octave:2> meas=ra_meas_open(ra, '/home/rasch/ecgs/AT011030_rdi.ART', 0) meas = 145244336 octave:3> rec=ra_rec_get_first(meas, 0) rec = 145421120 octave:4> num_ch=ra_rec_get_info(rec, 'rec_num_channel') num_ch = 5 octave:5> ch_all=[]; octave:6> for i=0:(num_ch-1) > ch=ra_raw_get(rec, i, 0, 10000); Figure 3-1 shows a screenshot of Octave after performing the above steps. Each plot window on the right side shows a recording channel. The x-axis is in seconds. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||