beta
cables is under heavy development.
There might be one or another bug, please let us know about it!
Ops.Boolean.MonoFlop

MonoFlop
op id:3a4b0a78-4172-41c7-8248-95cb0856ecc8
Sets output to `1` when triggered, turns back to `0` automatically after x seconds

summary (oneliner)

Imagine a light switch (often found in staircases): Once you press the light switch the light goes on for x seconds, then automatically turns off on its own.

Make sure to connect the Trigger port in a meaningful way (not directly to MainLoop), as it would set the output to 1 all the time.

doc

youtube id

collections

related ops

Inputs

Trigger (Function)

When triggered, Result is set to Value True


Duration (Number)

Duration in seconds when to automatically reset the Result to Value False


Value True (Number)

The value to use when Trigger is triggered


Value False (Number)

The value to use after the time is over


Outputs

Result (Number)

Either 1 (directly after Trigger was triggered), or 0


monoflop example:


Credits

Caught a mistake or want to contribute to the documentation?


Edit this documentcancel save

Examples using MonoFlop

Public Patches using MonoFlop