Updated: 27-Sep-2005 16:32 | ||||||
AOPI: File Playback |
||||||
The File Playback Analog Output Plug-In (AOPI) allows you to use an acquired signal as an analog output pattern. Or you can produce your own patterns. There are three steps to playback a file:
Generate a Data File for PlaybackThere are at least two ways to generate a data file for playback:
The file format is discussed below. File FormatThe file is a plain ASCII file that can be viewed and edited in any text editor, e.g. NotePad. Also Excel can load and generate this type of file (tab delimited text). Data are organized in one column: The first four rows form a header, all following rows contain data samples. The header rows contain:
Note: The number format must comply with the settings for decimal point (comma in Denmark) on the computer where it is to be played back! - Unfortunately this does not make the files easy portable from country to country, but it's easier to load into e.g. Excel in the country where data were exported... Set UpThe parameters of analog output plug-ins are subject to classification,
if classification method is set to Stim.
Type and Act On to Analog Output. If analog output is not classified
only class 0.0 will be available, otherwise you choose the class for which
to set parameters via the Class control. Each defined class may have its
own set of parameters.
Refer to the example below for further instructions. Also the following parameters are available:
The Keep / Restore and Copy / Paste buttons feature the same functionality here as explained elsewhere. ExampleA subject was asked to walk on a treadmill, while the ankle angle was measured. A sweep length of two seconds were chosen to acquire approx. two full strides. The ankle movement was exported via the Export Single Trace feature (full trace). We may now restore that movement on another device and/or maybe another subject. This allows us to measure e.g. during passive movement or at static contraction levels. From the File Playback Setup panel we Load the file w. Edit, which opens the Edit File Playback panel. The upper graph displays the data found in the file. Here we may set
the markers to cut out the exact part of the stride we want to play back.
Then press Apply. Use Restore to get back to the original cut. Note: The baseline of the signal is shifted so that both endpoints
- the first and last samples - become zero. This is in order to avoid
rapid jumps if played back to a (potentially strong) actuator. You may also boost or attenuate the signal via the Gain parameter. The sample rate during acquisition may differ from the playback update rate. Mr. Kick will automatically resample the signal if needed. You may also do that here: Enable the Set Fs option and supply the analog output (playback) update rate. This will lower the workload on the computer during acquisition. Changes to parameters only take effect when you press Apply! If you Load wo. Edit the full file will be loaded and the End-Point Zero baseline shift will be applied. |
||||||