状态转移表
以表格形式设计模态逻辑
通过使用状态转移表,以表格形式设计您的组合逻辑。状态转移表提供了一个学习 Stateflow® 的快速途径,它还是实现面向过程的简单时序状态机的理想解决方案。通过运行诊断检查、设置断点并在监视数据值的同时步进动作来检测建模错误。
模块
| State Transition Table | 以表格形式表示模态逻辑 |
函数
convertToChart | 将状态转移表转换为 Stateflow 图 (自 R2023b 起) |
convertToSTT | 将 Stateflow 图转换为状态转移表 (自 R2023b 起) |
exportAsStruct | Export contents of state transition table as structure array (自 R2022b 起) |
主题
- Model State Transition Tables by Using State Transition Table Blocks
Use state rows, transition columns, and the Symbols pane to define a state transition table.
- Create Parallel States in State Transition Tables
Execute states at the same time by using parallel decomposition.
- Enable Logging and Breakpoints in State Transition Tables
Debug state transition tables by logging states and data, and adding breakpoints to states and transitions.
- Inspect the Design of State Transition Tables
Verify that the logic in your state transition table behaves as intended.
