visual3d:documentation:pipeline:force_commands:fp_zero
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
visual3d:documentation:pipeline:force_commands:fp_zero [2024/06/19 12:50] – sgranger | visual3d:documentation:pipeline:force_commands:fp_zero [2024/07/17 15:45] (current) – created sgranger | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | this page is about the c3d parameter force_platform: | + | ====== FP ZERO ====== |
- | the force_platform:zero c3d parameter defines the range of frames used to calculate an average | + | This page is about the C3D Parameter FORCE_PLATFORM:ZERO. For Visual3D' |
- | note that most of the manufacturers arbitrarily set the range to be the first 10 frames of the trial. | + | The FORCE_PLATFORM: |
+ | |||
+ | Note that most of the manufacturers arbitrarily set the range to be the first 10 frames of the trial. | ||
\\ | \\ | ||
- | ===== exceptions ===== | + | ==== Exceptions |
- | in some cases it is not feasible to use the zero parameter to define a baseline | + | In some cases it is not feasible to use the ZERO parameter to define a BASELINE |
- | in all 3 examples the zero parameter should be set to 0,0 so that no inadvertent baseline is removed. | + | In all 3 examples the ZERO parameter should be set to 0,0 so that no inadvertent baseline is removed. |
- | ==== example | + | === Example |
- | 1. subtracting | + | 1. Subtracting |
- | consider | + | Consider |
- | given 12 analog | + | Given 12 ANALOG |
- | fx1,fy1,fz1,fx2,fy2,fz2,fx3,fy3,fz3,fx4,fy4,fz4 | + | FX1,FY1,FZ1,FX2,FY2,FZ2,FX3,FY3,FZ3,FX4,FY4,FZ4 |
- | **for_each** | + | **For_Each** |
- | /iteration_parameter_name= signal_index | + | /Iteration_Parameter_Name= SIGNAL_INDEX |
- | /items= fx+fy+fz | + | /Items= FX+FY+FZ |
**;** | **;** | ||
- | **for_each** | + | **For_Each** |
- | /iteration_parameter_name= number | + | /Iteration_Parameter_Name= NUMBER |
- | /items= 1+2+3+4 | + | /Items= 1+2+3+4 |
**;** | **;** | ||
- | ! compute | + | ! Compute |
- | **metric_mean** | + | **Metric_Mean** |
- | /signal_types= analog | + | /Signal_types= ANALOG |
- | /signal_names= ::signal_index&::number | + | /Signal_Names= ::SIGNAL_INDEX&::NUMBER |
- | /signal_folder= original | + | /Signal_Folder= ORIGINAL |
- | /signal_components= all_components | + | /Signal_Components= ALL_COMPONENTS |
- | /event_sequence= lto+rhs | + | /Event_Sequence= LTO+RHS |
- | /exclude_events= | + | /Exclude_Events= |
- | /metric_name= _ | + | /Metric_Name= _ |
- | /apply_as_suffix_to_signal_name= true | + | /Apply_As_Suffix_To_Signal_Name= TRUE |
- | /generate_mean_and_stdev= true | + | /Generate_Mean_And_STDEV= TRUE |
- | /append_to_existing_values= false | + | /Append_To_Existing_Values= FALSE |
**;** | **;** | ||
- | **multiply_signals_by_constant** | + | **Multiply_Signals_By_Constant** |
- | /signal_types= metric | + | /Signal_types= METRIC |
- | /signal_names= ::signal_index&::number&%%__%%mean | + | /Signal_Names= ::SIGNAL_INDEX&::NUMBER&%%__%%MEAN |
- | /signal_folder= processed | + | /Signal_Folder= PROCESSED |
- | /result_names= offset | + | /Result_Names= OFFSET |
- | /result_suffix= | + | /Result_Suffix= |
- | /signal_components= | + | /Signal_Components= |
- | /constant= -1 | + | /Constant= -1 |
**;** | **;** | ||
- | **set_pipeline_parameter_to_data** | + | **Set_Pipeline_Parameter_To_Data** |
- | /parameter_name= baseline | + | /Parameter_Name= BASELINE |
- | /signal_types= metric | + | /Signal_types= METRIC |
- | /signal_names= offset | + | /Signal_Names= OFFSET |
- | /signal_folder= processed | + | /Signal_Folder= PROCESSED |
**;** | **;** | ||
- | ! **note** the following command creates an analog processed | + | ! **NOTE** The following command creates an ANALOG PROCESSED |
- | **add_constant_to_signals** | + | **Add_Constant_To_Signals** |
- | /signal_types= analog | + | /Signal_types= ANALOG |
- | /signal_names= ::signal_index&::number | + | /Signal_Names= ::SIGNAL_INDEX&::NUMBER |
- | /signal_folder= original | + | /Signal_Folder= ORIGINAL |
- | /result_names= | + | /Result_Names= |
- | /result_suffix= | + | /Result_Suffix= |
- | /signal_components= | + | /Signal_Components= |
- | /constant= ::baseline | + | /Constant= ::BASELINE |
**;** | **;** | ||
- | **end_for_each** | + | **End_For_Each** |
- | /iteration_parameter_name= number | + | /Iteration_Parameter_Name= NUMBER |
**;** | **;** | ||
- | **end_for_each** | + | **End_For_Each** |
- | /iteration_parameter_name= signal_index | + | /Iteration_Parameter_Name= SIGNAL_INDEX |
**;** | **;** | ||
- | ==== example | + | === Example |
- | subtracting | + | Subtracting |
- | consider | + | Consider |
- | given 12 analog | + | Given 12 ANALOG |
- | fx1,fy1,fz1,fx2,fy2,fz2,fx3,fy3,fz3,fx4,fy4,fz4 | + | FX1,FY1,FZ1,FX2,FY2,FZ2,FX3,FY3,FZ3,FX4,FY4,FZ4 |
- | ! compute | + | ! Compute |
- | **metric_mean** | + | **Metric_Mean** |
- | /result_metric_name=_base | + | /RESULT_METRIC_NAME=_BASE |
- | /apply_as_suffix_to_signal_name=true | + | /APPLY_AS_SUFFIX_TO_SIGNAL_NAME=TRUE |
- | ! /result_metric_folder=processed | + | ! /RESULT_METRIC_FOLDER=PROCESSED |
- | /signal_types=analog | + | /SIGNAL_TYPES=ANALOG |
- | ! /signal_names= | + | ! /SIGNAL_NAMES= |
- | ! /signal_folder=original | + | ! /SIGNAL_FOLDER=ORIGINAL |
- | ! /signal_components=all_components | + | ! /SIGNAL_COMPONENTS=ALL_COMPONENTS |
- | /event_sequence=loff+ron | + | /EVENT_SEQUENCE=LOFF+RON |
- | /exclude_events= | + | /EXCLUDE_EVENTS= |
- | ! /generate_mean_and_stddev=true | + | ! /GENERATE_MEAN_AND_STDDEV=TRUE |
- | ! /append_to_existing_values=false | + | ! /APPEND_TO_EXISTING_VALUES=FALSE |
**;** | **;** | ||
- | ! setup a for each loop over the analog | + | ! Setup a for each loop over the ANALOG |
- | **for_each** | + | **For_Each** |
- | /iteration_parameter_name=signal_index | + | /ITERATION_PARAMETER_NAME=SIGNAL_INDEX |
- | /items=f1x1+f1y1+f1z1+f1x2+f1y2+f1z2+f1x3+f1y3+f1z3+f1x4+f1y4+f1z4 | + | /ITEMS=F1X1+F1Y1+F1Z1+F1X2+F1Y2+F1Z2+F1X3+F1Y3+F1Z3+F1X4+F1Y4+F1Z4 |
**;** | **;** | ||
- | ! subtract | + | ! Subtract |
- | **set_pipeline_parameter** | + | **Set_Pipeline_Parameter** |
- | /parameter_name=temp | + | /PARAMETER_NAME=TEMP |
- | /parameter_value=analog::original::&::signal_index | + | /PARAMETER_VALUE=ANALOG::ORIGINAL::&::SIGNAL_INDEX |
**;** | **;** | ||
- | **set_pipeline_parameter** | + | **Set_Pipeline_Parameter** |
- | /parameter_name=base | + | /PARAMETER_NAME=BASE |
- | /parameter_value=metric::processed::&::signal_index&_base_mean | + | /PARAMETER_VALUE=METRIC::PROCESSED::&::SIGNAL_INDEX&_BASE_MEAN |
**;** | **;** | ||
- | **set_pipeline_parameter** | + | **Set_Pipeline_Parameter** |
- | /parameter_name=expression | + | /PARAMETER_NAME=EXPRESSION |
- | /parameter_value=::temp& | + | /PARAMETER_VALUE=::TEMP& |
**;** | **;** | ||
- | ! now we can evaluate the expression. | + | ! Now we can evaluate the expression. |
- | **evaluate_expression** | + | **Evaluate_Expression** |
- | /expression=::expression | + | /EXPRESSION=::EXPRESSION |
- | /result_name=::signal_index | + | /RESULT_NAME=::SIGNAL_INDEX |
- | /result_type=analog | + | /RESULT_TYPE=ANALOG |
- | /result_folder=processed | + | /RESULT_FOLDER=PROCESSED |
**;** | **;** | ||
- | **end_for_each** | + | **End_For_Each** |
- | /iteration_parameter_name=signal_index | + | /ITERATION_PARAMETER_NAME=SIGNAL_INDEX |
**;** | **;** | ||
- | ==== example | + | === Example |
- | computing | + | Computing |
- | for this example assume that: | + | For this example assume that: |
- | - one of the files has tag=walk. | + | - one of the files has TAG=walk. |
- | - there are two amti force platforms | + | - there are two AMTI force platforms |
- the force platforms are unloaded for the first 50 frames | - the force platforms are unloaded for the first 50 frames | ||
- | ! create | + | ! Create |
- | **select_active_file** | + | **Select_Active_File** |
- | /file_name=walk | + | /FILE_NAME=walk |
- | ! /query= | + | ! /QUERY= |
**;** | **;** | ||
- | **explicit** | + | **Explicit** |
- | /event_name=frame1 | + | /EVENT_NAME=FRAME1 |
- | /frame=1 | + | /FRAME=1 |
**;** | **;** | ||
- | **explicit** | + | **Explicit** |
- | /event_name=frame50 | + | /EVENT_NAME=FRAME50 |
- | /frame=50 | + | /FRAME=50 |
**;** | **;** | ||
- | ! compute | + | ! Compute |
- | **metric_mean** | + | **Metric_Mean** |
- | /result_metric_name=_ | + | /RESULT_METRIC_NAME=_ |
- | /apply_as_suffix_to_signal_name=true | + | /APPLY_AS_SUFFIX_TO_SIGNAL_NAME=TRUE |
- | ! /result_metric_folder=processed | + | ! /RESULT_METRIC_FOLDER=PROCESSED |
- | /signal_types=analog+analog+analog+analog+analog+analog+analog+analog+analog+analog+analog+analog | + | /SIGNAL_TYPES=ANALOG+ANALOG+ANALOG+ANALOG+ANALOG+ANALOG+ANALOG+ANALOG+ANALOG+ANALOG+ANALOG+ANALOG |
- | /signal_names=f1x+f1y+f1z+f2x+f2y+f2z+m1x+m1y+m1z+m2x+m2y+m2z | + | /SIGNAL_NAMES=F1X+F1Y+F1Z+F2X+F2Y+F2Z+M1X+M1Y+M1Z+M2X+M2Y+M2Z |
- | /signal_folder=original+original+original+original+original+original+original+original+original+original+original+original | + | /SIGNAL_FOLDER=ORIGINAL+ORIGINAL+ORIGINAL+ORIGINAL+ORIGINAL+ORIGINAL+ORIGINAL+ORIGINAL+ORIGINAL+ORIGINAL+ORIGINAL+ORIGINAL |
- | /signal_components=x | + | /SIGNAL_COMPONENTS=X |
- | /event_sequence=frame1+frame50 | + | /EVENT_SEQUENCE=FRAME1+FRAME50 |
- | /exclude_events= | + | /EXCLUDE_EVENTS= |
- | ! /generate_mean_and_stddev=true | + | ! /GENERATE_MEAN_AND_STDDEV=TRUE |
- | ! /append_to_existing_values=false | + | ! /APPEND_TO_EXISTING_VALUES=FALSE |
**;** | **;** | ||
- | ! construct | + | ! Construct |
- | **for_each** | + | **For_Each** |
- | /iteration_parameter_name=sig | + | /ITERATION_PARAMETER_NAME=SIG |
- | /items=f1x+f1y+f1z+m1x+m1y+m1z+f2x+f2y+f2z+m2x+m2y+m2z | + | /ITEMS=F1X+F1Y+F1Z+M1X+M1Y+M1Z+F2X+F2Y+F2Z+M2X+M2Y+M2Z |
**;** | **;** | ||
- | ! set the active folder to global | + | ! Set the active folder to GLOBAL |
- | **select_active_file** | + | **Select_Active_File** |
- | /file_name=global | + | /FILE_NAME=GLOBAL |
- | ! /query= | + | ! /QUERY= |
**;** | **;** | ||
- | **set_pipeline_parameter_to_data_value** | + | **Set_Pipeline_Parameter_To_Data_Value** |
- | /parameter_name=temp | + | /PARAMETER_NAME=TEMP |
- | /signal_types=metric | + | /SIGNAL_TYPES=METRIC |
- | /signal_names=::sig&%%__%%mean | + | /SIGNAL_NAMES=::SIG&%%__%%MEAN |
- | /signal_folder=processed | + | /SIGNAL_FOLDER=PROCESSED |
- | ! /index= | + | ! /INDEX= |
**;** | **;** | ||
- | ! define | + | ! Define |
- | **set_pipeline_parameter** | + | **Set_Pipeline_Parameter** |
- | /parameter_name=equation | + | /PARAMETER_NAME=EQUATION |
- | /parameter_value=analog::original::&::sig& | + | /PARAMETER_VALUE=ANALOG::ORIGINAL::&::SIG& |
- | ! /parameter_value_search_for= | + | ! /PARAMETER_VALUE_SEARCH_FOR= |
- | ! /parameter_value_replace_with= | + | ! /PARAMETER_VALUE_REPLACE_WITH= |
- | ! /parameter_value_append= | + | ! /PARAMETER_VALUE_APPEND= |
**;** | **;** | ||
- | ! make all of the files in the workspace | + | ! Make all of the files in the Workspace |
- | **select_active_file** | + | **Select_Active_File** |
- | /file_name=all_files | + | /FILE_NAME=ALL_FILES |
- | ! /query= | + | ! /QUERY= |
**;** | **;** | ||
- | **evaluate_expression** | + | **Evaluate_Expression** |
- | /expression=::equation | + | /EXPRESSION=::EQUATION |
- | /result_name=::sig | + | /RESULT_NAME=::SIG |
- | /result_type=analog | + | /RESULT_TYPE=ANALOG |
- | ! /result_folder=processed | + | ! /RESULT_FOLDER=PROCESSED |
**;** | **;** | ||
- | ! for example, the first time through the loop /expression= analog::original::f1x - ::sig%%__%%mean | + | ! For example, the first time through the loop /EXPRESSION= ANALOG::ORIGINAL::F1X - ::SIG%%__%%MEAN |
- | **end_for_each** | + | **End_For_Each** |
- | /iteration_parameter_name=sig | + | /ITERATION_PARAMETER_NAME=SIG |
**;** | **;** | ||
visual3d/documentation/pipeline/force_commands/fp_zero.1718801452.txt.gz · Last modified: 2024/06/19 12:50 by sgranger