User Tools

Site Tools


visual3d:documentation:pipeline:metric_commands:metric_signal_value_at_event

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
visual3d:documentation:pipeline:metric_commands:metric_signal_value_at_event [2025/05/21 17:36] – Cleaned up page for a customer. Still needs to be put into Pipeline project format. wikisysopvisual3d:documentation:pipeline:metric_commands:metric_signal_value_at_event [2025/10/03 18:00] (current) – [Example: Calculate the Time of an Event] wikisysop
Line 1: Line 1:
 ====== Metric Signal Value At Event ====== ====== Metric Signal Value At Event ======
  
-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.+====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: Notes:
Line 10: Line 12:
   * **Metric_Signal_At_Event** replaced the legacy command **Signal_Value_At_Event**   * **Metric_Signal_At_Event** replaced the legacy command **Signal_Value_At_Event**
  
-{{:MetricSignalValueAtEvent.png}}+====Pipeline Command==== 
 +The syntax for the function is as follows: 
 + 
 +<code> 
 +Metric_Signal_Value_At_Event 
 +/SIGNAL_TYPES= 
 +! /SIGNAL_FOLDER=ORIGINAL 
 +! /SIGNAL_NAMES= 
 +! /RESULT_METRIC_FOLDER=PROCESSED 
 +/RESULT_METRIC_NAME= 
 +! /APPLY_AS_SUFFIX_TO_SIGNAL_NAME=FALSE 
 +! /SIGNAL_COMPONENTS= 
 +! /COMPONENT_SEQUENCE= 
 +/EVENT_NAME= 
 +! /EVENT_INSTANCE=0 
 +! /SCALE_FACTORS=1 
 +! /GENERATE_GLOBAL_MEAN_AND_STDDEV=TRUE 
 +! /GENERATE_LOCAL_MEAN_AND_STDDEV=TRUE 
 +! /APPEND_TO_EXISTING_VALUES=FALSE 
 +! /GENERATE_VECTOR_LENGTH_METRIC=FALSE 
 +! /RETAIN_NO_DATA_VALUES=FALSE 
 +
 +</code> 
 + 
 +=====Command Parameters =====
  
-===== Parameters =====+The pipeline command parameters shown above are described in the table below:
  
-^ Parameter ^ Description ^ 
 |**/Result_Metric_Name=**                                                                 |The name of the resulting signal.                                                                                                                                        | |**/Result_Metric_Name=**                                                                 |The name of the resulting signal.                                                                                                                                        |
 |**/Result_Metric_Folder=**                                                               |The folder that will contain the resulting signal                                                                                                                        | |**/Result_Metric_Folder=**                                                               |The folder that will contain the resulting signal                                                                                                                        |
Line 24: Line 49:
 |**/Append_To_Existing_Values=**                                                          |(True or False) If the metric exists, the new values will be appended to the metric, retaining all of the previous values.                                               | |**/Append_To_Existing_Values=**                                                          |(True or False) If the metric exists, the new values will be appended to the metric, retaining all of the previous values.                                               |
 |**/Generate_Metric_Length_Metric=**                                                      |(True or False) If the metric is a vector quantity (e.g. has 3 components), compute the magnitude of the vector.                                                         | |**/Generate_Metric_Length_Metric=**                                                      |(True or False) If the metric is a vector quantity (e.g. has 3 components), compute the magnitude of the vector.                                                         |
-|**/Retain_No_Data_Values=**                                                              |(True or False) If the result is no_data, retain the value.                                                                                                              |+|**/Retain_No_Data_Values=**                                                              |(True or False) If the result is no_data, retain the value.                                                                                                                                  
 + 
 +====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. 
 + 
 +{{:MetricSignalValueAtEvent.png}} 
 + 
 +The dialog box allows you to assign values to the command parameters outlined above.
  
 ===== Example: Find Value of a Target ===== ===== Example: Find Value of a Target =====
Line 45: Line 78:
 </code> </code>
  
 +The resulting values can be found in the **METRIC:PROCESSED** folder and should look similar to below:
 +
 +{{:visual3d:documentation:pipeline:metric_commands:rtoe_track.png?600|}}
 ==== For a single Component ==== ==== For a single Component ====
  
Line 91: Line 127:
 </code> </code>
  
 +The processed time value can be found in the **METRIC:PROCESSED** folder:
 +
 +{{:visual3d:documentation:pipeline:metric_commands:ron_time.png?600|}}
 ===== P2D Signals ===== ===== P2D Signals =====
  
-Consider a [[visual3d:documentation:definitions:file_formats:p2d_format|P2D]] signal created using [[Visual3D:Documentation:Pipeline:Signal_Commands:Global_Normalized_Signal_Mean|Global_Normalized_Signal_Mean]]. The resulting signal has three components, an index, a mean signals, and a standard deviation signal. It is possible to compute the maximum value of the 3 components using [[Visual3D:Documentation:Pipeline:Metric_Commands:Metric_Maximum|Metric_Maximum]] but it isn't possible to directly identify the standard deviation at that index because it isn't possible to define an Event for a time normalized signal (e.g.it has no frame rate or time.+Consider a [[visual3d:documentation:definitions:file_formats:p2d_format|P2D]] signal created using [[Visual3D:Documentation:Pipeline:Signal_Commands:Global_Normalized_Signal_Mean|Global_Normalized_Signal_Mean]]. The resulting signal has three components, an index, a mean signals, and a standard deviation signal. It is possible to compute the maximum value of the 3 components using [[Visual3D:Documentation:Pipeline:Metric_Commands:Metric_Maximum|Metric_Maximum]] but it isn't possible to directly identify the standard deviation at that index because it isn't possible to define an Event for a time normalized signal (e.g.it has no frame rate or time).
  
 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:Documentation:Pipeline:Expressions:Expressions_Overview#Signal_Functions|SORT]] (descending) the P2D signal by the second component (eg. the MEAN). 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:Documentation:Pipeline:Expressions:Expressions_Overview#Signal_Functions|SORT]] (descending) the P2D signal by the second component (eg. the MEAN).
visual3d/documentation/pipeline/metric_commands/metric_signal_value_at_event.1747849019.txt.gz · Last modified: 2025/05/21 17:36 by wikisysop