Documentation

Display

Display signal value during simulation

  • Library:
  • Simulink / Dashboard

Description

The Display block connects to a signal in your model and displays its value during simulation. You can edit the parameters of the Display block while a simulation runs. Use the Display block with other Dashboard blocks to build an interactive dashboard of controls and indicators for your model.

Connection

Dashboard blocks do not use ports to connect to signals. To connect a signal to a Dashboard block, use the Connection table in the block's parameters.

  1. Double-click the block.

  2. Populate the Connection table by selecting signals of interest in your model.

  3. Mark the option button next to the signal you want to display.

  4. Click Apply.

Limitations

  • You cannot save the block connections or properties in model files that use the MDL format.

    To save connections and properties, save the model file in the SLX format.

  • Dashboard blocks can only connect to real scalar signals.

  • Dashboard blocks cannot connect to blocks that are commented out.

  • Dashboard blocks cannot connect to signals inside reference models.

  • Parameters specified by indexing a variable array do not appear in the Connection table. For example, a block parameter defined using the variable engine(1) does not appear in the table.

    To access the parameter in the Connection table, assign the indexed value to a scalar variable, such as engine_1. Then, use the scalar variable to define the block parameter.

Parameters

expand all

Signal connection options. Populate the Connection table by selecting signals of interest in your model. Mark the check box next to the signal you want to display. Click Apply to connect the signal.

Format for displaying numerical values.

  • When you select long, the block displays numeric signal values using up to 15 digits with a fixed decimal point that displays up to four decimal places.

  • When you select long_e, the block displays numeric signal values in scientific notation using up to 16 digits with a floating decimal point.

Text alignment in Display block.

Position of the block label. When the block is connected to a signal, the label is the name of the connected signal. When the block is not connected, the label is the instructional text.

Introduced in R2017b

Was this topic helpful?