Skip to Main Content Skip to Search
Product Documentation

Display - Show value of input

Library

Sinks

Description

Format Options

You control the display format using the Format parameter:

If you select...The block displays...
shortA 5-digit scaled value with fixed decimal point
longA 15-digit scaled value with fixed decimal point
short_eA 5-digit value with a floating decimal point
long_eA 16-digit value with a floating decimal point
bankA 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):

Display Abbreviations

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

    Note   (SI) does not appear when the signal is of an integer data type.

hex

In hexadecimal format

bin

In binary format

oct

In octal format

Frequency of Data Display

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:

Resizing Options

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.

Floating Display

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:

Data Type Support

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.

Parameters and Dialog Box

Format

Specify the format of the data that appears, as discussed in Format Options. The default is short.

Decimation

Specify how often to display data, as discussed in Frequency of Data Display. The default is 1.

Floating display

Select to use the block as a floating display, as discussed in Floating Display.

Examples

The sldemo_auto_climatecontrol model shows how you can use the Display block.

For more information, see the model description.

Characteristics

Sample Time

Use set_param to specify the SampleTime property

Dimensionalized

Yes

Multidimensionalized

No

Zero-Crossing Detection

No

See Also

Scope

  


Related Products & Applications

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