Stateflow    

Chapter 5
Defining Stateflow Interfaces


Overview

Interfaces to Stateflow

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 block interface includes:

Typical Tasks to Define Stateflow Interfaces

Defining the interface for a Stateflow block can involve some or all of these tasks:

The tasks are presented in this section in the order of appearance in this list. This could be a typical sequence. You may find a particular sequence complements your model development process better than another.

Where to Find More Information on Events and Data

See these sections for conceptual information on data and events: Defining Events and Defining Data. These references in particular are relevant to defining the interface:


 Symbol Autocreation Wizard Defining the Stateflow Block Update Method