Introduction to Simulink with Engineering Applications

This chapter is an introduction to the Discrete Blocks library. This is the fourth library in the Simulink group of libraries and contains the Discrete-Time Linear Systems Sub-Library, and the Sample & Hold Delays Sub-Library blocks shown below. We will describe the function of each block included in this library and we will perform simulation examples to illustrate their application.

The Discrete-Time Linear Systems Sub-Library contains the blocks described in Subsections 5.1.1 through 5.1.14 below.

The Unit Delay block is described in Chapter 2, Section 2.15, Chapter 2, Page 2 24.

The Integer Delay block delays its input by N sample periods. Both the input and the output can be scalar or vector.
We will create a model using an Integer Delay block with five delays (N = 5 ) where the input will be a discrete sine wave with amplitude 1, frequency 1 Hz, and sample time 0.1 s.
The model is shown in Figure 5.1 and the input and output waveforms are shown in Figure 5.2.
For the Sine Wave block, in the Block Parameters dialog box we specified:
Sine type: Time based
Sample time: 0.1
For the Integer Delay block, in the Block Parameters dialog box we specified:
Initial condition: 0.0
Number of delays: