Unit Delay
DiscreteDelays the input signal by exactly one sample period (z⁻¹ operator). This is the fundamental building block for discrete-time systems, digital filters, and state machines.
Mathematical Model
Inputs & Outputs
| Direction | ID | Label | Type | Status |
|---|---|---|---|---|
| → In | in |
Input | number | Required |
| → In | reset |
Reset | number | Required |
| ← Out | out |
Output | number | Output |
Parameters
| Parameters | Label | Type | Default | Description |
|---|---|---|---|---|
initialCondition |
Initial Condition | number | 0 |
Usage Examples
- Zie de ingebouwde voorbeelden in de handleiding voor een demonstratie van dit blok.
Remarks & Best Practices
- Differs from the Delay block which delays by a time duration (seconds).
- UnitDelay always delays by exactly 1 sample, regardless of sample time.
- Essential for building IIR/FIR filters and discrete state feedback.
Related Components
- Delay: Time-based delay (configurable seconds)
- DiscreteTransferFunction: Uses UnitDelay internally
- Integrator: Continuous-time accumulator