| Stateflow User's Guide | ![]() |
Adding Events in the Model Explorer
If you add events in the Model Explorer, you can choose any Stateflow object to parent the new event. This event is visible to the parent object and all child objects of the parent. To add an event in the Model Explorer, do the following:
If no object is selected, the current diagram or subchart is highlighted in the Model Hierarchy pane of the Model Explorer. Otherwise, the selected object is highlighted. In the preceding example, state Off is selected in the Stateflow diagram myChart when the Model Explorer is called.
See Setting Event Properties in the Event Dialog for a description of each property for an event.
| Adding Events in the Stateflow Diagram Editor | Setting Event Properties in the Event Dialog | ![]() |
© 1994-2005 The MathWorks, Inc.