Rubix Wires: Trigger Nodes
This article describes the Rubix Wires nodes that are in the Trigger category.
Trigger
The `Trigger` category contains a variety of nodes that output values based on a trigger condition, or provide a trigger output.
Change-Of-Value
This node provides a boolean trigger output for a configured duration when the numeric `input` value changes by a configured threshold amount.
- input - Numeric input value to be monitored for value change.
- [interval] - Numeric setting which configures the amount of time that the boolean `output` will be `true` when a Change-Of-Value event occurs.
- [threshold] - Numeric setting which configures the minimum change amount (of `input`) to trigger a Change-Of-Value event.
Outputs
- output - Boolean output value. Will be `true` for the `interval` duration when a Change-Of-Value event occurs.
Settings
- Name - Name of the node.
- Interval - Numeric interval setting (units can be configured). Fallback from wired `interval` input value.
- Units - Time unit of `Interval` value.
- COV Threshold - Numeric setting for the minimum amount that the `input` must change by to trigger a Change-Of-Value event. Fallback from wired `threshold` input value.
Operation
When ‘input’ changes value by the `threshold` amount, `output` becomes ‘true’ for ‘interval’ duration, then ‘output’ changes back to ‘false’.
Random
This node outputs a random number between a configured minimum and a maximum value when triggered.
- trigger - Boolean input value. `false` to `true` transtion will trigger a new random number at the node `output`.
- [max] - Numeric setting value that configures the maximum value of `output`.
- [min] - Numeric setting value that configures the minimum value of `output`.
Outputs
- output - Random number between `max` and `max` values. The `output` value updates on `trigger` input transition from `false` to `true`.
Settings
- Name - Name of the node.
- Number of Decimal Places - Number of decimal places for random numeric `output` value.
- Maximum Value - Numeric setting value that configures the maximum value of `output`. Fallback from wired `max` input value.
- Minimum Value - Numeric setting value that configures the minimum value of `output`. Fallback from wired `min` input value.
Operation
When ‘trigger’ transitions from ‘false’ to ‘true’, a random number between ‘min’ and ‘max’ values is produced at ‘output’. The number of decimal places that ‘output’ values have can be set from settings.
Inject
This node sends an input value to `output` when triggered. Supports all Wires data types.
- [enable] - Boolean input to enable/disable node.
- [message] - Input value to be sent to `output`. `message` can be any Wires data type.
- trigger - Boolean input to trigger the sending of `message` to `output`. When enabled if `trigger` transitions from `false` to `true`, `message` value is passed to `output`.
Outputs
- output - Output value which matches `message` when `enable` is `true` and `trigger` transitions from `false` to `true`. `output` can be any Wires data type.
Settings
- Name - Name of the node.
- Enable - Toggle switch to enable/disable the node. Fallback from wired input `enable`.
- Message - Configured string value that is sent to `output` when `trigger` transitions from `false` to `true`. Fallback from wired input `message`.
Operation
When ‘enable’ is ‘true’ and `trigger` transitions from `false` to `true`, `message` value is passed to `output`. `message` and `output` values can be any Wires data types.
Iterator
This node provides a configured number of boolean `false` to `true` output transitions (triggers) over configured time interval.
- [interval] - Numeric interval time setting. This is the total time to complete the `count` number of `false` to `true` transitions. Time units configured from settings.
- [iterations] - Number of `false` to `true` transitions to be generated from `output`.
- start - Boolean input that restarts the interations on `false` to `true` transtion.
- stop - Boolean input that will hold the iterations before the next `false` to `true` transition. Next iteration will be held while `stop` is `true`, and next iteration will start when `stop` becomes `false`.
Outputs
- output - Boolean output value.
- complete - Boolean output value, `true` when all iterations have finished.
- count - Numeric value of the current iterations that have completed.
Settings
- Name - Name of the node.
- Interval - Numeric interval time setting. This is the total time to complete the `count` number of `false` to `true` transitions. Fallback from wired `interval` input.
- Units - Time unit of `Interval`.
- Iterations - Number of `false` to `true` transitions to be generated from `output`. Fallback from wired `iterations` input.
Operation
This node generates a sequence of `false` to `true` transitions on ‘output’. The number of `false` to `true` transitions will be equal to ‘count’ value (or `Iterations` setting); these values are sent over the ‘interval’ duration (unless interrupted by ‘stop’ input). For example, if ‘interval’ is set to 5 (seconds) and ‘iterations’ is set to 5, a `false` to `true` transition will occur on ‘output’ every 1 second. If 'stop’ input is ‘true’ then the next ‘true’ value will not be sent from ‘output’ until ‘stop’ is ‘false’ again. ‘interval’ units can be configured from settings. Maximum ‘interval’ setting is 587 hours. If the ‘Generate False’ setting is not ticked (default), then a ‘false’ message will be sent between each ‘true’ at ‘output’.
Related Articles:
- Rubix Wires: Working with Nodes
Related Articles
Rubix Wires: Count Nodes
This article describes the Rubix Wires nodes that are in the Count category. Count The `Count` category contains nodes that are used to perform counting operations involving stepped changes in output values. Counter This node performs addition or ...
Rubix Wires: LoRa Sensor Nodes
This article describes the Rubix Wires nodes that are in the LoRa category. Preparation Rubix Wires: Getting Started Guide Rubix Platform: Adding and Editing Wireless LoRa Droplet Sensors Rubix Platform: Adding and Editing Wireless Microedge Sensors ...
Rubix Wires: Latch Nodes
This article describes the Rubix Wires nodes that are in the Latch category. Latch The `Latch` category contains value latching functionality for each data type. Latch nodes will maintain an output value between trigger events. Any-Latch This node ...
Rubix Wires: String Nodes
This article describes the Rubix Wires nodes that are in the String category. String The `String` category contains nodes that are used for manipulating string data. String-Join This node joins multiple input strings into a single output string. ...
Rubix Wires: Boolean Nodes
This article describes the Rubix Wires nodes that are in the Boolean category. Boolean The `Boolean` category contains nodes that produce boolean outputs. They provide boolean comparisons and timing nodes to trigger/delay boolean values. AND This ...