Analytics Builder 10.13.0 | Using Analytics Builder for Cumulocity IoT | Block Reference | Utility | Toggle
 
Toggle
apama.analyticskit.blocks.core.Toggle
Converts two pulse inputs to a boolean output based on the set and reset signals, with optional delays.
Without delays, the output state is changed to true on a set signal, and changed to false on a reset signal. If both signals are received at the same time, the output state is toggled (to true if signals are received for the first time).
If delay times are specified, the output state is only changed to true or false after the delay has been applied.
The following exception applies if both signals are received at the same time: the output state is only toggled if both delay times are the same, or have not been specified at all.
Parameters
Name
Description
Type
Notes
Set Delay (secs)
The amount of time (in seconds) after which the set signal is processed.
If the parameter is not specified, then the signal is immediately processed.
This must be a finite and positive number.
float
Optional
Reset Delay (secs)
The amount of time (in seconds) after which the reset signal is processed.
If the parameter is not specified, then the signal is immediately processed.
This must be a finite and positive number.
float
Optional
Input Port Details
Name
Description
Type
Set
Sets the output to true. Any pending delayed set or reset signals are cancelled on the new input.
pulse
Reset
Sets the output to false. Any pending delayed set or reset signals are cancelled on the new input.
pulse
Output Port Details
Name
Description
Type
Value
The output value generated from the input signals.
boolean