Dashboard Scope
Trace signals on scope display during simulation
Libraries:
Simulink /
Dashboard
Description
The Dashboard Scope block plots connected signals during simulation on a scope display. You can use the Dashboard Scope block with other dashboard blocks to build an interactive dashboard of controls and indicators for your model. Signals connected to the Dashboard Scope block log to the Simulation Data Inspector for analysis during or after simulation. The Dashboard Scope block can display signals of any data type that Simulink® supports, including enumerated data types, and up to eight signals from an array or bus.
Connect Dashboard Blocks
Dashboard blocks do not use ports to connect to model elements. To connect dashboard blocks to signals in your model, use connect mode. Connect mode facilitates the process of connecting dashboard blocks in your model, especially when you want to connect multiple blocks at once. To connect a single dashboard block, you can also use the Connection table in the block dialog box.
Tip
You can modify dashboard block connections during normal and accelerator mode simulations.
To enter connect mode, in the canvas, select the dashboard block to connect. On the Simulink Toolstrip, a tab named after the type of the selected block appears. On the block tab, click Connect. In connect mode, when you select one or more signals or blocks, a list of signals that are available for connection appears. Select a signal from the list to connect to the selected dashboard block. To connect another dashboard block, pause on the block you want to connect and click the Connect button above it. Then, select one or more signals and blocks in the model and choose a signal to connect.
When you finish connecting the dashboard blocks in your model, on the block tab, click Done Connecting.
Tip
You can hide the message shown on unconnected blocks using the
set_param
function with the ShowInitialText
block parameter. The message also disappears when you connect the block.
Analyze Signal Data
You can use the subplot menu or the context menu for the Dashboard Scope block to:
Show or hide data cursors.
Zoom out by a fixed amount.
Configure the mouse interaction to pan and select or to zoom in time, in y, or in both time and y.
Perform a fit-to-view in time, in y, or in both time and y.
To access the subplot menu, select the Dashboard Scope block then click the three dots that appear when you pause on the plot area.
Configure Signal Line Style and Color
You can modify the color and line style for signals connected to a Dashboard Scope block using the Connection table in the Block Parameters dialog box or the Property Inspector. To modify the appearance of a connected signal:
Click the preview of the signal appearance in the Style column of the Connection table.
Choose a color from the palette of standard colors or select the Custom tab to specify a custom color using
RGB
values between0
and255
.Select the line style from the solid, dotted, dashed, and dot-dashed options in the Style column.
Click Set.
When you mark a signal connected to the Dashboard Scope block for signal logging, you can also configure the signal color and line style using the Instrumentation Properties dialog box. In the signal color and line style menu for the Dashboard Scope block, the Override style and color option is selected by default and specifies whether signal appearance options you choose using the Connection table for the Dashboard Scope block override signal appearance options configured in the instrumentation properties for the connected signals.
When you connect signals to the Dashboard Scope block using the Block Parameters dialog box, the connection table shows the default signal color and line style for each signal you connect. As you select signals to connect, the Connection table updates the style and color for signals that are not selected to indicate the style and color for the next signal you connect.
Configure Complex Signal Format
When you connect a complex signal to the Dashboard Scope block, you can configure how the signal is displayed by specifying the Complex Format property for the signal:
Mark the complex signal for signal logging.
Right-click the logging badge for the complex signal and select Properties.
Specify the Complex Format.
Click OK.
When you specify the Complex Format for a signal as
Real-Imaginary
or
Magnitude-Phase
, the Dashboard Scope
block displays both components of the signal. The real or magnitude component is
displayed using the color indicated in the Connection table.
The imaginary or phase component is displayed using a different shade of the color
indicated in the Connection table.
Examples
Limitations
You cannot use the Connection table to connect a dashboard block to a block that is commented out. When you connect a dashboard block to a commented block using connect mode, the dashboard block does not display the connected value until the you uncomment the block.
The toolstrip does not support dashboard blocks that are in a panel.
Dashboard blocks cannot connect to signals inside referenced models.
When you simulate a model hierarchy, dashboard blocks inside referenced models do not update.
Dashboard blocks do not support rapid accelerator simulation.
You cannot connect a dashboard block to state activity or chart data in Stateflow® during simulation.
You cannot programmatically connect a dashboard block to state activity or chart data in Stateflow.
Some signals do not have data available during simulation due to block reduction or optimization for accelerator mode simulations. To view such a signal using a dashboard block, mark the signal for logging.
Parameters
Block Characteristics
Data Types |
|
Direct Feedthrough |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|
Extended Capabilities
Version History
Introduced in R2015a