Delay Step
This function block delays the incoming signal by one execution step. It outputs the previous value received on the Input socket and updates its internal memory with the current input for the next run. Use this block when you need a one-step lag in signal processing or to break immediate feedback loops.
π₯ Inputs
Input β Generic input signal to be delayed. Accepts any data type.
π€ Outputs
Output β The value provided at the previous execution step. On the very first run this may be empty (no previous value).
πΉοΈ Controls
No interactive controls or widgets for this block.
βοΈ Running mechanism
On each execution cycle the block:
Returns the value it stored from the previous cycle via
Output.Replaces its stored value with the current
Inputfor use on the next cycle.
This behavior creates a stable single-step delay between input and output without modifying the signal content.
π― Features
Simple, reliable one-step delay for generic data.
Useful for creating temporal relationships between signals.
Helps break immediate feedback loops in graphs that require sequential state updates.
π Usage instructions
Connect any signal-producing block to the
Inputsocket.Use the
Outputwhere you need the previous-step value.If the first-run empty value is not acceptable, handle it with a block such as
Replace Noneor conditionally initialize upstream data.
π‘ Tips and Tricks
Combine with
Edge RisingorEdge Fallingto detect transitions with one-step history for debouncing or sequence detection.Use with
Set - ResetorCounterto build simple state machines or counting logic that requires previous-state information.Insert before logical blocks like
And/Orwhen you need aligned timing between multiple signals.Use alongside
Data MemoryorData Write Local/Data Read Localwhen building more complex stateful systems or when you need to preserve values across multiple steps or subsystems.Place before
Demux/MuxorBatch Processingwhen delaying composite data structures to keep sequence alignment.If your workflow uses human toggles, pair with
Logic Inputto create manual step timing with one-step history.
π οΈ Troubleshooting
Output appears empty on first run: this is expected. To avoid issues, initialize upstream data or use
Replace Noneto substitute a default.Signals seem out of sync: remember that outputs are always one execution step behind inputs. Ensure other blocks in the flow are aligned or introduce additional
Delay Stepblocks where needed.Unexpected feedback loops: use this block to break immediate cycles; placing a single-step delay often resolves stability and ordering problems.
Last updated
Was this helpful?