Simulink 函数
直接调用 Simulink® 函数调用子系统以简化设计。
通过使用 Simulink 函数,您可以在 Stateflow® 图的状态和转移动作中调用 Simulink 子系统,以创建更高效、易读的模型。
主题
- 在 Stateflow 图中重用 Simulink 函数
在 Stateflow 中创建并执行 Simulink 函数。
- Bind a Simulink Function to a State
Specify the behavior of subsystem variables between function executions.
- Design Charts with Simulink Functions
Replace a function-call subsystem with a Simulink function in a Stateflow chart.
- Schedule Execution of Multiple Controllers
Use Simulink functions to improve the design of a Stateflow chart.
- Reuse Functions by Using Atomic Boxes
Encapsulate reusable functions in a separate namespace.
- Guidelines for Using Simulink Functions
By using alphanumeric characters for argument names, you ensure that the names of Inport and Output blocks are compatible with the identifier naming rules of Stateflow charts.