Shift Frames

From Software Product Documentation
Jump to navigation Jump to search
Language:  English  • français • italiano • português • español 

In some cases, the EMG data and Motion Capture data may be out of sync with each other. This can occur because of a physiological issue known as electromechanical delay (EMD), or because of technical issues with data collection (e.g. the saved EMG signal might be "delayed" because the EMG system is wireless).

The command Shift_Frames shifts a signal forward/backward in time by a number of frames. The command is below:

Shift_Frames
/SIGNAL_TYPES=ANALOG
! /SIGNAL_NAMES=
! /SIGNAL_FOLDER=ORIGINAL 
! /RESULT_SUFFIX= 
! /RESULT_FOLDER=PROCESSED 
/FRAME_SHIFT= The number of frames to shift (expression) 
/REPLACEMENT_VALUE= The value to replace the unknown values caused by the shift (expression).
;
  • When a signal is shifted forward in time, the frames at the beginning of the file have unknown values.
  • When a signal is shifted backward in time, the frames at the end of the file have unknown values.
  • These unknown values can be specified by the /Replacement_Value parameter.
  • If no /Replacement_Value is specified Visual 3D uses a value of 0 except when the Signal_Type parameter is a TARGET and value of DATA_NOT_FOUND (e.g. unreliable value) is used.

For example, shift all analog signals in time based on the value of a Metric signal and replace the unknown values with DATA_NOT_FOUND (e.g. no value).

! Shift Frames - the shift value METRIC::PROCESSED::SHIFT was calculated previously 
Shift_Frames
/SIGNAL_TYPES=ANALOG
! /SIGNAL_NAMES= 
! /SIGNAL_FOLDER=ORIGINAL 
! /RESULT_SUFFIX= 
! /RESULT_FOLDER=PROCESSED 
/FRAME_SHIFT= METRIC::PROCESSED::SHIFT 
/REPLACEMENT_VALUE= DATA_NOT_FOUND
;   

NOTE: FORCE, COFP, and FREEMOMENT signals are derived from ANALOG signals, so these values cannot be shifted; the Analog signals should be shifted, and the option to use PROCESSED analog signals for computing forces should be set to true.

For example, to shift the signal 1FX by one analog frame and to replace the first frame with the value -99

Shift_Frames
/SIGNAL_TYPES=ANALOG
/SIGNAL_NAMES=1FX
! /SIGNAL_FOLDER=ORIGINAL
! /RESULT_SUFFIX=
! /RESULT_FOLDER=PROCESSED
/FRAME_SHIFT=1
/REPLACEMENT_VALUE=-99
:
Retrieved from ""