Skip to Main Content Skip to Search
Product Documentation

Displaying Block Outputs

Block Output Data Tips

For many blocks, Simulink can display block output (port values) as data tips on the block diagram while a simulation is running. The following model shows a port value data tip for the Fcn block, displaying an output value of –0.0797.

Setting Block Output Data Tip Options

You can set data tip options by selecting Port Values > Options from the Model Editor View menu and using the Block Output Display Options dialog box.

Enabling Block Output Display

To turn block output display on or off, in the Display values section of the dialog box, select one these options:

Simulink on Microsoft Windows platforms also has a Model Editor output display button to enable or disable block output display when hovering.

Controlling the Block Output Display

You can specify block output display formatting and how frequently the display updates.

Block Output Data Tip Display CharacteristicWhat You Specify
Text sizeTo increase the size of the output display text, move the Font size slider to the right.
Floating point data formatChoose a floating point format from the Display Format list.
Fixed-point data formatChoose a fixed-point format from the Display Format list.

Refresh interval (rate at which Simulink updates the output display)

The refresh rate is approximate and is independent of simulation time.

To increase the interval, move the Refresh interval slider to the right.

Displayed Value When No Data Is Available

Simulink displays xx.xx when you toggle or hover on a block, indicating that no block output is available. You see the xx.xx value if you did any of the following actions:

Also, if you toggle or hover on a block that Simulink optimizes out of a simulation (such as a virtual subsystem block), then you see block output during simulation. However, if you pause or stop the simulation, and you toggle or hover on that same block, then Simulink displays xx.xx.

Port Value Display Limitations

Performance

Enabling the hovering option, or toggling at least one block, slows down the simulation.

Accelerated Modes

Port values do not update in a model that simulates in any Accelerated mode. The limitation exists whether the model itself specifies accelerated simulation or the model is subordinate to a model that specifies accelerated simulation. See Accelerating Models, and Rapid Simulations for more information.

Signal Storage Reuse

A model with the Signal storage reuse parameter enabled displays a warning when you set Display values to Show When Hovering or Toggle When Clicked.

Do one of the following steps:

Signal Data Types

The port value displays for ports connected to most kinds of signals, including signals with built-in data types (such as double, int32, or Boolean), DYNAMICALLY_TYPED, and several other data types. However, no data displays for signals with some complex data types, such as bus signals.

  


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