visual3d:documentation:pipeline:event_commands:event_threshold
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
visual3d:documentation:pipeline:event_commands:event_threshold [2024/07/03 17:28] – removed sgranger | visual3d:documentation:pipeline:event_commands:event_threshold [2025/04/29 13:39] (current) – [Dialog] wikisysop | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Event Threshold ====== | ||
+ | |||
+ | ===== Overview ===== | ||
+ | The **Event_Threshold** command is used to detect threshold crossings (when signal crosses a specified value) in a signals and label events accordingly. This command provides extensive control over event placement by allowing users to define frame or time offsets, include or exclude sequences, and refine detections using component selection and event constraints. | ||
+ | |||
+ | This command is particularly useful for defining critical events based on signal thresholds, such as peak force occurrences, | ||
+ | |||
+ | **Note**: The threshold parameter specified can be a number, a PROCESSED METRIC, or an expression. | ||
+ | |||
+ | ===== Pipeline Command ===== | ||
+ | The command below is as seen on the Visual3D application, | ||
+ | |||
+ | < | ||
+ | Event_Threshold | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! /THRESHOLD= | ||
+ | ! /ON_ASCENT= | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | ===== Command Parameters ===== | ||
+ | The following table shows the command parameters and descriptions: | ||
+ | |||
+ | |**Parameter** | ||
+ | |**/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |||
+ | ===== 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. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | * **New Event Label Name**: Name to assign event that reaches threshold value. | ||
+ | * **Signal Component**: | ||
+ | * **Frame Window**: Number of frames to check for threshold condition. | ||
+ | * **Frame Offset**: Shift event by a specified number of frames. | ||
+ | * **Time Offset**: Shift event by time (in seconds). | ||
+ | * **Threshold**: | ||
+ | * **Event Instance**: Specify which instance of the event to label. (0 = all) | ||
+ | * **Label on Ascent/ | ||
+ | * **Ensure Window Before/ | ||
+ | * **Event Sequence**: Specify range in which to search for threshold crossings. | ||
+ | * **Event Subsequence**: | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ===== Examples ===== | ||
+ | The following examples will go through the use of the Event_Threshold command in the Visual3D application. | ||
+ | |||
+ | ==== Example 1: Detecting Peak Ground Reaction Force ==== | ||
+ | This example uses the **Event_Threshold** command to detect the event Max_GRF when the vertical ground reaction force (GRF_Z) crosses 1000N in the ascending direction: | ||
+ | |||
+ | < | ||
+ | Event_Threshold | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | /THRESHOLD= 1000 | ||
+ | /ON_ASCENT= TRUE | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | ==== Example 2: Maintaining Event Window after Threshold Closing ==== | ||
+ | In this example, the events **FP3_Y** and **FP3_Y_ENSURE** are created using the command. The event **FP3_Y_ENSURE** will use the " | ||
+ | |||
+ | To ensure correct functionality of the example, the following must be done: | ||
+ | - Import the SIGNAL_TYPE/ | ||
+ | - Specify only one signal component at a time. | ||
+ | - One of either **ON_ASCENT** or **ON_DESCENT** must be selected, if neither option is selected then no events will be created. In this example, we will chose to label on Ascent. | ||
+ | |||
+ | < | ||
+ | Event_Threshold | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | /THRESHOLD= 0.05 | ||
+ | /ON_ASCENT= TRUE | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | |||
+ | Event_Threshold | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | /THRESHOLD= 0.05 | ||
+ | /ON_ASCENT= TRUE | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | === Result === | ||
+ | After running this pipeline, you will notice 3 events have been created: | ||
+ | * 2 instances of **FP3_Y**, crosses the threshold (0.05) two times during the trial. | ||
+ | * 1 instance of **FP3_Y_ENSURE**, | ||
+ | |||
+ | {{: | ||
+ | |||
+ | |||
+ | ===== Notes ===== | ||
+ | |||
+ | === Visual3D Versions supporting Subject Prefixes === | ||
+ | |||
+ | When defining events for subjects that use a prefix to define the data belonging to that subject, event labels will also have the prefix of the subject the events belong to. | ||
+ | |||
+ | NOTE: When using events in a command, the commands will iterate across subjects contained in the current workspace. As such, events and sequences listed as command parameters should NOT contain a prefix. As each subject is processed, the event range/ | ||
+ | |||
+ | |||
visual3d/documentation/pipeline/event_commands/event_threshold.1720027690.txt.gz · Last modified: 2024/07/03 17:28 by sgranger