User Tools

Site Tools


visual3d:documentation:pipeline:signal_commands:subtract_signals

This is an old revision of the document!


evaluate_expression]] command, which determines an appropriate rate automatically.** the command can be edited via text editor and dialog. the details on the dialog and command are found below: |subtract_signals.png |<code>\\ subtract_signals\\ /signal_types=the type of signal to be evaluated\\ /signal_names=the name of the signal to be evaluated\\ /signal_folder=the name of the signal folder\\ /result_folder= the name of the resulting folder\\ /result_names=the name of the resulting signal \\ /component_sequence= the component (x,y.z) of the signal to be used.\\ </code> | ---- ===== examples ===== here you will find three examples: ==== example 1: subtract two target signals ==== <code> !*********************************** ! distance between heel markers !*********************************** subtract_signals /signal_types=target+target /signal_names=lhee+rhee /signal_folder=processed+processed /result_name=heel_distance ! /result_folder=processed ; </code> ==== example 2: subtract a signal and a metric ==== <code> !****************************************************** ! take the vertical grf, subtract the body weight, and divide the result by body mass to ! get the vertical com acceleration !****************************************************** </code> <code> ! add the two signals from f1 and f2 - end result is grf for both plates add_signals /signal_types=force+force /signal_names=fp1+fp2 /signal_folder=processed+processed /result_name=grf /result_folder=processed ; ! subtract the body weight in n subtract_signals /signal_types=derived+metric /signal_folder=processed /signal_names=grf+mass_n /component_sequence=z, all /result_name=grf_r ! /result_folder=processed ; ! divide the result by body mass to get the vertical com acceleration divide_signals /signal_types=derived+metric /signal_folder=processed /signal_names=grf_r+mass /component_sequence=all /result_name=com_grf_z_accel ! /result_folder=processed ; </code> ==== example 3: subtract two metrics ==== <code> !****************************************************** ! subtract two metrics to calculate leg length !****************************************************** ! mean for left medial ankle standing height metric_mean /result_metric_name=lmma_height ! /apply_as_suffix_to_signal_name=false ! /result_metric_folder=processed /signal_types=target /signal_names=l_mank /signal_folder=processed /signal_components=z /event_sequence= /exclude_events= /generate_mean_and_stddev=false ! /append_to_existing_values=false ; ! mean for right medial ankle standing height metric_mean /result_metric_name=rmma_height ! /apply_as_suffix_to_signal_name=false ! /result_metric_folder=processed /signal_types=target /signal_names=r_mank /signal_folder=processed /signal_components=z /event_sequence= /exclude_events= /generate_mean_and_stddev=false ! /append_to_existing_values=false ; ! left leg length - distance between lasis and lmma heights subtract_signals /signal_types=metric+metric /signal_names=lasis_height+lmma_height /signal_folder=processed+processed /result_name=left_leg_length ! /result_folder=processed ; </code>

visual3d/documentation/pipeline/signal_commands/subtract_signals.1718804347.txt.gz · Last modified: 2024/06/19 13:39 by sgranger