Conditional trigger
This topic describes the conditional trigger component.
Features
The conditional trigger component uses a single input to produce a single output. It evaluates the input against a specified condition to generate a result. Five types of conditions are supported.
Calculation logic
Less than: Outputs 1 if the input value is less than the specified value (exclusive) for a consecutive number of cycles. Otherwise, outputs 0.
Greater than: Outputs 1 if the input value is greater than the specified value (exclusive) for a consecutive number of cycles. Otherwise, outputs 0.
Within range: Outputs 1 if the input value is within the specified range (inclusive) for a consecutive number of cycles. Otherwise, outputs 0.
Outside range: Outputs 1 if the input value is outside the specified range (exclusive) for a consecutive number of cycles. Otherwise, outputs 0.
Rising/falling edge: Outputs 1 if the input value changes from 0 to 1. Outputs -1 if the input value changes from 1 to 0. Otherwise, outputs 0.
Parameters
IN port: Input parameters
Parameter Name | Parameter Description | Required | Input Data Type | Data Source Type |
in | Conditional Trigger | Yes | Integer or Float | Any |
OUT port: Output parameters
Parameter Name | Description | Output Data Type |
out | The output variable. | Integer |
Other parameters
Parameter Name | Description | Required | Default parameter values | Valid values |
Condition | The judgment condition for the trigger. | Yes | Less than |
|
For "Greater than" or "Less than" conditions
Parameter Name | Description | Required | Default parameter value | Range |
Threshold | The threshold for the trigger. | No | / | [-99999999,99999999] |
For the "Rising/falling edge" condition
Parameter Name | Description | Required | Default value | Range |
Number of cycles | The running cycle of the canvas. | No | / | [-99999999,99999999] |
Condition: In Range or Out of Range
Parameter Name | Description | Required | Default parameter values | Range |
Lower limit | The lower limit for the trigger. | No | / | [-99999999,99999999] |
Upper limit | The upper limit for the trigger. | No | / | [-99999999,99999999] |
Output quality code
The quality code for the output variable is 192.