| Contents | Index |
Sinks
You control the display format using the Format parameter:
| If you select... | The block displays... |
|---|---|
| short | A 5-digit scaled value with fixed decimal point |
| long | A 15-digit scaled value with fixed decimal point |
| short_e | A 5-digit value with a floating decimal point |
| long_e | A 16-digit value with a floating decimal point |
| bank | A value in fixed dollars and cents format (but with no $ or commas) |
| hex (Stored Integer) | The stored integer value of a fixed-point input in hexadecimal format |
| binary (Stored Integer) | The stored integer value of a fixed-point input in binary format |
| decimal (Stored Integer) | The stored integer value of a fixed-point input in decimal format |
| octal (Stored Integer) | The stored integer value of a fixed-point input in octal format |
If the input to a Display block has an enumerated data type (see Enumerations and Modeling):
The block displays enumerated values, not the values of underlying integers.
Setting Format to any of the Stored 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... |
|---|---|
(SI) | The stored integer value |
hex | In hexadecimal format |
bin | In binary format |
oct | 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 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, which you can set 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 is not the same. The default sample time, -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, and the block adds display fields in the appropriate direction. 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:
Floating point
Built-in integer
Fixed point
Boolean
Enumerated
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 short.
Specify how often to display data, as discussed in Frequency of Data Display. The default is 1.
Select to use the block as a floating display, as discussed in Floating Display.
The sldemo_auto_climatecontrol model shows how you can use the Display block.

For more information, see the model description.
Sample Time | Use set_param to specify the SampleTime property |
Dimensionalized | Yes |
Multidimensionalized | No |
Zero-Crossing Detection | No |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |