| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Simulink |
| Contents | Index |
| Learn more about Simulink |
Signal Attributes
The Signal Specification block allows you to specify the attributes of the signal connected to its input and output ports. If the specified attributes conflict with the attributes specified by the blocks connected to its ports, Simulink software displays an error when it compiles the model. For example, at the beginning of a simulation. If no conflict exists, Simulink eliminates the Signal Specification block from the compiled model. In other words, the Signal Specification block is a virtual block. It exists only to specify the attributes of a signal and plays no role in the simulation of the model.
You can use the Signal Specification block to ensure that the actual attributes of a signal meet desired attributes. For example, suppose that you and a colleague are working on different parts of the same model. You use Signal Specification blocks to connect your part of the model with your colleague's. If your colleague changes the attributes of a signal without informing you, the attributes entering the corresponding Signal Specification block do not match. When you try to simulate the model, you get an error.
You can also use the Signal Specification block to ensure correct propagation of signal attributes throughout a model. The capability of allowing the Simulink to propagate attributes from block to block is powerful. However, if some blocks have unspecified attributes for the signals they accept or output, the model does not have enough information to propagate attributes correctly. For these cases, the Signal Specification block is a good way of providing the information Simulink needs. Using the Signal Specification block also helps speed up model compilation when blocks are missing signal attributes.
The Signal Specification block accepts real or complex signals of any data type thatSimulink supports, including fixed-point and enumerated data types. The input data type must match the data type specified by the Data type parameter. For more information, see Data Types Supported by Simulink in the Simulink documentation.

Specify the dimensions of the input and output signals.
Default: -1
Specifies that signals inherit dimensions.
Specifies vector signal of width n.
Specifies matrix signal having m rows and n columns.
| Parameter: Dimensions |
| Type: string |
| Value: '-1' | n | [m n | |
| Default: '-1' |
Specify a variable-size signal, fixed-size signal, or both.
Default: Inherit
Allows variable-size and fixed-size signals.
Does not allow variable-size signals.
Allows only variable-size signals.
When the signal is a variable-size signal, the Dimensions parameter specifies the maximum dimensions of the signal.
If you specify a bus object, the simulation allows variable-size signals only with a disabled bus object.
| Parameter: VarSizeSig |
| Type: string |
| Value: 'Inherit'| 'No' | 'Yes' |
| Default: 'Inherit' |
Working with Variable-Size Signals
Specify the time interval when the simulation updates the block.
Default: -1
Specify the time interval between samples. To inherit the sample time, set this parameter to -1. See How to Specify the Sample Time in the online documentation for more information.
| Parameter: SampleTime |
| Type: string |
| Value: Any valid sample time |
| Default: '-1' |
How to Specify the Sample Time
Select to lock the output data type setting of this block against changes by the Fixed-Point Tool and the Fixed-Point Advisor.
Default: Off
Locks the output data type setting for this block.
Allows the Fixed-Point Tool and the Fixed-Point Advisor to change the output data type setting for this block.
See Block-Specific Parameters for the command-line information.
For more information, see Fixed-Point Tool and Fixed-Point Advisor in the Simulink Fixed Point documentation.
Specify the numeric type of the input and output signals.
Default: auto
Accepts either real or complex as the numeric type.
Specifies the numeric type as a real number.
Specifies the numeric type as a complex number.
| Parameter: SignalType |
| Type: string |
| Value: 'auto' | 'real' | 'complex' |
| Default: 'auto' |
Select the sampling mode for this block.
Default: auto
Accepts any sampling mode.
Specifies the output signal to be sample-based.
Specifies the output signal to be frame-based.
To generate frame-based signals, you must have the Signal Processing Blockset product installed.
| Parameter: SamplingMode |
| Type: string |
| Value: 'auto' | 'Sample based' | 'Frame based' |
| Default: 'auto' |
Specify the minimum value for the block output.
Default: []
The default value, [], is equivalent to -Inf. Simulink uses this value to perform:
Simulation range checking (see Checking Signal Ranges)
Automatic scaling of fixed-point data types
This number must be a double scalar value.
| Parameter: OutMin |
| Type: string |
| Value: Any valid scalar value |
| Default: '[]' |
Specify the maximum value for the block output.
Default: []
The default value, [], is equivalent to Inf. Simulink uses this value to perform:
Simulation range checking (see Checking Signal Ranges)
Automatic scaling of fixed-point data types
This number must be a double scalar value.
| Parameter: OutMax |
| Type: string |
| Value: Any valid double scalar value |
| Default: '[]' |
Specify the output data type.
Default: auto
Inherits data type
Sets data type double.
Sets data type single.
Sets data type is int8.
Sets data type uint8.
Sets data type int16.
Sets data type uint16.
Sets data type int32.
Sets data type uint32.
Sets data type boolean.
Sets data type is fixed point fixdt(1,16,0).
Sets data type is fixed point fixdt(1,16,2^0,0).
Specifies the data type as enumerated.
Specifies the name of a data type object, for example,Simulink.NumericType
Click the Show data type assistant button
to display the Data
Type Assistant, which helps you set the Data
type parameters.
| Parameter: OutDataTypeStr |
| Type: string |
| Value: 'Inherit: auto' | 'double' | 'single' | 'int8' | 'uint8' | 'int16' | 'uint16' | 'int32' | 'uint32' | 'boolean' | 'fixdt(1,16,0)' | 'fixdt(1,16,2^0,0)' | 'Enum:<class name>' | <data type expression> | |
| Default: 'Inherit: auto' |
Specifying Block Output Data Types.
Select the category of data to specify.
Default: Inherit
Specifies inheritance rules for data types. Selecting Inherit enables a list of possible values, which can vary by block:
Inherit from 'Constant value' (Constant block default)
Inherit via internal rule (Discrete-Time Integrator, Gain, Product, Sum, Switch block default)
Inherit via back propogation (Data Type Conversion block default)
auto (Inport, Outport block default)
Logical (see Configuration Parameters: Optimization)
Same as first input
Same as input (Saturation block default)
Same as accumulator
Specifies built-in data types. Selecting Built in enables a list of possible values, which can vary by block:
double (Constant, Data Type Conversion, Discrete-Time Integrator, Gain, Inport, Outport, Product, Saturation, Sum, Switch block default)
single
int8
uint8
int16
uint16
int32
uint32
boolean (Logical Operator, Relational Operator block default)
Specifies fixed-point data types.
Specifies enumerated data types. This option is available on some blocks. Selecting Enumerated enables a list of possible values, which can vary by block:
<class name>
Specifies expressions that evaluate to data types. Selecting Expression enables a second menu/text box to the right. Following are the possible values, which can vary by block:
<data type expression>
Clicking the Show data type assistant button
enables this parameter.
See Block-Specific Parameters for the command-line information.
Using the Data Type Assistant in the Simulink User's Guide.
Specify whether you want the fixed-point data signed or unsigned.
Default: Signed
Selecting Mode > Fixed point enables this parameter.
See Block-Specific Parameters for the command-line information.
Specifying a Fixed-Point Data Type in the Simulink User's Guide.
Specify the bit size of the word that holds the quantized integer.
Default: 16
Minimum: 0
Maximum: 32
Large word sizes represent large values with greater precision than small word sizes.
Selecting Mode > Fixed point enables this parameter.
See Block-Specific Parameters for the command-line information.
Specifying a Fixed-Point Data Type in the Simulink User's Guide.
Specify the method for scaling your fixed-point data to avoid overflow conditions and minimize quantization errors.
Default: Binary point
Selecting Fixed point from the Mode list enables this parameter.
Selecting Binary point from the Scaling list enables:
Fraction length
Calculate Best-Precision Scaling
Selecting Slope and bias from the Scaling list enables:
Slope
Bias
Calculate Best-Precision Scaling
Specifying a Fixed-Point Data Type in the Simulink User's Guide.
Specify fraction length for fixed-point data type.
Default: 0
Binary points can be positive or negative integers.
Selecting Scaling > Binary point enables this parameter.
See Block-Specific Parameters for the command-line information.
Specifying a Fixed-Point Data Type in the Simulink User's Guide.
Specify slope for the fixed-point data type.
Default: 2^0
Specify any positive real number.
Selecting Scaling > Slope and bias enables this parameter.
See Block-Specific Parameters for the command-line information.
Specifying a Fixed-Point Data Type in the Simulink User's Guide.
Specify bias for the fixed-point data type.
Selecting Scaling > Slope and bias enables this parameter.
See Block-Specific Parameters for the command-line information.
Specifying a Fixed-Point Data Type in the Simulink User's Guide.
Direct Feedthrough | Yes |
Sample Time | Specified by the Sample time parameter |
Scalar Expansion | No |
Dimensionalized | Yes |
Multidimensionalized | Yes |
Virtual | Yes For more information, see Virtual Blocks in the Simulink documentation. |
Zero-Crossing Detection | No |
![]() | Signal Generator | Sine, Cosine | ![]() |

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 |