Show value of input
You control the display format using the Format parameter:
|If you select...||The block displays...|
|A 5-digit scaled value with fixed decimal point|
|A 15-digit scaled value with fixed decimal point|
|A 5-digit value with a floating decimal point|
|A 16-digit value with a floating decimal point|
|A value in fixed dollars and cents format (but with no $ or commas)|
|The stored integer value of a fixed-point input in hexadecimal format|
|The stored integer value of a fixed-point input in binary format|
|The stored integer value of a fixed-point input in decimal format|
|The stored integer value of a fixed-point input in octal format|
The block displays enumerated values, not the values of underlying integers.
Setting Format to any of the
Integer settings causes an error.
The following abbreviations appear on the Display block to help you identify the format of the value.
|When you see...||The value that appears is...|
The stored integer value
In hexadecimal format
In binary format
In octal format
The amount of data that appears and the time steps at which
the data appears depend on the Decimation block
parameter and the
The Decimation parameter enables
you to display data at every
n is the decimation factor. The default
1, displays data at every time step.
Note: The Display block updates its display at the initial time, even when the Decimation value is greater than one.
SampleTime property, which
you can set with
enables you to specify a sampling interval at which to display points.
This property is useful when you are using a variable-step solver
where the interval between time steps is not the same. The default
-1, causes the block to ignore the
sampling interval when determining the points to display.
If the block inherits a sample time of
If the block input is an array, you can resize the block to show more than just the first element. You can resize the block vertically or horizontally. If the block input is a vector, the block sequentially adds display fields from left to right and top to bottom. The block displays as many values as possible. A black triangle indicates that the block is not displaying all input array elements.
The Display block shows the first 200 elements of a vector signal and the first 20 rows and 10 columns of a matrix signal.
To use the block as a floating display, select the Floating display check box. The block input port disappears and the block displays the value of the signal on a selected line.
If you select Floating display:
Turn off signal storage reuse for your model. See Signal storage reuse in the Simulink® documentation for more information.
Do not connect a multidimensional signal to a floating display. Otherwise, you get a simulation error because the block does not support multidimensional signals.
The Display block accepts real or complex signals of the following data types:
For more information, see Data Types Supported by Simulink in the Simulink documentation.
Specify the format of the data that appears, as discussed in Format Options. The default is
Specify how often to display data, as discussed in Frequency of Data Display. The default
Select to use the block as a floating display, as discussed in Floating Display.
shows how you can use the Display block.
For more information, see the model description.
Double | Single | Boolean | Base Integer | Fixed-Point | Enumerated