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 contents 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 right-click a state (SC1 in the example below) to display the Stateflow shortcut menu for that state.

  2. Select Subcharted from the Make Contents menu.
  1. Stateflow converts the selected state, graphical function, or box to a subchart.

To convert the subchart back to its original form, right-click the subchart. In the pop-up menu that results, select Make Contents. In the resulting submenu select the Subcharted item.


  Using Subcharts in Stateflow Charts Manipulating Subcharts as Objects