Main Content
Atomic Subcharts
Encapsulate modal logic in reusable subcomponents
Reuse state components in multiple charts by using atomic subcharts. Generate reusable code from atomic subcharts. Reduce recompilation time for your model by recompiling only the atomic subcharts that you modify.
Topics
- Create Reusable Subcomponents by Using Atomic Subcharts
Build independent subcomponents in your Stateflow® chart.
- Guidelines for Using Atomic Subcharts
Guidelines for creating atomic subcharts.
- Map Variables for Atomic Subcharts and Boxes
Link variables in your atomic subchart to data in the main chart.
- Robot Trajectory Planning with Reusable Components
Use entry and exit ports to create connections across boundaries in the Stateflow hierarchy.
- Mask Atomic Subcharts and Boxes in Stateflow
How to add a mask to an atomic subchart. (Since R2024a)