The 'Event_Minimum' command identifies the minimum value of a signal within a defined frame window, and creates an event at that frame.
The command below is as seen on the Visual3D application, it has many parameters as there are many options to manipulate this command.
Event_Minimum /RESULT_EVENT_NAME= ! /SIGNAL_TYPES= ! /SIGNAL_FOLDER=ORIGINAL ! /SIGNAL_NAMES= ! /SIGNAL_COMPONENTS= ! /FRAME_OFFSET=0 ! /TIME_OFFSET= ! /EVENT_SEQUENCE= ! /EXCLUDE_EVENTS= ! /EVENT_SEQUENCE_INSTANCE=0 ! /EVENT_SUBSEQUENCE= ! /SUBSEQUENCE_EXCLUDE_EVENTS= ! /EVENT_SUBSEQUENCE_INSTANCE=0 ! /EVENT_INSTANCE=0 ! /FRAME_WINDOW=8 ! /THRESHOLD= ;
The following table shows the command parameters and descriptions.
Parameter | Description |
/RESULT_EVENT_NAME= | Name of the new event created at each local minimum. |
!/SIGNAL_TYPES= | Type of signal (e.g., `LINK_MODEL_BASED`, `ANALOG`). |
!/SIGNAL_FOLDER= | Folder where the signal is stored, such as 'ORIGINAL' or 'PROCESSED'. |
!/SIGNAL_NAMES= | Name of the signal to analyze (e.g., Left_Knee_Angle`). |
!/SIGNAL_COMPONENTS= | Component(s) of the signal (e.g., `Z` or vector index). |
!/FRAME_OFFSET= | Shifts the resulting event forward or backward in time (in frames). |
!/TIME_OFFSET= | Time-based offset (in seconds). |
!/EVENT_SEQUENCE= | Sequence of events to define the search range (e.g., `LHS,LTO`). |
!/EXCLUDE_EVENTS= | Exclude these events from forming valid event pairs. |
!/EVENT_SEQUENCE_INSTANCE= | Specific instance of the event sequence to analyze (0 = all). |
!/EVENT_SUBSEQUENCE= | Optional inner sequence used to narrow the search window. |
!/SUBSEQUENCE_EXCLUDE_EVENTS= | Events that invalidate a subsequence. |
!/EVENT_SUBSEQUENCE_INSTANCE= | Index of the subsequence to analyze (0 = all). |
!/EVENT_INSTANCE= | Controls how many minima are found per window (0 = all, 1 = first, -1 = last). |
!/FRAME_WINDOW= | Size of the frame window to search around each point (must be an odd number). |
!/THRESHOLD= | Minimum value required to qualify as a valid minimum. |
This command can be used via text or the dialog interface. To open the dialog, double-click the command or click the Edit button in the pipeline editor.
The following examples will go through the use of the Event_Minimum command in the Visual3D application.
In the first example, we will create an event named RKFlex_MinLocal using the command.
1. Enter information into dialog box OR text editor:
2. Select desired signal:
RKFlex_Min will be created at the minimum value during the gait cycle within the specified frame window:
In this more complex example, we will delete the previously set RKFlex_MinLocal, instead we want to identify the minimum angle of the right knee ONLY during the swing phase AND only include minima that fall below a functional threshold, and extract the signal value at those minima.
Commands:
Event_Delete /EVENT_NAME= RKFlex_MinLocal !/EVENT_SEQUENCE= !/EXCLUDE_EVENTS= !/EVENT_INSTANCE= !/TIME= ;
Event_Minimum /RESULT_EVENT_NAME=RKFlex_MinLocal /SIGNAL_TYPES=LINK_MODEL_BASED /SIGNAL_FOLDER=ORIGINAL /SIGNAL_NAMES=Right Knee Angle /SIGNAL_COMPONENTS=X /FRAME_OFFSET=0 /TIME_OFFSET= /EVENT_SEQUENCE=RTO+RHS /EXCLUDE_EVENTS= /EVENT_SEQUENCE_INSTANCE=0 /EVENT_SUBSEQUENCE= /SUBSEQUENCE_EXCLUDE_EVENTS= /EVENT_SUBSEQUENCE_INSTANCE=0 /EVENT_INSTANCE=0 /FRAME_WINDOW=9 /THRESHOLD=-10 ; <code> Metric_Signal_Value_At_Event /SIGNAL_FOLDER=ORIGINAL /SIGNAL_LABEL= /EVENT_NAME=RKFlex_MinLocal /RESULT_METRIC_NAME=Knee_Min_Angle ;
Event_Minimum /Signal_Types=The type of signal to be evaluated /Signal_Names=The names of the signals to be evaluated /Signal_Folder=The name of the signal folder /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 /Frame_Window=The range of frames of data that must be below the minimum /Start_At_Event=The search begins from the start event /End_At_Event=The search ends at the end event /Event_Instance=See below ;
Dialog that pops up when pipeline selection is edited by double clicking with the left mouse button.
Event Instance: There may be several local minima. A value of 0 results in all minima 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.