Import Analog Signals From AMTI Ascii File

From Software Product Documentation
Jump to navigation Jump to search

For example a file containing 6 signals would appear as:

-0.7106 , 0.0000 , 0.0000 , 0.0000 ,-22.4939 , 11.1253

-0.7106 , 0.0000 , 0.0000 , 0.0000 , 0.0000 , 11.1253

-0.7106 , 0.0000 , 0.0000 , 0.0000 , 0.0000 , 11.1253

-0.7106 , 0.0000 , 0.0000 , 0.0000 , 0.0000 , 11.1253

......

Visual3D assigns default signal names.

A001 , A002 , A003 , A004 , A005 , A006


If these names exist in the c3d file already, Visual3D checks the command parameter /Replace_Existing_Signals to see if the signal should be replaced. If the signal should not be replaced, the name is incremented again.


In order to automate the processing of many files, Visual3D assumes that the ascii file as the same name as the c3d file, but .c3d is replaced with _a.txt

For example: c3d file = c:/test.c3d

ascii file = c:/test_a.txt


The following command acts on all of the ACTIVE_FILES in the Visual3D Workspace.

Import_Analog_Signals_From_Amti_Ascii_File
! /REPLACE_EXISTING_SIGNALS=TRUE
/FREQUENCY= the analog frequency
! /FOLDER=
;

The command assumes that the user is specifying the analog (sampling) frequency because this information is not contained in the data file.

The analog frequency must be an integer multiple of the Motion Capture sampling rate. This command does not resample the data.


If there are more samples of Analog data than would fill corresponding frames of MoCap data, Visual3D just adds the additional frames.

If there are two few frames, the signal is buffered with zeros at the end.


Back to Pipeline Commands Reference

Retrieved from ""