| Simulink® | ![]() |
Sinks
The Display block shows the value of its input on its icon.
You control the display format using the Format parameter:
short — displays a 5-digit scaled value with fixed decimal point
long — displays a 15-digit scaled value with fixed decimal point
short_e — displays a 5-digit value with a floating decimal point
long_e — displays a 16-digit value with a floating decimal point
bank — displays a value in fixed dollars and cents format (but with no $ or commas)
hex (Stored Integer) — displays the stored integer value of a fixed-point input in hexadecimal format
binary (Stored Integer) — displays the stored integer value of a fixed-point input in binary format
decimal (Stored Integer) — displays the stored integer value of a fixed-point input in decimal format
octal (Stored Integer) — displays the stored integer value of a fixed-point input in octal format
If the signal input to a Display block has an enumerated data type (see Using Enumerated Data):
The block displays enumerated values, not the values' underlying integers.
Setting the Format to any of the Stored Integer settings causes an error.
The amount of data displayed and the time steps at which the data is displayed are determined by the Decimation block parameter and the SampleTime property:
The Decimation parameter enables you to display data at every nth sample, where n is the decimation factor. The default decimation, 1, displays data at every time step.
The SampleTime property, settable with set_param, 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 might not be the same. The default value of -1 causes the block to ignore the sampling interval when determining the points to display.
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; the block adds display fields in the appropriate direction. A black triangle indicates that the block is not displaying all input array elements. For example, the following figure shows a model that passes a vector (1-D array) to a Display block. The black triangle on the Display block indicates more data to be displayed.

The following figure shows the resized block displaying both input elements.

Note The Display block shows only the first 200 elements of a one-dimensional (vector) signal and only the first 20 rows and 10 columns of a two-dimensional (matrix) signal. |
The following abbreviations appear on the Display block to help you identify the format of the number being displayed.
Symbol | Description |
|---|---|
(SI) | This alerts you to the fact that the number being displayed is the stored integer value. This symbol does not appear when the signal is of an integer data type. |
hex | The number being displayed is in hexadecimal format. |
bin | The number being displayed is in binary format. |
oct | The number being displayed is in octal format. |
To use the block as a floating display, select the Floating display check box. The block's input port disappears and the block displays the value of the signal on a selected line. If you select the Floating display option, you must turn off the signal storage reuse feature in your Simulink software. See Signal storage reuse.
Note The floating display does not support multidimensional signals. If you connect a multidimensional signal to a floating display, the display generates an error. |
The Display block accepts and outputs real or complex signals of any data type supported by Simulink software, including fixed-point and enumerated data types.
For a discussion on the data types supported by Simulink software, see Data Types Supported by Simulink.

Specify the format of the data displayed, as discussed in Description. The default is short.
Specify how often to display data. The default value, 1, displays every input point.
If selected, the block's input port disappears, which enables the block to be used as a floating Display block.
SampleTime | Use set_param to specify the SampleTime property |
Dimensionalized | Yes |
![]() | Discrete Zero-Pole | Divide | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |