将 Simulink 子系统作为状态
将基于 Simulink® 的状态嵌入您的 Stateflow® 图中
对嵌入在 Stateflow 状态中的连续或周期性 Simulink 算法建模。将基于 Simulink 的状态保存为自定义库中的子系统。库模块更新后,更改会反映在包含该模块的所有 Stateflow 图中。
主题
- 将 Simulink 子系统作为状态
在 Stateflow 状态内使用 Simulink 子系统对混合系统进行建模。
- Create and Edit Simulink Based States
Define a Simulink based state in your Stateflow chart.
- Access Block State Data
Set the state variables of your Simulink based states.
- Map Variables for Simulink Based States
Ensure that the variables in your Simulink based state map to chart outputs.
- Set Simulink Based State Properties
Specify properties for your Simulink based state.