Difference between revisions of "++ (LogiX node) (Actions)"
Jump to navigation
Jump to search
(Marked this version for translation) |
|||
(9 intermediate revisions by 4 users not shown) | |||
Line 2: | Line 2: | ||
<translate> | <translate> | ||
<!--T:1--> | <!--T:1--> | ||
− | + | {{Infobox Logix Node | |
+ | | Name = ++ | ||
+ | | Image =[[File: IncrementFloatNodeNode.png | noframe | 128px | '++' LogiX node ]] | ||
+ | | Input0Type = Impulse | Input0Name = Increment | ||
+ | | Output0Type = IValue`1 | Output0Name = Target | ||
+ | | Output1Type = Impulse | Output1Name = OnDone | ||
+ | }} | ||
<!--T:2--> | <!--T:2--> | ||
− | < | + | The '''++''' node increases the referenced <code>Target</code> value by one when it receives an impulse at <code>Increment</code>. |
− | == | + | == Usage == <!--T:3--> |
− | + | The <code>OnDone</code> output fires an impulse when the <code>Target</code> value has been incremented. An impulse will not fire if there is no valid <code>Target</code>. This impulse continues the impulse chain which arrived at <code>Increment</code>. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | <!--T:7--> | |
− | This node differs from the | + | This node differs from the [[+1 (LogiX node)|+1]] node under Operators since it only makes changes when it receives an impulse. This makes it useful for incrementing a target value (e.g. one stored in a variable node or component e.g. a [[ValueField (Component)|ValueField]]) in a way which is saved and synchronized across all users. If the aim is to increment a value locally as part of a LogiX calculation the [[+1 (LogiX node)|+1]] node is likely the better choice. |
− | |||
− | == Node Menu == <!--T: | + | == Examples == <!--T:4--> |
+ | |||
+ | == Node Menu == <!--T:5--> | ||
</translate> | </translate> | ||
− | [[Category:LogiX|++ | + | |
− | [[Category:LogiX: Actions|++]] | + | [[Category:LogiX|++]] |
− | {{ | + | [[Category:LogiX:Actions|++]] |
+ | {{NodeMenu-Actions}} |
Latest revision as of 06:23, 12 October 2021
++ | ||
---|---|---|
Inputs | ||
Impulse | Increment | |
Outputs | ||
IValue`1 | Target | |
Impulse | OnDone |
The ++ node increases the referenced Target
value by one when it receives an impulse at Increment
.
Usage
The OnDone
output fires an impulse when the Target
value has been incremented. An impulse will not fire if there is no valid Target
. This impulse continues the impulse chain which arrived at Increment
.
This node differs from the +1 node under Operators since it only makes changes when it receives an impulse. This makes it useful for incrementing a target value (e.g. one stored in a variable node or component e.g. a ValueField) in a way which is saved and synchronized across all users. If the aim is to increment a value locally as part of a LogiX calculation the +1 node is likely the better choice.
Examples
Node Menu
Actions | ||||||
---|---|---|---|---|---|---|
Back | -- | ++ | Drive | Drive Playback | Tween | Write |
Write Latch | Write Ref | Write Ref Latch |