| Stateflow User's Guide | ![]() |
Using Boxes in Stateflow
Once you create a box you can use it in one of the following ways:
You can draw the box first as a state around the objects you want inside it and then convert it to a box.
See Grouping States.
See Using Subcharts to Extend Charts for more information.
For the most part, boxes do not contribute to the semantics of a Stateflow diagram. They do, however, affect the activation order of a diagram's parallel states. A box wakes up before any parallel states or boxes that are lower or to the right of it in a Stateflow diagram. Within a box, parallel states still wake up in top-down, left to right order.
| Changing a State to a Box | Using Notes to Extend Chart Diagrams | ![]() |
© 1994-2005 The MathWorks, Inc.