Display

Description

The Display block shows the value of the input data. You can specify the
frequency of the display. For numeric input data, you can also specify the format of
display.

If the block input is an array, you can resize the block vertically or horizontally to
show more than just the first element. 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.

Note

If you specify a numeric display format that is not large enough to display all
the digits of a value, the displayed values may lose precision. The result depends
on your computer hardware and operating system.

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

Displaying Strings

When working with strings, the Display block displays:

Strings with double quotes.

Special characters such as newline are shown as escaped sequences, for
example '\n'.

Decimation — Display rate1 (default) | integer

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.

Note

The Display block updates its display at the initial time,
even when the Decimation value is greater
than one.

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.

Note

If the block inherits a sample time of
Inf, the
Decimation parameter is
ignored.

Programmatic Use

Block Parameter:Decimation

Type: character vector

Values:'1' | integer

Default:'1'

Floating display — Floating displayoff (default) | on

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.