Products & Services Solutions Academia Support User Community Company

Learn more about Signal Processing Blockset   

Check Signal Attributes - 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 the characteristics you specify in the block parameters.

When you set Error when input to Does not match attributes exactly, the block generates an error when the input fails to match any of the specified attributes. Only signals that possess all of the specified attributes propagate to the output unaltered and do not cause the block to generate an error.

When you set Error when input to Matches attributes exactly, the block generates an error only when the input possesses all specified attributes. Signals that do not possess all of the specified attributes propagate 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 Ignore for any parameter, the block does not check the signal for the corresponding attribute. For example, when you set Complexity to Ignore, neither real nor complex inputs cause the block to generate an error. The attributes are:

Dialog Box

Error when input

Specify whether the block generates an error when the input does or does not possess all of the required attributes.

Complexity

Specify the complexity for which you want to check the input, Real or Complex. When you select Ignore from the list, the block does not check the complexity of the input.

Frame status

Specify the frame status for which you want to check the input, Sample-based or Frame-based. When you select Ignore from the list, the block does not check the frame status of the input.

Dimensionality

Specify whether you want to check the input for compliance or noncompliance with the attributes in the subordinate Dimensions menu. When you select Ignore from the list, the block does not check the dimensionality of the input.

Dimensions

Specify the dimensions for which you want to check the input. This parameter is only visible when you set the Dimensionality parameter to Is... or Is not....

Data type

Specifies whether you want to check the input for compliance or noncompliance with the attributes in the subordinate General data type menu. When you select Ignore from the list, the block does not check the input data type.

General data type

Specify the general data type for which you want to check the input. This parameter is only visible when you set the Data type to Is... or Is not....

Specific floating-point

Specify the floating-point data type for which you want to check the input. This parameter is only visible when you set the General data type to Floating-point or Floating-point or boolean.

Specific fixed-point

Specify the fixed-point data type for which you want to check the input. This parameter is only visible when you set the General data type to Fixed-point.

Specific integer

Specify the integer data type for which you want to check the input. This parameter is only visible when you set the General data type to Integer.

Sample time

Specify the sample time for which you want to check the input, Discrete or Continuous. When you select Ignore from the list, the block does not check the sample time of the input.

Supported Data Types

PortSupported Data Types

Input

  • Double-precision floating point

  • Single-precision floating point

  • Fixed point (signed and unsigned)

  • Boolean

  • 8, 16, and 32-bit signed integers

  • 8, 16, and 32-bit unsigned integers

  • Enumerated

Output

  • Double-precision floating point

  • Single-precision floating point

  • Fixed point (signed and unsigned)

  • Boolean

  • 8, 16, and 32-bit signed integers

  • 8, 16, and 32-bit unsigned integers

  • Enumerated

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

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

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