Relay
- Updated2023-02-17
- 3 minute(s) read
Relay
Returns one of two values based on the value of the input signal.
Inputs/Outputs

reset
A Boolean or a Boolean array that determines whether to turn off the relay .
| True | Turns the relay off. |
| False | Does not turn the relay off. |
The relay is off on the first call of this node. The relay remains in the off state until the value of input exceeds the value of switch on point.
Default value: False

input
Input signal.
This input accepts a double-precision, floating-point number or an array of double-precision, floating-point numbers.

switch on point
Threshold of input above which the relay is on.
This input accepts a double-precision, floating-point number or an array of double-precision, floating-point numbers.
Default value: 0

switch off point
Threshold of input below which the relay is off.
This input accepts a double-precision, floating-point number or an array of double-precision, floating-point numbers.
Default value: 0

output when on
Value of output when the relay is on.
This input accepts a double-precision, floating-point number or an array of double-precision, floating-point numbers.
Default value: 0

output when off
Value of output when the relay is off.
This input accepts a double-precision, floating-point number or an array of double-precision, floating-point numbers.
Default value: 0

output
Output signal.
This output can return a double-precision, floating-point number or an array of double-precision, floating-point numbers.
How This Node Determines the Output Value
If input is greater than switch on point, this node returns the value of output when on. If input is less than switch off point, this node returns the value of output when off. If input is within the interval [switch off point, switch on point], this node returns the same output as the previous call to this node.