BlockWerk Documentation
⏱

Delay

Dynamics

The Delay block introduces a fixed time delay (transport lag) to the input signal. This models communication delays, sensor latency, processing time, and other real-world system dynamics. The delay is implemented using a circular buffer that stores historical input values.

Simulate in BlockWerk

Interactive sandbox directly in your browser — zero installation, WASM-powered.

Simulate in BlockWerk →

Mathematical Model

y(t)=u(t−τ)y(t) = u(t - \tau)

Inputs & Outputs

Direction ID Label Type Status
→ In in Input number Required
→ In reset Reset number Optional
← Out out Output number Output

Parameters

Parameters Label Type Default Description
delayTime Delay Time number 0.1
initialOutput Initial Output number 0

Usage Examples

A pulse signal with 0.2 second delay appears shifted 0.2 seconds later.

Remarks & Best Practices

  • Buffer size automatically calculated: ceil(delayTime / sampleTime) + 1
  • Memory usage scales linearly with delay duration
  • Steady-state magnitude unchanged, only phase-shifted
  • Typical applications: networked control, sensor lag, transport delays
  • Uses write-then-read circular buffer order for consistent delay behavior

Related Components