visual3d:documentation:pipeline:metric_commands:metric_signal_value_at_event
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
visual3d:documentation:pipeline:metric_commands:metric_signal_value_at_event [2024/07/12 13:30] – removed sgranger | visual3d:documentation:pipeline:metric_commands:metric_signal_value_at_event [2025/09/18 19:32] (current) – wikisysop | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Metric Signal Value At Event ====== | ||
+ | |||
+ | ====Overview==== | ||
+ | |||
+ | The Metric_Signal_Value_At_Event command provides the value of the specified signal at the specified frame of data is stored as a metric. It can be found in the **Pipeline Workshop** under **Metric**. This command is useful for recording the value of a signal at a specific moment in a sequence, like at the deepest point in a squat or foot on in a stride. | ||
+ | |||
+ | Notes: | ||
+ | * All components of the specified signal will be stored in the metric signal. The user also has the option to select an individual component | ||
+ | * If there are multiple occurrences of an EVENT, there will be multiple entries in the metric that is created. | ||
+ | * There is an option to calculate the mean and standard deviation for metrics that have multiple values. | ||
+ | * In cases where there is **NO_DATA** at an event, you need to specify the parameter **/ | ||
+ | * **Metric_Signal_At_Event** replaced the legacy command **Signal_Value_At_Event** | ||
+ | |||
+ | ====Pipeline Command==== | ||
+ | The syntax for the function is as follows: | ||
+ | |||
+ | < | ||
+ | Metric_Signal_Value_At_Event | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | =====Command Parameters ===== | ||
+ | |||
+ | The pipeline command parameters shown above are described in the table below: | ||
+ | |||
+ | |**/ | ||
+ | |**/ | ||
+ | |**/ | ||
+ | |**/ | ||
+ | |**/ | ||
+ | |**/ | ||
+ | |**/ | ||
+ | |**/ | ||
+ | |**/ | ||
+ | |**/ | ||
+ | |||
+ | ====Dialog==== | ||
+ | |||
+ | The command can be edited in a text editor or in a dialog form. To edit in the dialog pop up form either click on the **Edit** button in the pipeline workshop or double-click on the pipeline command. The dialog is shown below. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | The dialog box allows you to assign values to the command parameters outlined above. | ||
+ | |||
+ | ===== Example: Find Value of a Target ===== | ||
+ | |||
+ | This example calculates the value of the TARGET **RFT1** at the Event_Label **RON** | ||
+ | |||
+ | < | ||
+ | Metric_Signal_Value_At_Event | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | ==== For a single Component ==== | ||
+ | |||
+ | Since Metric_Signal_Value_At_Event outputs all three components, here is a workaround of the previous example that will output one component. Evaluate_Expression is used to create a signal with one component, the z component for **RFT1**. Then the Metric_Signal_Value_At_Event will calculate the value of the TARGET **RFT1** at the Event_Label **RON**. | ||
+ | |||
+ | < | ||
+ | ! RFT1 Z component | ||
+ | Evaluate_Expression | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | |||
+ | Metric_Signal_Value_At_Event | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | ===== Example: Calculate the Time of an Event ===== | ||
+ | |||
+ | This example calculates the time of the Event_Label **RON** | ||
+ | |||
+ | < | ||
+ | Metric_Signal_Value_At_Event | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | ===== P2D Signals ===== | ||
+ | |||
+ | Consider a [[visual3d: | ||
+ | |||
+ | Without having an event you cannot get the value of a signal at that event using Metric_Signal_Value_At_Event. One solution, albeit a non-intuitive solution is to [[Visual3D: | ||
+ | |||
+ | < | ||
+ | Evaluate_Expression | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | !/ | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | For the resulting signal, the maximum value and the associated standard deviation will be in the first frame. | ||
visual3d/documentation/pipeline/metric_commands/metric_signal_value_at_event.1720791013.txt.gz · Last modified: 2024/07/12 13:30 by sgranger