Delay
DynamicsIntroduces a continuous transport lag (dead time or propagation delay ) to an incoming signal. Implemented via an efficient circular ring buffer that delays signal transmission by a configurable duration in physical seconds. Essential for modeling material transport delays on conveyor belts, pipeline fluid travel times, acoustic wave propagation, communication network packet latency, and sensory feedback delays in biological and robotic systems.
Mathematical Model
In the continuous time domain, the output signal is a time-shifted replica of the input signal:
where represents delayTime and represents initialOutput.
In the Laplace domain (), pure dead time is represented by an irrational non-minimum-phase exponential transfer function:
Evaluating the frequency response along the imaginary axis () reveals unity gain and a phase lag that grows linearly with frequency without bound:
In discrete numerical simulation with timestep , the circular buffer capacity is allocated as:
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
Example 1: Pipeline Thermal Fluid Transport Lag
In industrial heating networks, hot fluid pumped through an insulated pipeline requires transit time (where is length and is flow speed) before reaching downstream heat exchangers. Placing a Delay block with delayTime = 5.0 s and initialOutput = 20.0 °C between boiler output and heat exchanger input simulates the physical transport lag, illustrating how dead time erodes phase margin and induces temperature oscillations.
Example 2: Satellite Teleoperation Communication Latency
In space robotics and long-range unmanned underwater vehicles (UUVs), telemetry and joystick commands traverse high-latency satellite communication links. Inserting a Delay block with delayTime = 0.75 s into the forward control path and another into the sensor feedback path creates a realistic round-trip latency, enabling engineers to design and evaluate predictive Smith Predictor control algorithms.
Remarks & Best Practices
- Phase Margin Degradation: Pure transport delay introduces frequency-proportional phase lag () with zero amplitude attenuation, drastically constraining closed-loop gain and phase margins.
- Physical Time vs. Sample Count: Unlike
UnitDelaywhich shifts signals by exactly one simulation step,Delayparameterizes dead time in true physical seconds, maintaining fidelity even if simulation step size is altered. - Minimum One-Step Cushion: Enforces a minimum delay of 1 simulation timestep () to prevent instantaneous algebraic loops on direct feedthrough paths.
- Synchronous Buffer Reset: Driving the optional bottom
resetterminal with a positive value () immediately overwrites all circular buffer history registers withinitialOutput.
Related Components
- UnitDelay: Single-sample discrete shift operator () based on sample index.
- SmithPredictor: Model-predictive dead-time compensation structure for transport-lagged plants.
- Integrator: Continuous dynamic accumulator with state reset capability.
- LeadLag: First-order dynamic phase lead and lag compensator.