主要内容

本页翻译不是最新的。点击此处可查看最新英文版本。

状态转移选项卡

以表格形式设计模态逻辑

通过使用状态转移表,以表格形式设计您的组合逻辑。状态转移表提供了一个学习 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.

精选示例