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 independent subcomponents in your Stateflow® chart.
Guidelines for creating atomic subcharts.
Link variables in your atomic subchart to data in the main chart.
This example shows how to use linked atomic subcharts to repeat the same configuration of states and trasitions multiple times in a Stateflow® chart.
Speed up simulations by recompiling only some parts of the chart.
Compartmentalize the subcomponents of your Stateflow chart.
Produce independent code for atomic subcharts.