| Stateflow User's Guide | ![]() |
Constructor for creating an event
Syntax
Description
The Stateflow.Event method is a constructor method for creating an event for a parent machine, chart, state, box, or function, that returns a handle to an Event object for the new event.
Arguments
parent |
Handle to parent machine, chart, state, box, or function of new event |
Returns
event_new |
Handle to the Event object for the new event |
Example
If sA is a handle to a State object for an existing state A, the following command creates a new event parented (contained by) state A:
The new event is named 'event' with an incremented suffix to distinguish additional creations . event_new is a handle to an Event object for the new event that you use to rename the event, set its properties, and execute Event methods for the event.
| Stateflow.EMFunction | Stateflow.Function | ![]() |
© 1994-2005 The MathWorks, Inc.