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:
SC1
in the example below) to display the Stateflow shortcut menu for that state.
Note When you convert a box to a subchart, the subchart retains the attributes of a box. In particular, the resulting subchart's position in the chart determines its activation order (see Using Boxes in Stateflow Charts for more information). |
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 | ![]() |