状态转移选项卡
以表格形式设计模态逻辑
通过使用状态转移表,以表格形式设计您的组合逻辑。状态转移表提供了一个学习 Stateflow® 的快速途径,它还是实现面向过程的简单时序状态机的理想解决方案。通过运行诊断检查、设置断点并在监视数据值的同时步进动作来检测建模错误。
模块
State Transition Table | 以表格形式表示模态逻辑 |
函数
convertToChart | Convert state transition table to Stateflow chart (自 R2023b 起) |
convertToSTT | Convert Stateflow chart to state transition table (自 R2023b 起) |
exportAsStruct | Export contents of state transition table as structure array (自 R2022b 起) |
主题
- 使用状态转移表对有限状态机建模
以简洁、紧凑的格式为顺序模态逻辑的有限状态机建模。
- Inspect the Design of State Transition Tables
Verify that the logic in your state transition table behaves as intended.
- Model Bang-Bang Controller by Using a State Transition Table
Use a state transition table to model a temperature regulator.
疑难解答
Debug Run-Time Errors in a State Transition Table
Use breakpoints to debug state transition tables.