Main Content

本页翻译不是最新的。点击此处可查看最新英文版本。

通过交互显示控制仿真

为您的模型构建一个仪表板,在仿真期间以交互方式调节参数值并监控信号值

使用 Dashboard 库中可用的各种控件和显示为模型创建交互式控制板。

  • 控件连接到模型中的变量和模块参数,为您提供在仿真期间调节值的界面。

  • 显示连接到信号,并在仿真期间显示信号值。

要设计看起来像真实系统中的控制器和显示器的自定义 Dashboard 模块,请使用 Customizable Blocks 库中的模块。例如,您可以创建一个真实车辆中仪表板仪表的逼真模型。

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.

模块

全部展开

Dashboard Scope仿真期间跟踪示波器显示画面上的信号
Display在仿真期间显示信号值
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
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
Knob用刻度盘调节参数值
Slider用滑动标尺调整参数值
Push 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 Switch将参数在两个值之间切换
Slider Switch将参数在两个值之间切换
Toggle Switch将参数在两个值之间切换
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

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

主题