Stateflow User's Guide Previous page   Next Page

Controlling with Superstates


This chapter introduces you to superstates. These objects extend the use of states and transitions by defining states that contain other Stateflow objects. Superstates form the basis of Stateflow containment hierarchy. They also help you to simplify your Stateflow diagrams. Use the following sections to add superstates to the SFcontrol4 model you build in Controlling with Junctions:
Adding Superstates to Simplify Control
Use a junction and an additional state to delay turning on a control device for temperature changes.
Adding a History Junction to Save State
Use a history junction to remember the active state of a superstate when it becomes active again.
Creating Subcharts to Add More Substates
Convert a superstate into a subchart to gain room for more substates.
Controlling Objects with Parallel Superstates
Use parallel states to control two independent devices together.


Previous page  Using Junctions in Flow Diagrams Adding Superstates to Simplify Control Next page

© 1994-2005 The MathWorks, Inc.