Signals represent the calculated outputs of a simulation. Signals appear in a model as lines that connect the outputs of blocks to the inputs of other blocks. To view signal data during and after simulation, you can display the real-time signal values on the block diagram or log the values to variables in a workspace.
To control the mathematical behavior of a model, you can specify signal characteristics including numeric data type, initial simulation value, and value range.
For an overview of signals and how you work with them, see Signal Basics.
|Signal Specification||Specify desired dimensions, sample time, data type, numeric type, and other attributes of signal|
|Bus to Vector||Convert virtual bus to vector|
|IC||Set initial value of signal|
|Probe||Output signal attributes, including width, dimensionality, sample time, and complex signal flag|
|Rate Transition||Handle transfer of data between blocks operating at different rates|
|Signal Conversion||Convert signal to new type without altering signal values|
|Weighted Sample Time||Support calculations involving sample time|
|Width||Output width of input vector|
|Specify attributes of signal|
Create, configure, and identify signal lines.
Models can contain different kinds of signal line including composite signals, virtual signals, and control signals.
Virtual signals can make a model easier to maintain and understand without affecting the functionality of the model.
Initialize, access, and understand the values that signals have during a simulation run.
While debugging or exploring a model, trace a signal to its source or destination.
To test or debug a model, provide simulation input stimulus by creating interchangeable groups of signal data.
Display the values of block outputs on the block diagram during simulation.
Inspect and edit data items (signals, parameters, and states) in a list that you can sort, group, and filter.
You can name a signal so that you can identify and access it more easily. Take advantage of signal label propagation to reduce the effort of naming a signal that crosses system boundaries.
Fully specify your design and optimize data types and the generated code by specifying the minimum and maximum value that a signal can attain during simulation.
Inspect and control signal dimensionality. Take advantage of the interaction between signal and parameter dimensionality.
Model systems of equations and concurrent systems by using nonscalar signals.
Some systems contain signals and states whose initial values you must specify, for example, the starting position and velocity of a bouncing ball.
Use test points to exclude signal lines from optimizations, enabling you to access the simulation data.
Improve model readability by displaying signal attributes, such as data types and dimensions, in the block diagram.
Overview of the Signal Properties Dialog Box
A variable-size signal is a signal whose size (the number of elements in a dimension) can change during a simulation.
Inspect example models that show how to use variable-size signals.
Inspect example S-functions that show how to use variable-size signals.
You can view a list of blocks that support variable-size signals.
Some features and products do not support variable-size signals.