8
Sources Library
Source blocks provide
different signals for your model.
The simplest source is simply a
Constant.
A block that outputs a constant value.
The
Signal Builder allows custom signals to be built
using a graphical user interface (see right).
For more typical periodic functions, see the table below with key blocks from this library:
Block
Key
Block Parameters
Block
Key Block Parameters
Amplitude and Frequency
Bias and Phase
Time can be input as external
signal
Amplitude
Period (seconds)
Pulse Width (% of period)
Phase Delay (seconds)
Step Time
Initial Value
Final Value
Waveform: Sine, Square,
Sawtooth or Random
Amplitude
Frequency
Units (rad/sec or Hertz)
Assume we want to use the sine wave block to look at the frequency response of a system.
Repeatedly editing the block parameters to change the frequency of the sine wave is tedious.
The alternative is to use an external time input to the block.
To do this, in the Sine Wave block parameters you set the
Time parameter to
Use external signal
and set the
frequency to 2*pi. You then connect a clock to the new input via a slider gain. The
slider then sets the frequency of the sine wave.