visual3d:documentation:pipeline:event_commands:event_maximum
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_maximum [2024/07/16 19:27] – created sgranger | visual3d:documentation:pipeline:event_commands:event_maximum [2025/04/29 19:04] (current) – wikisysop | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
- | \\ | + | ===== Overview ===== |
- | **Specify | + | The **Event_Maximum** command is used to detect the maximum value of a specified signal within a defined event sequence or range, and create |
+ | * Useful for identifying peak forces, peak joint angles, or maximum accelerations during specific phases | ||
+ | | ||
+ | | ||
- | **If the global maxima are needed, see the [[Visual3D: | + | ===== Pipeline |
- | **\\ | + | The command |
- | To review | + | |
- | ==== Visual3D_Version5 | + | < |
+ | Event_Maximum | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ; | ||
+ | </ | ||
- | In version 5 the command | + | ===== Command Parameters ===== |
+ | The following table shows the command | ||
- | |**Event_Maximum**\\ \\ / | + | |**Parameter** |
+ | |**/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
- | \\ | ||
- | Other options within the command such as **Exclude Event**, and **Select Subsequence** are explained in detail on the [[Visual3D: | ||
- | If /Threshold is empty, all local maximum are identified. | + | ===== Dialog ===== |
+ | The command can be edited in a text editor or in the dialog. To edit in the dialog, click on the **Edit** button in the pipeline workshop or double-click on the pipeline command. The dialog is shown below: | ||
- | If /Threshold has a value or expression, only local maximum | + | {{: |
+ | |||
+ | * **New Event Label Name**: Name of event created at the local maximum points. | ||
+ | * **Signal Component**: | ||
+ | * **Frame Window**: Size of window to look for a local maximum | ||
+ | * **Frame Offset**: Shift the resulting event by a number of frames. | ||
+ | * **Time Offset**: Move the event by a time shift (in seconds) | ||
+ | * **Threshold**: | ||
+ | * **Event Instance to Create**: Choose which maximum to create if there are multiple peaks in a search window | ||
+ | * **Event Sequence and Instance for Range**: Limits where to search for maxima | ||
+ | * **Subsequence and Instance within Event Sequence**: Further limits search inside smaller phase within main event range. | ||
---- | ---- | ||
+ | ===== Examples ===== | ||
+ | The following examples will go through the use of the **Event_Maximum** command in the Visual3D application. | ||
- | \\ | + | ==== Example 1: Simple Use Case ==== |
+ | The first example will cover the command using the dialog as well as the command text. To create the RKFlex_MaxLocal event using the Event_Maximum dialog box: | ||
+ | 1. Add the **Event_Maximum** command to the pipeline. Then, enter information into dialog box: | ||
- | === Example - Dialog Box === | + | **Event_Name: |
+ | **Select Frame Offset:** 0\\ | ||
+ | **Signal Components: | ||
+ | **Event Sequence Instance: | ||
- | To create the RKFlex_MaxLocal event using the Event_Maximum dialog box: | ||
- | \\ | + | |{{: |
+ | Event_Maximum | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | / | ||
+ | ! / | ||
+ | ; | ||
+ | </ | ||
+ | 2. Close the dialog, on the Signals and Events tab, select the desired signal from the data tree, in this case **Right_Knee_Angle**. Navigate into the LINK_MODEL_BASED items folder, and select the checkbox beside the signal. | ||
- | |**1. Enter information into dialog box:**\\ \\ **Event_Name: | + | 3. Open the pipeline workshop again, |
+ | {{: | ||
- | \\ | + | **RKFlex_MaxLocal** will be created at the maximum values during the full gait cycle. As seen below: |
+ | |{{: | ||
- | |**2. Select desired signal:**\\ \\ Select **signal from data tree** Right_Knee_Angle\\ \\ Click **Import Selected Signals** | ||
- | \\ | + | ==== Example 2: Complex ==== |
- | **RKFlex_Max** will be created at the minimum value during the gait cycle within the specified frame window.\\ | + | |
- | \\ | + | |
- | Other options within the command such as **Exclude Event**, and **Select Subsequence** are explained in detail on the [[Visual3D:Documentation: | + | |
+ | In this example, the local maxima of the right foot angular acceleration during the full trial is identified. Then, the values of this event are extracted. | ||
- | ---- | + | Use the Event_Maximum command to find the peaks in the acceleration signal, the component is set to Y and frame window is increased to 60. |
+ | |||
+ | The signal used to represent the acceleration was taken from the KINETIC_KINEMATIC folder | ||
+ | |||
+ | < | ||
+ | Event_Maximum | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | / | ||
+ | ! / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | Then use Metric_Signal_Value_At_Event to extract the actual Y-acceleration values at these peaks for analysis: | ||
+ | |||
+ | < | ||
+ | Metric_Signal_Value_At_Event | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | / | ||
+ | ! / | ||
+ | / | ||
+ | ! / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Notes ===== | ||
+ | |||
+ | === Version 5 === | ||
+ | |||
+ | In version 5 the command has been extended to include the Event_Sequence and Exclude_Events parameters. | ||
+ | |||
+ | |{{: | ||
+ | Event_Maximum | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | !/ | ||
+ | !/ | ||
+ | !/ | ||
+ | !/ | ||
+ | !/ | ||
+ | !/ | ||
+ | !/ | ||
+ | !/ | ||
+ | / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | * Other options within the command such as **Exclude Event**, and **Select Subsequence** are explained in detail on the [[Visual3D: | ||
+ | * If /Threshold is empty, all local maximum are identified. | ||
+ | * If /Threshold has a value or expression, only local maximum that are greater than the threshold are identified. | ||
+ | |||
+ | === Version 4 === | ||
- | ===== Version 4 ===== | + | < |
+ | Event_Maximum | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | /Event_Name=The name to be given to the threshold event | ||
+ | /Select_X=(True or False)Use this component of the signal | ||
+ | /Select_Y=(True or False)Use this component of the signal | ||
+ | /Select_Z=(True or False)Use this component of the signal | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | </ | ||
- | |\\ \\ \\ < | + | Dialog that pops up when pipeline selection is edited by double clicking with the left mouse button. |
- | **Event Instance:** There may be several local maxima. A value of 0 results in all maxima being assigned a label. A positive number indicates the event (in sequence) to select. A negative number indicates the event starting from the last event and progressing to the first event. | + | {{:MinMaxDlg.jpg}} |
visual3d/documentation/pipeline/event_commands/event_maximum.1721158074.txt.gz · Last modified: 2024/07/16 19:27 by sgranger