| Stateflow User's Guide | ![]() |
Adding Data and Events in the Model Explorer
State, box, and function Stateflow objects can parent data and events. You can also add data and events to the Simulink model to make them globally available to all Stateflow objects in the model.
To add a data or an event to a Stateflow object or to the Simulink model, do the following:
data or event.If you continue adding more data, each new data or event is named with an integer suffix (data1, event1, data2, event2, and so on).
You can change the displayed properties for a data or event directly in the Model Explorer. You can also access the complete list of properties for a data or event from the Model Explorer. See Setting Properties for Stateflow Objects in the Model Explorer.
For more detailed examples of creating data and events in the Model Explorer, see Adding Events in the Model Explorer and Adding Data in the Model Explorer.
| Editing States or Charts in the Model Explorer | Adding a Target in the Model Explorer | ![]() |
© 1994-2005 The MathWorks, Inc.