Skip to Main Content Skip to Search
Product Documentation

Overview of Stateflow Block Interfaces

Stateflow Block 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 point of view of the Stateflow block.

Events can be local to the Stateflow block or can be propagated to and from the Simulink model and sources external to it. 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 include:

Typical Tasks to Define Stateflow Block Interfaces

Defining the interface for a Stateflow block in a Simulink model involves some or all the tasks described in the following topics:

The preceding task list is a typical sequence. You might find that another sequence better complements your model development.

See Implementing Update Interfaces to Simulink Models for examples of implemented interfaces to Simulink models.

Where to Find More Information on Events and Data

See the following references for defining the interface of a Stateflow Chart block in a Simulink model:

  


Free Stateflow Interactive Kit

Learn how engineers use Stateflow to model state machines in their Simulink models.


Get free kit

Trials Available

Try the latest version of Stateflow.


Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS