主要内容

Stateflow 图

R2026b
以图形形式设计模态逻辑

对包含有限数量的状态的系统进行建模。使用状态以图形方式表示系统的模式。条件转移提供这些模式之间的路径。通过状态和转移中的动作来控制系统的行为。

模块

全部展开

Chart blockChart用有限状态机实现控制逻辑
State Transition Table blockState Transition Table以表格形式表示模态逻辑
Truth Table用条件、决策和动作来表示逻辑决策行为

函数

全部展开

sfnew创建包含空 Stateflow 模块的 Simulink 模型
sflib打开 Stateflow 模块库
stateflow打开 Stateflow 模板页
sfopen打开 Simulink 模型
sfclose关闭 Stateflow 图
sfsaveSave Simulink model
sfprintExport Stateflow chart images
sfhelp在系统 Web 浏览器中打开 Stateflow 文档
sfdebugger打开“断点和监视”窗口
sfexplr打开模型资源管理器
sfprefSet preferences for Stateflow charts
convertToChart将状态转移表转换为 Stateflow 图 (自 R2023b 起)
convertToSTT将 Stateflow 图转换为状态转移表 (自 R2023b 起)
disableInstrumentationDisable Stateflow animation and breakpoints (自 R2026a 起)

对象

全部展开

AnnotationDescriptive text or image in chart
Atomic BoxEncapsulate functions in separate namespace
Atomic SubchartReusable, independent subcomponents in Stateflow chart
BoxBox that delineates areas of Stateflow chart
Default TransitionTransition with a destination but no source that specifies the initial substate to enter
Entry JunctionEntry junction that crosses state boundary of Stateflow chart
Exit JunctionExit junction that crosses state boundary of Stateflow chart
Graphical FunctionGraphical function that uses flow charts
History JunctionJunction that records and restores the previously active substate when a superstate is reentered
JunctionDecision points in Stateflow chart
MATLAB FunctionMATLAB function in Stateflow chart
Simulink Based StateSimulink subsystem in Stateflow chart
Simulink FunctionSimulink function subsystem in Stateflow chart
StateOperating mode in Stateflow chart
Truth Table FunctionTruth table in Stateflow chart