事件
创建触发器以激活其他系统
使用事件触发 Stateflow® 图或其他 Simulink® 子系统中的动作。通过向 Simulink 模型中的其他图发送事件来触发外部动作。有关向调度编辑器发送事件以调度非周期性分区执行的详细信息,请参阅Events in Schedule Editor (Simulink)。
模块
Sequence Viewer | Display messages, events, states, transitions, and functions between blocks during simulation |
Stateflow 语法
主题
- 通过广播事件同步模型组件
使用事件与 Simulink 和 MATLAB® 通信。
- 在 Stateflow 编辑器中管理符号
添加、删除和跟踪非图形对象。
- 设置事件的属性
使用属性检查器或模型资源管理器指定事件属性。
- 通过发送输入事件激活 Stateflow 图
广播边沿触发器和函数调用作为输入事件。
- Control States in Charts Enabled by Function-Call Input Events
Set the behavior of states when a function-call input event reenables a chart.
- 通过发送输出事件激活 Simulink 模块
广播边沿触发器和函数调用作为输出事件。
- Control Function-Call Subsystems by Using bind Actions
Bind a function-call output event to the activity of a state.
- 广播局部事件以同步并行状态
通过进行有向事件广播在并行 (AND) 状态之间进行通信。
- 通过使用隐式事件控制图行为
通过数据值和状态活动的变化触发图动作。
- Use the Sequence Viewer to Visualize Messages, Events, and Entities
View the interchange of messages, events, and functions through the Sequence Viewer block.