User`s guide
Check Signal Attributes
5-54
5Check Signal Attributes
Purpose Generate an error when the input signal does or does not match selected
attributes exactly.
Library Signal Management / Signal Attributes
Description The Check Signal Attributes block terminates the simulation with an error
when the input characteristics differ from those specified by the block
parameters.
When the
Error if input parameter is set to Does not match attributes
exactly
, the block generates an error only when the input possesses none of the
attributes specified by the other parameters. Signals that possess at least one
of the specified attributes are propagated to the output unaltered, and do not
generate an error.
When the
Error if input parameter is set to Matches attributes exactly, the
block generates an error only when the input possesses all attributes specified
by the other parameters. Signals that do not possess all of the specified
attributes are propagated to the output unaltered, and do not generate an
error.
Signal Attributes
The Check Signal Attributes block can test for up to five different signal
attributes, as specified by the following parameters. When
Ignore is selected
in any parameter, the block does not check the signal for the corresponding
attribute. For example, when
Complexity is set to Ignore, neither real nor
complex inputs cause the block to generate an error. The attributes are:
•
Complexity
Checks whether the signal is real or complex. (Note that this information can
also be displayed in a model by attaching a Probe block with
Probe complex
signal
selected, or by selecting Port data types from the model window’s
Format menu.)
•
Frame status
Checks whether the signal is frame-based or sample-based. (Note that
Simulink displays sample-based signals using a single line, →, and
frame-based signals using a double line, ⇒.)