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.
Build standalone subcomponents in your Stateflow® chart.
Link variables in your atomic subchart to data in the main chart.
Create an atomic subchart to repeat the same configuration of states.
Produce standalone code for linked and unlinked atomic subcharts.
Speed up simulations by recompiling only some parts of the chart.
Compartmentalize the subcomponents of your Stateflow chart.
Guidelines for creating atomic subcharts.