Stateflow User's Guide Previous page   Next Page

Defining Events and Data


Stateflow diagrams respond to events from Simulink and other Stateflow objects. Stateflow responds to events by taking transitions and/or performing actions. Actions use data variables to perform computations that control diagram behavior and generate output handed on to the Simulink model. Before you can use events and data in Stateflow, you must first define them. Learn how to define events and data in Stateflow in the following sections:
Adding Events
Learn how to define the events you need to trigger actions in Stateflow or its environment.
Setting Event Properties in the Event Dialog
A reference to the fields of the Event dialog for setting the properties of an event in Stateflow.
Sharing Events with Simulink
Shows you how to define the input and output events for a Stateflow chart that allow it to communicate with other Simulink blocks.
Sharing Events with Stateflow External Code
Shows you how to define events in Stateflow that enable external code to send events to other charts in the model and receive events from other charts in the model.
Defining Implicit Events
Describes events that Stateflow triggers implicitly for actions such as entry in or exit from a state.
Adding Data
Learn how to define the data that Stateflow stores internally in its own workspace.
Setting Data Properties in the Data Dialog
A reference to the fields of the Data dialog for setting the properties of a data in Stateflow.
Sharing Stateflow Data with Simulink and MATLAB
Learn different ways that you can share data with Simulink and MATLAB in a Stateflow diagram.
Sharing Data with Stateflow External Code
Learn how to export data to Stateflow external code and import data from Stateflow external code to a Stateflow chart in the model.
Typing Stateflow Data
Learn how to specify the type of your Stateflow data.
Sizing Stateflow Data
Learn different ways to specify the size of your Stateflow data as a vector or matrix.


Previous page  Printing a Stateflow Book Adding Events Next page

© 1994-2005 The MathWorks, Inc.