Stateflow User's Guide Previous page   Next Page

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:

  1. In the Model Hierarchy pane of the Model Explorer, select a Simulink model or a Stateflow object.
  2. From the Add menu, select Data or Event.
  1. A data or event is added to the Model Explorer Contents pane with the default name 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.


Previous page  Editing States or Charts in the Model Explorer Adding a Target in the Model Explorer Next page

© 1994-2005 The MathWorks, Inc.