Main Content

Control Simulations with Interactive Displays

Build dashboard for model, interactively tune parameter values, and monitor signal values during simulation

Create an interactive dashboard for your model using a variety of controls and displays available in the Dashboard library.

  • Controls connect to variables and block parameters in your model, providing an interface for you to tune values during simulation.

  • Displays connect to signals and display the signal value during simulation.

To design custom dashboard blocks that look like controls and displays in your real system, use blocks from the Customizable Blocks library. For example, you can create a photorealistic model of the dashboard instrumentation in a real vehicle.

The top half of the image is titled "Tune parameter values and monitor signal values with dashboard blocks." It shows an assortment of dashboard blocks. The left side is labeled "Use pre-configured blocks from the Dashboard Library." Three blocks from the Dashboard library are shown: the Lamp block, the Gauge block, and the Slider Switch block. The right side is labeled "Design custom blocks with the Customizable Blocks Library." Three blocks from the Customizable Blocks Library are shown: the Lamp block, the Circular Gauge block, and the Slider Switch block. The image also shows a fuel light made with the customizable Lamp block, a tachometer made with the Circular Gauge block, and a gearbox made with the customizable Slider Switch block. The bottom half of the image is labeled "And organize the blocks into dashboard panels." It shows a dashboard panel with two tabs. The open tab shows an automotive dashboard with a speedometer and a tachometer, each made from a Circular Gauge block, and a fuel light made from a customizable Lamp block.

Blocks

expand all

Dashboard ScopeTrace signals on scope display 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