Stateflow® charts run as blocks in a Simulink® model.
The Stateflow block interfaces with other blocks in the model
using input and output signals. Through these connections, Stateflow and Simulink software
share data and respond to events that broadcast between model and
chart. For example, the Stateflow
is integrated with the Simulink
You can develop your Stateflow chart before or after the Simulink model in which it will run. Stateflow software comes with its own editor, which helps you simulate and test the chart logic before you integrate it with a Simulink model. You can test a Stateflow chart independently of its parent model by attaching a Source block as an input and a Sink block as an output. During simulation, you can animate the chart to get visual feedback about its run-time behavior.