This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

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.


Create Reusable Subcomponents by Using Atomic Subcharts

Build standalone subcomponents in your Stateflow® chart.

Map Variables for Atomic Subcharts and Boxes

Link variables in your atomic subchart to data in the main chart.

Reuse a State Multiple Times in a Chart

Create an atomic subchart to repeat the same configuration of states.

Generate Reusable Code for Atomic Subcharts

Produce standalone code for linked and unlinked atomic subcharts.

Reduce the Compilation Time of a Chart

Speed up simulations by recompiling only some parts of the chart.

Divide a Chart into Separate Units

Compartmentalize the subcomponents of your Stateflow chart.

Rules for Using Atomic Subcharts

Guidelines for creating atomic subcharts.

Featured Examples