User`s guide
Triggered Signal From Workspace
5-456
5Triggered Signal From Workspace
Purpose Import signal samples from the MATLAB workspace when triggered.
Library DSP Sources
Description The Triggered Signal From Workspace block imports signal samples from the
MATLAB workspace into the Simulink model when triggered by the control
signal at the input port ( ). The
Signal parameter specifies the name of a
MATLAB workspace variable containing the signal to import, or any valid
MATLAB expression defining a matrix or 3-D array.
When the
Signal parameter specifies an M-by-N matrix (M≠1), each of the N
columns is treated as a distinct channel. The frame size is specified by the
Samples per frame parameter, M
o
, and the output when triggered is an
M
o
-by-N matrix containing M
o
consecutive samples from each signal channel.
For M
o
=1, the output is sample-based; otherwise the output is frame-based.
For convenience, an imported row vector (M=1) is treated as a single channel,
so the output dimension is M
o
-by-1.
When the
Signal parameter specifies an M-by-N-by-P array, the block
generates a single page of the array (an M-by-N matrix) at each trigger time.
The
Samples per frame parameter must be set to 1, and the output is always
sample-based.
Trigger Event
The triggering event at the input port is specified by the Trigger type pop-up
menu, and can be one of the following:
•
Rising edge triggers execution of the block when the trigger input rises from
a negative value to zero or a positive value, or from zero to a positive value.
•
Falling edge triggers execution of the block when the trigger input falls from
a positive value to zero or a negative value, or from zero to a negative value.
•
Either edge triggers execution of the block when either a rising or falling
edge (as described above) occurs.
Initial and Final Conditions
The Initial output parameter specifies the output of the block from the start
of the simulation until the first trigger event arrives. Between trigger events,
the block holds the output value constant at its most recent value (i.e., no linear