CalculateTriggerRangeDuration¶
ID: Calculate/CalculateTriggerRangeDuration
This trace step template is used to calculate the durations of the trigger ranges of a trigger block.
To achieve good results, the input signal should have no missing samples in the trigger ranges.The output is both in a signal and a list: * If ZeroSamplesOutsideTriggerRange is False (default), the output signal only contains sample points within trigger ranges. The value of the signal is constant within a trigger range and corresponds to its total duration. * The output list contains a floating point number for each trigger range, which represents the respective total duration of the trigger ranges in seconds.
Note: If you use this trace step template outside of a trigger block, the parent episode is considered a trigger range.
Signals¶
Signal¶
The signal to analyze
Direction: IN
Optional: False
TriggerRangeDuration¶
This signal indicates the total duration of the current trigger range. Outside a trigger range, there are no samples (default) or samples with the value 0.
Direction: OUT
Optional: False
Parameters¶
ZeroSamplesOutsideTriggerRange¶
Should the calculated signal have samples with the value 0 or no samples outside a trigger range? True: samples with value 0; False (default): no samples
Direction: IN
TriggerRangeDurationList¶
List of trigger range durations in the unit of the time axis.
Direction: OUT