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/07/12 14:04] – created sgranger | visual3d:documentation:pipeline:force_commands:fp_zero [2026/06/09 20:38] (current) – wikisysop | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== |
| - | This page is about the C3D Parameter FORCE_PLATFORM: | + | **NOTE**: |
| The FORCE_PLATFORM: | The FORCE_PLATFORM: | ||
| - | Note that most of the manufacturers arbitrarily set the range to be the first 10 frames of the trial. If the force platform is loaded during these first 10 frames, the ground reaction force signals will be incorrect; in this case the user should either set the frames to 0,0 so that no baseline is subtracted, or should | + | Note that most of the manufacturers arbitrarily set the range to be the first 10 frames of the trial. If the force platform is loaded during these first 10 frames, the ground reaction force signals will be incorrect; in this case the user should either: |
| + | * set the frames to 0,0 so that no baseline is subtracted; or | ||
| + | * select frames in which the force platform is unloaded. | ||
| - | \\ | + | ===== Modify_Force_Platform_Parameters ===== |
| + | The FP_ZERO parameter can be updated using the [[visual3d: | ||
| - | ==== Exceptions ==== | + | < |
| + | Modify_Force_Platform_Parameters | ||
| + | /FP_USED=2 | ||
| + | /FP_ZERO=0+0 | ||
| + | /FP_ZEROS=0+0+0+0 | ||
| + | ; | ||
| + | </ | ||
| - | In some cases it is not feasible to use the ZERO parameter to define a BASELINE for each signal. All force platform signals have some drift in the amplifiers, so it isn't a good idea to simply set the ZERO parameter to 0,0 so that no baseline is subtracted. | + | **NOTE**: |
| - | In all 3 examples the ZERO parameter should be set to 0,0 so that no inadvertent baseline is removed. | + | ===== General Examples ===== |
| - | === Example 1 === | + | The following two examples are general examples for working with the ZERO parameter. |
| - | 1. Subtracting | + | ==== Example |
| - | Consider a subject running on an instrumented | + | For non-treadmill |
| - | Given 12 ANALOG signals associated with a type 6 Force Platform: | + | < |
| + | Modify_Force_Platform_Parameters | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | ; | ||
| + | </ | ||
| - | FX1, | + | |
| - | **For_Each** | + | ==== Example 2: Using COFP DATA_NOT_FOUND for Treadmill Trials ==== |
| + | |||
| + | Working with treadmill data, we suggest finding a period of time for each force platform where the [[visual3d: | ||
| + | |||
| + | ===== Examples Removing Baselines without the ZERO Parameter ===== | ||
| + | |||
| + | In some cases it is not feasible to use the ZERO parameter to define a BASELINE for each signal. All force platform signals have some drift in the amplifiers, so it isn't a good idea to simply set the ZERO parameter to 0,0 so that no baseline is subtracted. The following three examples demonstrate alternatives to using the ZERO parameter to remove a baseline. In each example the ZERO parameter is set to 0,0 so that no inadvertent baseline is removed: | ||
| + | |||
| + | ==== Example 1: Subtract the mean value for several frame ranges ==== | ||
| + | |||
| + | This example demonstrates how to subtract the mean value from several ranges from each analog signal. Consider a subject running on an instrumented treadmill. The mean value of each ANALOG signal is determined when the subject is airborne (e.g. between LTO and RHS) and a collection of these airborne phases are averaged. This overall mean value is to be subtracted from each ANALOG signal. The option to use Processed Analog signals for the Force Platform calculations should be selected. The FORCE_PLATFORM: | ||
| + | |||
| + | Given 12 ANALOG signals associated with a type 6 Force Platform: | ||
| + | |||
| + | < | ||
| + | For_Each | ||
| / | / | ||
| /Items= FX+FY+FZ | /Items= FX+FY+FZ | ||
| - | **;** | + | ; |
| - | **For_Each** | + | |
| + | For_Each | ||
| / | / | ||
| /Items= 1+2+3+4 | /Items= 1+2+3+4 | ||
| - | **;** | + | ; |
| ! Compute the mean value of the airborne phases. | ! Compute the mean value of the airborne phases. | ||
| - | **Metric_Mean** | + | Metric_Mean |
| / | / | ||
| / | / | ||
| Line 45: | Line 77: | ||
| / | / | ||
| / | / | ||
| - | **;** | + | ; |
| - | **Multiply_Signals_By_Constant** | + | |
| + | Multiply_Signals_By_Constant | ||
| / | / | ||
| / | / | ||
| Line 54: | Line 87: | ||
| / | / | ||
| /Constant= -1 | /Constant= -1 | ||
| - | **;** | + | ; |
| - | **Set_Pipeline_Parameter_To_Data** | + | |
| + | Set_Pipeline_Parameter_To_Data | ||
| / | / | ||
| / | / | ||
| / | / | ||
| / | / | ||
| - | **;** | + | ; |
| ! **NOTE** The following command creates an ANALOG PROCESSED signal, not a DERIVED PROCESSED signal. | ! **NOTE** The following command creates an ANALOG PROCESSED signal, not a DERIVED PROCESSED signal. | ||
| - | **Add_Constant_To_Signals** | + | |
| + | Add_Constant_To_Signals | ||
| / | / | ||
| / | / | ||
| Line 70: | Line 106: | ||
| / | / | ||
| / | / | ||
| - | **;** | + | ; |
| - | **End_For_Each** | + | |
| + | End_For_Each | ||
| / | / | ||
| - | **;** | + | ; |
| - | **End_For_Each** | + | |
| + | End_For_Each | ||
| / | / | ||
| - | **;** | + | ; |
| - | === Example 2 === | + | </ |
| - | Subtracting the mean value from several ranges | + | ==== Example 2: Using Evaluate_Expression to subtract |
| - | Consider | + | Again we will see how to subtract from each analog signal its mean value computed from several frame ranges; this time using Evaluate_Expression. Again we consider |
| - | Given 12 ANALOG signals associated with a type 6 Force Platform: | + | Given 12 ANALOG signals associated with a type 6 Force Platform:FX1, |
| - | FX1, | + | < |
| ! Compute the mean values for all ANALOG signals. | ! Compute the mean values for all ANALOG signals. | ||
| - | **Metric_Mean** | + | |
| + | Metric_Mean | ||
| / | / | ||
| / | / | ||
| Line 99: | Line 138: | ||
| ! / | ! / | ||
| ! / | ! / | ||
| - | **;** | + | ; |
| ! Setup a for each loop over the ANALOG signals | ! Setup a for each loop over the ANALOG signals | ||
| - | **For_Each** | + | |
| + | For_Each | ||
| / | / | ||
| / | / | ||
| - | **;** | + | ; |
| ! Subtract the mean value from each signal. This step is a little quirky because I chose to use the evaluate_expression to perform this task. Unfortunately the (::) identified gets confused when four colons (e.g. :::: | ! Subtract the mean value from each signal. This step is a little quirky because I chose to use the evaluate_expression to perform this task. Unfortunately the (::) identified gets confused when four colons (e.g. :::: | ||
| - | **Set_Pipeline_Parameter** | + | |
| + | Set_Pipeline_Parameter | ||
| / | / | ||
| / | / | ||
| - | **;** | + | ; |
| - | **Set_Pipeline_Parameter** | + | |
| + | Set_Pipeline_Parameter | ||
| / | / | ||
| / | / | ||
| - | **;** | + | ; |
| - | **Set_Pipeline_Parameter** | + | |
| + | Set_Pipeline_Parameter | ||
| / | / | ||
| / | / | ||
| - | **;** | + | ; |
| - | ! Now we can evaluate the expression. | + | |
| - | **Evaluate_Expression** | + | ! Now we can evaluate the expression. |
| + | |||
| + | Evaluate_Expression | ||
| / | / | ||
| / | / | ||
| / | / | ||
| / | / | ||
| - | **;** | + | ; |
| - | **End_For_Each** | + | |
| + | End_For_Each | ||
| / | / | ||
| - | **;** | + | ; |
| - | === Example 3 === | + | </ |
| - | Computing | + | ==== Example 3: Using mean values |
| - | For this example assume that: | + | This example demonstrates how to compute mean values for the force platform analog signals in one trial, and then use these values in other trials. |
| - | + | | |
| - | | + | |
| - | | + | |
| - | | + | |
| + | < | ||
| ! Create events to identify Frame 1 and Frame 50 in the file with TAG=walk | ! Create events to identify Frame 1 and Frame 50 in the file with TAG=walk | ||
| - | **Select_Active_File** | + | |
| + | Select_Active_File | ||
| / | / | ||
| ! /QUERY= | ! /QUERY= | ||
| - | **;** | + | ; |
| - | **Explicit** | + | |
| + | Explicit | ||
| / | / | ||
| /FRAME=1 | /FRAME=1 | ||
| - | **;** | + | ; |
| - | **Explicit** | + | |
| + | Explicit | ||
| / | / | ||
| /FRAME=50 | /FRAME=50 | ||
| - | **;** | + | ; |
| ! Compute the mean value of the force platform ANALOG signals | ! Compute the mean value of the force platform ANALOG signals | ||
| - | **Metric_Mean** | + | |
| + | Metric_Mean | ||
| / | / | ||
| / | / | ||
| Line 164: | Line 217: | ||
| ! / | ! / | ||
| ! / | ! / | ||
| - | **;** | + | ; |
| ! Construct a For_Each loop to process each ANALOG signal independently | ! Construct a For_Each loop to process each ANALOG signal independently | ||
| - | **For_Each** | + | |
| + | For_Each | ||
| / | / | ||
| / | / | ||
| - | **;** | + | ; |
| ! Set the active folder to GLOBAL and create a pipeline parameter for appropriate MEAN signal | ! Set the active folder to GLOBAL and create a pipeline parameter for appropriate MEAN signal | ||
| - | **Select_Active_File** | + | |
| + | Select_Active_File | ||
| / | / | ||
| ! /QUERY= | ! /QUERY= | ||
| - | **;** | + | ; |
| - | **Set_Pipeline_Parameter_To_Data_Value** | + | |
| + | Set_Pipeline_Parameter_To_Data_Value | ||
| / | / | ||
| / | / | ||
| Line 181: | Line 239: | ||
| / | / | ||
| ! /INDEX= | ! /INDEX= | ||
| - | **;** | + | ; |
| ! Define a pipeline parameter to create the expression that we will evaluate in the next step. This is a little awkward but necessary because if we tried to use the evaluation expression with pipeline parameters it get's confused (maybe someday we will find a solution to this problem). | ! Define a pipeline parameter to create the expression that we will evaluate in the next step. This is a little awkward but necessary because if we tried to use the evaluation expression with pipeline parameters it get's confused (maybe someday we will find a solution to this problem). | ||
| - | **Set_Pipeline_Parameter** | + | |
| + | Set_Pipeline_Parameter | ||
| / | / | ||
| / | / | ||
| Line 189: | Line 249: | ||
| ! / | ! / | ||
| ! / | ! / | ||
| - | **;** | + | ; |
| ! Make all of the files in the Workspace active and subtract the GLOBAL mean values from the signals. | ! Make all of the files in the Workspace active and subtract the GLOBAL mean values from the signals. | ||
| - | **Select_Active_File** | + | |
| + | Select_Active_File | ||
| / | / | ||
| ! /QUERY= | ! /QUERY= | ||
| - | **;** | + | ; |
| - | **Evaluate_Expression** | + | |
| + | Evaluate_Expression | ||
| / | / | ||
| / | / | ||
| / | / | ||
| ! / | ! / | ||
| - | **;** | + | ; |
| ! For example, the first time through the loop / | ! For example, the first time through the loop / | ||
| - | **End_For_Each** | ||
| - | / | ||
| - | **;** | ||
| + | End_For_Each | ||
| + | / | ||
| + | ; | ||
| + | </ | ||
visual3d/documentation/pipeline/force_commands/fp_zero.1720793049.txt.gz · Last modified: by sgranger
