Main Content

Control Simulations with Interactive Displays

Build a dashboard for your model, interactively control tunable parameter values and monitor signal values during simulation

Create an interactive display of controls and displays within your model diagram using blocks from the Dashboard library. Connect block parameters to control blocks (knobs, buttons, and switches) and signals to displays blocks (scopes and gauges).

Blocks

expand all

Dashboard ScopeTrace signals during simulation
DisplayDisplay signal value during simulation
GaugeDisplay signal value on circular scale
Half GaugeDisplay input value on semicircular scale
Quarter GaugeDisplay input value on quadrant scale
Linear GaugeDisplay input value on linear scale
LampDisplay color that reflects signal value on lamp
MultiStateImageDisplay image reflecting input value
Circular GaugeDisplay signal value during simulation on circular gauge with customizable appearance
Horizontal GaugeDisplay signal value during simulation on horizontal gauge with customizable appearance
Vertical GaugeDisplay signal value during simulation on vertical gauge with customizable appearance
LampDisplay color that reflects signal value on lamp with customizable appearance
EditEnter new value for parameter
KnobTune parameter value with dial
SliderTune parameter value with sliding scale
Push ButtonChange parameter or variable value using button
Rotary SwitchSwitch parameter to set values on dial
Radio ButtonSelect parameter value
Combo BoxSelect parameter value from drop-down menu
Check BoxSelect parameter or variable value
Rocker SwitchToggle parameter between two values
Slider SwitchToggle parameter between two values
Toggle SwitchToggle parameter between two values
Callback ButtonExecute MATLAB code using button
KnobChange parameter or variable value using knob with customizable appearance
Horizontal SliderChange parameter or variable value using horizontal slider with customizable appearance
Vertical SliderChange parameter or variable value using vertical slider with customizable appearance
Push ButtonChange parameter or variable value using button with customizable appearance
Callback ButtonExecute MATLAB code using button with customizable appearance
Rotary SwitchChange parameter or variable value using rotary switch with customizable appearance
Rocker SwitchChange parameter or variable value using switch with customizable appearance
Slider SwitchChange parameter or variable value using switch with customizable appearance
Toggle SwitchChange parameter or variable value using switch with customizable appearance

Classes

Simulink.SimulationData.ParameterStores logged parameter data and metadata
Simulink.HMI.InstrumentedSignalsSave and restore signal logging specification
Simulink.HMI.SignalSpecificationProgrammatically connect a Dashboard block to a signal
Simulink.HMI.ParamSourceInfoInformation about Dashboard block variable and parameter connections

Topics

Tune and Visualize Your Model with Dashboard Blocks

Use blocks in the Dashboard block library to visualize and interact with your model.

Interactively Design and Debug Models Using Panels

Use a panel containing Dashboard blocks to design and debug your model.

Design Custom Gauges

Design gauges using the Circular Gauge, Horizontal Gauge, and Vertical Gauge blocks.

Simulation Pacing

Specify a pace to slow down simulations.

Decide How to Visualize Simulation Data

Choose the right visualization technique for each modeling and simulation task.

Featured Examples