ProtoFlux:Data Model Boolean Toggle: Difference between revisions

From Resonite Wiki
added link to impulses
Made the feature of using a write with data model boolean toggle node into an information note to be more clear about this feature.
 
(One intermediate revision by one other user not shown)
Line 4: Line 4:
|Inputs=
|Inputs=
[
[
{"Name":"Set", "Type":"Impulse"},
{"Name":"Set", "Type":"Call"},
{"Name":"Reset", "Type":"Impulse"},
{"Name":"Reset", "Type":"Call"},
{"Name":"Toggle", "Type":"Impulse"}
{"Name":"Toggle", "Type":"Call"}
]
]
|Outputs=
|Outputs=
Line 19: Line 19:
The '''Data Model Boolean Toggle''' or '''Boolean Latch''' is a node that can be pulsed to toggle a Data Model Boolean between true and false.
The '''Data Model Boolean Toggle''' or '''Boolean Latch''' is a node that can be pulsed to toggle a Data Model Boolean between true and false.


Data Model Boolean Toggle is a [[Data Model Store (ProtoFlux)|Data Model Store]] with impulses to set, reset and toggle itself. This means you can use a [[ProtoFlux:Write|Write]] to change the value directly if you input the * bool into the [[ProtoFlux:Write|Write]]'s Variable field.  
{{Note|Data Model Boolean Toggle is a [[ProtoFlux:Data Model Store|Data Model Store]] with impulses to set, reset and toggle itself. This means you can use a [[ProtoFlux:Write|Write]] to change the value directly if you input the * bool into the [[ProtoFlux:Write|Write]]'s Variable field.|information}}
 


== Inputs ==
== Inputs ==


=== Set ([[Impulses|Impulse]]) ===
=== Set ([[Impulses|Call]]) ===
Set the state to True.
Set the state to True.


=== Reset ([[Impulses|Impulse]]) ===
=== Reset ([[Impulses|Call]]) ===
Set the state to False.
Set the state to False.


=== Toggle ([[Impulses|Impulse]]) ===
=== Toggle ([[Impulses|Call]]) ===
Toggle the state to the opposite state.
Toggle the state to the opposite state.



Latest revision as of 04:17, 7 July 2024

Boolean Latch
Set
Set
Reset
Reset
Toggle
*
Flow


The Data Model Boolean Toggle or Boolean Latch is a node that can be pulsed to toggle a Data Model Boolean between true and false.

Data Model Boolean Toggle is a Data Model Store with impulses to set, reset and toggle itself. This means you can use a Write to change the value directly if you input the * bool into the Write's Variable field.


Inputs

Set (Call)

Set the state to True.

Reset (Call)

Set the state to False.

Toggle (Call)

Toggle the state to the opposite state.

Outputs

OnSet (Continuation)

Fires when Set is pulsed.

OnReset (Continuation)

Fires when False is pulsed.

* (bool)

The current state.