| Stateflow User's Guide | ![]() |
Using Supertransitions to Extend Transitions
To connect transitions from outside a subchart to an object inside a subchart, you'll need to know how to make a supertransition. Learn how to make supertransitions in the following topics:
What Is a Supertransition?
A supertransition is a transition between different levels in a chart, for example, between a state in a top-level chart and a state in one of its subcharts, or between states residing in different subcharts at the same or different levels in a diagram. Stateflow allows you to create supertransitions that span any number of levels in your chart, for example, from a state at the top level to a state that resides in a subchart several layers deep in the chart.
The point where a supertransition enters or exits a subchart is called a slit. Slits divide a supertransition into graphical segments. For example, the following diagram shows two supertransitions as seen from the perspective of a subchart and its parent chart, respectively.
In this example, supertransition t1 goes from state A in the parent chart to state C in the subchart and supertransition t2 goes from state C in the subchart to state B in the parent chart. Note that both segments of t1 and t2 have the same label.
| Navigating Subcharts | Drawing a Supertransition Into a Subchart | ![]() |
© 1994-2005 The MathWorks, Inc.