Stateflow    

Creating a Subchart

You create a subchart by converting an existing state, box, or graphical function into the subchart. The object to be converted can be one that you have created expressly for the purpose of making a subchart or it can be an existing object whose content you want to turn into a subchart.

To convert a new or existing state, box, or graphical function to a subchart:

  1. Select the object and click your mouse's right button to display the Stateflow shortcut menu.

  2. Select Subcharted from the Make Contents menu.

    Stateflow converts the selected state, graphical function, or box to a subchart.

To convert the subchart back to its original form, select the subchart and uncheck the Subcharted item of the Make Contents submenu of the Stateflow shortcut menu.


 Working with Subcharts Manipulating Subcharts as Objects