Learn about basic Simulink block how to use it
Welcome to MAE Learning
Hello everyone, welcome to MAE Learning . In this article, we will explore some basic Simulink blocks.
These include Saturation, Unit Delay, Delay, and Data Type Conversion blocks.
Saturation Block
The Saturation block limits the input signal between a maximum and minimum value.
Examples
Delay Block
The Delay block outputs the input after a given number of sample steps.
Examples
Unit Delay Block
The Unit Delay block holds the input value for one sample period before passing it to the output.
Examples
Data Type Conversion Block
The Data Type Conversion block changes the input signal into another data type.
Examples
โ ๏ธ Data Type Mismatch Error
This error occurs because different blocks are using incompatible data types.
Fix Logic
Unit Delay vs Delay Block
| Feature | Unit Delay Block | Delay Block |
|---|---|---|
| Delay Amount | Fixed (1 sample period) | User-defined (multiple / variable) |
| Main Use | Discrete-time modeling (zโปยน) | Arbitrary delays, buffers |
| Initial Condition | User configurable | User configurable / via port |
| Sample Time | Explicit or inherited | Explicit or inherited |
| Variable Delay | No | Yes |
| Supported Data Types | Most (except int64, uint64) | Most (supports variable delay) |
| Frame / Multichannel | Yes | Yes |
| Applications | Control loops, digital filters | Buffers, FIFO, transport delay |
Summary: Unit Delay vs Delay Block
Unit Delay Block: Ideal for introducing a one-step discrete delay. Commonly used in digital control systems and shift registers. It represents the zโปยน operator in discrete-time systems.
Delay Block: More flexible and supports arbitrary delay lengths, including dynamic and variable delays. Suitable for modeling time lags, buffers, and complex delay behaviors.
Common Features: Both blocks allow initial condition configuration, support discrete sample time, and can be used in frame-based (multichannel) signal processing.








