Main Content

状态转移选项卡

以表格形式设计模态逻辑

通过使用状态转移表,以表格形式设计您的组合逻辑。状态转移表提供了一个学习 Stateflow® 的快速途径,它还是实现面向过程的简单时序状态机的理想解决方案。要检测建模错误,请运行诊断检查,设置断点,并在监控数据值的同时逐步执行动作。

模块

State Transition Table以表格形式表示模态逻辑

函数

convertToChartConvert state transition table to Stateflow chart (自 R2023b 起)
convertToSTTConvert Stateflow chart to state transition table (自 R2023b 起)
exportAsStructExport contents of state transition table as structure array (自 R2022b 起)

主题

疑难解答

Debug Run-Time Errors in a State Transition Table

Use breakpoints to debug state transition tables.