本页对应的英文页面已更新,但尚未翻译。 若要查看最新内容,请点击此处访问英文页面。
通过指定状态转移时间以及动作执行时间来控制 Stateflow® 图的执行。通过广播事件同步状态执行。检测数据值的变化,并检查在图执行期间有哪些状态为活动状态。
Chart | Implement control logic with finite state machine |
指定当状态处于激活状态时要执行的动作。
将触发器、条件和动作添加到转移。
Eliminate Redundant Code by Combining State Actions
Combine entry
, during
, and
exit
actions in a state.
Control Function-Call Subsystems by Using bind Actions
Bind a function-call output event to the activity of a state.
在 Stateflow 图中执行数学计算。
Special symbols available for state and transition actions.
Call Extrinsic MATLAB Functions in Stateflow Charts
Access MATLAB® functions that are not supported for code generation.
Access MATLAB Functions and Workspace Data in C Charts
Call built-in MATLAB functions by using the ml
operator.
在状态和转移标签中访问 C 函数。
Check State Activity by Using the in Operator
Determine if a state is active during chart execution.
定义数据更改值时的图行为。
使用基于事件的和绝对时间的时序逻辑运算符。
Define Chart Behavior by Using Implicit Events
Trigger chart actions by changes in data values and state activity.
Control Oscillations by Using the duration Operator
Simplify debouncing logic in charts that have transient signals.
Count Events by Using the temporalCount Operator
Count occurrences of explicit and implicit events.