| Simulink Reference | ![]() |
Library
Description
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
The amount of data displayed and the time steps at which the data is displayed are determined by block parameters:
nth sample, where n is the decimation factor. The default decimation, 1, displays data at every time step.
-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 top model shows the block before it is resized; notice the black triangle. The bottom model shows the resized block displaying both input elements.

Note that the Display block displays up to ten columns of a matrix.
Display Abbreviations
The following abbreviations appear on the Display block to help you identify the format of the number being displayed.
Floating Display
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 Simulink. See "Signal storage reuse" in the Using Simulink documentation for more information.
Data Type Support
The Display block accepts and outputs real or complex signals of any data type supported by Simulink, including fixed-point data types.
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
short.
1, displays every input point.
Characteristics
| Sample Time |
Specified in the Sample time parameter |
| Dimensionalized |
Yes |
| Discrete Zero-Pole | Divide | ![]() |
© 1994-2005 The MathWorks, Inc.