Difference between revisions of "Timer (LogiX node)"

From Neos Wiki
Jump to navigation Jump to search
(Notes on UpdatingUser edge cases)
Line 35: Line 35:
  
 
== Usage ==
 
== Usage ==
Impulses are fired locally for the user provided to UpdatingUser. The Interval value may be changed between successive impulses from Pulse. If the Interval is increased the next impulse will occur that many seconds after the previous output impulse - e.g. if an impulse is fired from Pulse while the Interval is 10 and then the Interval is changed to 60, the next impulse will fire 60 seconds after the previous one. Conversely, if the Interval value is decreased, the node will only wait until a number of seconds equal to the new value have passed; this means that if the new value is less than the number of seconds since the last output impulse another impulse is fired immediately.
+
The Interval value may be changed between successive impulses from Pulse. If the Interval is increased the next impulse will occur that many seconds after the previous output impulse - e.g. if an impulse is fired from Pulse while the Interval is 10 and then the Interval is changed to 60, the next impulse will fire 60 seconds after the previous one. Conversely, if the Interval value is decreased, the node will only wait until a number of seconds equal to the new value have passed; this means that if the new value is less than the number of seconds since the last output impulse another impulse is fired immediately.
 +
 
 +
Impulses are fired locally for the user provided to UpdatingUser. If no UpdatingUser is provided, it will fire for all users, as if you had connected a Local User node. If a null UpdatingUser is provided, the Interval node will not fire at all.
  
 
== Examples ==
 
== Examples ==

Revision as of 02:23, 18 February 2021

Other languages:
English • ‎日本語

The Timer node fires impulses from Pulse separated by the number of seconds specified by the Interval input.


Inputs & Outputs

Inputs
Color Label Type
Interval Float
UpdatingUser User
Outputs
Color Label Type
Pulse Impulse

Usage

The Interval value may be changed between successive impulses from Pulse. If the Interval is increased the next impulse will occur that many seconds after the previous output impulse - e.g. if an impulse is fired from Pulse while the Interval is 10 and then the Interval is changed to 60, the next impulse will fire 60 seconds after the previous one. Conversely, if the Interval value is decreased, the node will only wait until a number of seconds equal to the new value have passed; this means that if the new value is less than the number of seconds since the last output impulse another impulse is fired immediately.

Impulses are fired locally for the user provided to UpdatingUser. If no UpdatingUser is provided, it will fire for all users, as if you had connected a Local User node. If a null UpdatingUser is provided, the Interval node will not fire at all.

Examples

Node Menu

Flow
Back Events Boolean Latch Delay Delay With Value Dynamic Impulse Receiver Dynamic Impulse Receiver With Value`1
Dynamic Impulse Trigger Dynamic Impulse Trigger With Value`1 Fire On Change Fire On False Fire On True Fire While True For
If Impulse Demultiplexer Impulse Multiplexer Local Fire On Change`1 Local Fire On False Local Fire On True Local Impulse Timeout
Local Leaky Impulse Bucket One Per Frame Pulse Random Sequence Timer Update Updates Delay
Updates Delay With Value While