Introduction to Simulink with Engineering Applications

Chapter 5: The Discrete Blocks Library

Overview

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.

5.1 The Discrete-Time Linear Systems Sub-Library

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

5.1.1 The Unit Delay Block

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

5.1.2 The Integer Delay Block

The Integer Delay block delays its input by N sample periods. Both the input and the output can be scalar or vector.

Example 5.1

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.


Figure 5.1: Model for Example 5.1


Figure 5.2: Input and output waveforms for the model of Figure 5.1

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:

UNLIMITED FREE
ACCESS
TO THE WORLD'S BEST IDEAS

SUBMIT
Already a GlobalSpec user? Log in.

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.

Customize Your GlobalSpec Experience

Category: Sample-and-Hold Amplifiers
Finish!
Privacy Policy

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.