通过交互显示控制仿真
为您的模型构建一个仪表板,在仿真期间以交互方式调节参数值并监控信号值
使用 Dashboard 库中可用的各种控件和显示为模型创建交互式控制板。
控件连接到模型中的变量和模块参数,为您提供在仿真期间调节值的界面。
显示连接到信号,并在仿真期间显示信号值。
要设计看起来像真实系统中的控制器和显示器的自定义 Dashboard 模块,请使用 Customizable Blocks 库中的模块。例如,您可以创建一个真实车辆中仪表板仪表的逼真模型。
模块
类
Simulink.SimulationData.Parameter | Stores logged parameter data and metadata |
Simulink.HMI.InstrumentedSignals | Save and restore signal logging specification |
Simulink.HMI.SignalSpecification | Programmatically connect a Dashboard block to a signal |
Simulink.HMI.ParamSourceInfo | Information about Dashboard block variable and parameter connections |
主题
- 使用 Dashboard 模块对模型进行调优和可视化
使用 Dashboard 模块库中的模块对模型进行可视化并与之交互。
- Design Custom Gauges
Design gauges using the Circular Gauge, Horizontal Gauge, and Vertical Gauge blocks.
- Design Custom Knobs
Design knobs using the customizable Knob block.
- Design Custom Lamps
Design lamps using the customizable Lamp block.
- Design Custom Rocker, Slider, and Toggle Switches
Design switches using the customizable Rocker Switch, Slider Switch, and Toggle Switch blocks.
- Design Custom Rotary Switches
Design rotary switches using the customizable Rotary Switch block.
- Design Custom Sliders
Design slider switches using the customizable Slider Switch block.
- Simulation Pacing
Specify a pace to slow down simulations.
- 决定如何可视化仿真数据
为每个建模和仿真任务选择正确的可视化方法。