| Simulink Reference | ![]() |
Specify the desired dimensions, sample time, data type, numeric type, and other attributes of a signal.
Library
Description
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 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 and you use Signal Specification blocks to connect your part of the model with your colleague's. Now, if your colleague changes the attributes of a signal without informing you, the attributes entering the corresponding Signal Specification block do not match and Simulink reports an appropriate error.
The Signal Specification block can also be used to ensure correct propagation of signal attributes throughout a model. The capability of allowing many attributes to be propagated from block to block in Simulink is very powerful. However, because blocks may not specify some or all of the attributes of the signals they accept or output, it is possible to create models that don't have enough information to correctly propagate attributes around the model. 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.
Data Type Support
The Signal Specification block accepts real or complex signals of any data type supported by Simulink, including fixed-point data types. The input data type must match the data type specified by the Data type parameter.
For a discussion on the data types supported by Simulink, refer to Data Types Supported by Simulink in the Using Simulink documentation.
Parameters and Dialog Box
-1--Inherited from the block to which it is connected
n--Vector signal of width n
[m n]--Matrix signal having m rows and n columns
-1--inherited from the block to which it is connected
period >= 0
[period, offset]
[0, -1]
[-1, -1]
period is the sample rate and offset is the offset of the sample period from time zero. See Specifying Sample Time in the online documentation for more information.
auto.
Specify via dialog for the Data type parameter.
Specify via dialog for the Data type parameter.
real or complex) of the input and output signal. To let Simulink determine the numeric type, set this parameter to auto.
sample-based or frame-based) of this block. To let Simulink determine the sampling mode, set this parameter to auto.
Characteristics
| Direct Feedthrough |
Yes |
| Sample Time |
Specified by the block's Sample Time parameter. |
| Scalar Expansion |
No |
| Dimensionalized |
Yes |
| Zero Crossing |
No |
| Signal Generator | Sine | ![]() |
© 1994-2005 The MathWorks, Inc.