Check Signal Attributes - Generate error when input signal does or does not match selected attributes exactly

Library

Signal Management / Signal Attributes

dspsigattribs

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 when input parameter is set to Does not match attributes exactly, the block generates an error if the input fails to match any of the attributes specified by the other parameters. Only signals that possess all of the specified attributes are propagated to the output unaltered, and do not cause the block to generate an error.

When the Error when 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 cause the block to 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 you select the Ignore 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:

General Data TypeIs...Is not...

Boolean

boolean

single, double, uint8, int8, uint16, int16, uint32, int32, fixed-point

Floating point

single, double

boolean, uint8, int8, uint16, int16, uint32, int32, fixed-point

Fixed point

fixed point

boolean, uint8, int8, uint16, int16, uint32, int32, single, double

Integer

Signed integer
int8, int16, int32
Unsigned integer
uint8, uint16, uint32

boolean, single, double

To display data type information, in your model window, from the Format menu, point to Port/Signal Displays and select Port Data Types.

Dialog Box

Error when input

Specifies whether the block generates an error when the input does not possess all of the required attributes (Does not match attributes exactly), or when the input does possess all of the required attributes (Matches attributes exactly).

Complexity

The complexity for which the input should be checked, Real or Complex. When you select Ignore from the list, the block does not check the input's complexity.

Frame status

The frame status for which the input should be checked, Sample-based or Frame-based. When you select Ignore from the list, the block does not check the input's frame status.

Dimensionality

Specifies whether the input should be checked for compliance (Is...) or noncompliance (Is not...) with the attributes in the subordinate Dimensions menu. When you select Ignore from the list, the block does not check the input's dimensionality.

Data type

Specifies whether the input should be checked for compliance (Is...) or noncompliance (Is not...) with the attributes in the subordinate General data type menu. When you select Ignore from the list, the block does not check the input's data type.

Sample time

The sample time for which the input should be checked, Discrete or Continuous. When you select Ignore from the list, the block does not check the input's sample time.

Supported Data Types

PortSupported Data Types

Input

  • Double-precision floating point

  • Single-precision floating point

  • Fixed point

  • Boolean

  • 8, 16, and 32-bit signed integers

  • 8, 16, and 32-bit unsigned integers

Output

  • Double-precision floating point

  • Single-precision floating point

  • Fixed point

  • Boolean

  • 8, 16, and 32-bit signed integers

  • 8, 16, and 32-bit unsigned integers

See Also

BufferSignal Processing Blockset
Convert 1-D to 2-DSignal Processing Blockset
Convert 2-D to 1-DSignal Processing Blockset
Data Type ConversionSimulink
Frame Status Conversion (Obsolete)Signal Processing Blockset
Inherit ComplexitySignal Processing Blockset
ProbeSimulink
ReshapeSimulink
SubmatrixSignal Processing Blockset

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS