Stateflow 图
生成和重用 Stateflow® 图的代码
创建包含事件、状态和转移的图时,应遵循建模规范。要了解为包含 Stateflow 图的模型生成代码时的注意事项,请参阅 Code Generation of Stateflow Blocks。
主题
代码生成
- Code Generation of Stateflow Blocks
The code generator produces code for Stateflow blocks for rapid prototyping. - Inline State Functions in Generated Code
Describes when and how to control inlining of state functions in generated code. - Stateflow 图的建模规范 (Stateflow)
通过使用状态、转移和事件高效地为图建模。
代码重用
- Generate Code from Atomic Subcharts
Produce standalone code for linked and unlinked atomic subcharts. - Generate Reusable Code from Stateflow Atomic Subcharts
Generate reusable code for linked and unlinked atomic subcharts.