Reuse components in multiple charts by using atomic subcharts. Generate reusable code from atomic subcharts. To reduce recompilation time for your entire model, recompile only the atomic subcharts that you modify.
Create standalone subcomponents of your chart with atomic subcharts.
Create your atomic subcharts by following these guidelines.
Create an atomic subchart to reuse and edit the same state multiple times within your chart.
Generate reusable code for linked and unlinked atomic subcharts.
Reduce your simulation time by recompiling only your atomic subcharts.
Use atomic subcharts to create chart componetization.
Convert your Stateflow® charts to atomic subcharts.
Ensure that each variable in your atomic subchart maps to the correct variable in the main chart.