User`s guide
Creating Signals
3-33
Creating Signals
There are a variety of different ways to create signals using Simulink and DSP
blocks. The following sections explore the most common techniques:
•“Creating Signals Using Constant Blocks” on page 3-33
•“Creating Signals Using Signal Generator Blocks” on page 3-36
•“Creating Signals Using the Signal From Workspace Block” on page 3-38
The above sections discuss creating signals (single-channel and multichannel)
using source blocks. For information about constructing multichannel signals
from existing single-channel signals, see the following sections:
•“Constructing Multichannel Sample-Based Signals” on page 3-42
•“Constructing Multichannel Frame-Based Signals” on page 3-45
Creating Signals Using Constant Blocks
A constant signal is a sample-based signal in which successive samples are
identical, or a frame-based signal in which successive frames are identical. The
DSP Sources library provides the following blocks for creating sample-based
and frame-based constant signals:
•Constant Diagonal Matrix
•Constant Ramp
•DSP Constant
•Identity Matrix
•Window Function
Although some of these blocks generate continuous-time outputs and some
generate discrete-time outputs, in each case the output of the block remains
constant throughout the simulation.
The most versatile of these blocks is the DSP Constant, which is discussed
further in the following example. See Chapter 5, “DSP Block Reference,” for
complete explanation of all the constant blocks.
For information about creating signals with other types of blocks, see the
following sections:
•“Creating Signals Using Signal Generator Blocks” on page 3-36