dglux5_wiki:dataflow:dataflow_blocks_reference:logic:delay

Delay

Block Group: Logic
Icon:Delay block icon

Accepts an input value, waits a predetermined amount of time, and then returns the input as output.

For information on using dataflow blocks, see Dataflow.


These properties can take input and give output.

  • invoke (trigger)
  • delay (number)
  • mode (enum)
  • input n

invoke immediately sends all pending (delayed) values to their outputs.

delay sets the length of the delay, in seconds. The default is 1.

input n holds a value to deliver to output n after a delay. The block has one input/output pair by default; click the plus sign to add more pairs. Each pair is delayed separately.

mode specifies the behavior of this block in cases where input changes during a delay. The default is delay.

  • delay: Every change to input is sent to output n seconds after it occurs.
  • window: Only the last change from each delay window is sent to output. A change to input starts the timer if it is not already running. If another change happens while the timer is running, it does not reset. Only the latest value is sent when the timer ends.
  • wait: The latest value of input is sent to output only after a lack of updates lasting the length of the delay timer. Each input restarts the delay timer. Changes are sent only when the timer finishes.

These properties can give output. They cannot take input.

  • output n

output n returns the value of input n after the delay.


This is a basic use of the block.

Dataflow ModelDescription
Delay dataflow modelDelay dataflow modelAfter a delay of 2 seconds, the value "100" is passed from input to output.

  • dglux5_wiki/dataflow/dataflow_blocks_reference/logic/delay.txt
  • Last modified: 2026/10/22 13:25
  • by 127.0.0.1