| Stateflow User's Guide | ![]() |
Overview of Stateflow Interfaces
Each Stateflow block interfaces to its Simulink model. Take an overview look at Stateflow interfaces to Simulink and MATLAB with the following topics:
Stateflow Interfaces
Each Stateflow block interfaces to its Simulink model. Each Stateflow block can interface to sources external to the Simulink model (data, events, custom code). Events and data are the Stateflow objects that define the interface from the Stateflow block's point of view.
Events can be local to the Stateflow block or can be propagated to and from Simulink and sources external to Simulink. Data can be local to the Stateflow block or can be shared with and passed to the Simulink model and to sources external to the Simulink model.
The Stateflow interfaces includes the following:
See Exporting Functions for more details.
See Using MATLAB Functions and Data in Actions for more details.
Typical Tasks to Define Stateflow Interfaces
Defining the interface for a Stateflow block in a Simulink model involves some or all the tasks described in the following topics:
This task is described in Setting the Stateflow Block Update Method.
See the topics MATLAB Workspace Interfaces and Interface to External Sources.
The precediing task list could be a typical sequence. You might find that another sequence better complements your model development.
See Implementing Simulink Update Interfaces for examples of implemented interfaces to Simulink.
Where to Find More Information on Events and Data
The following references are relevant to defining the interface for a Stateflow Chart block in Simulink:
| Defining Interfaces to Simulink and MATLAB | Specifying Chart Properties | ![]() |
© 1994-2005 The MathWorks, Inc.