Stateflow    

How Stateflow Works


This chapter acquaints you with the concepts involved in defining a finite state machine and follows this with a look at the hierarchical organization of Stateflow objects. Later, it introduces you to a real-world Stateflow example. The sections in this chapter are as follows:
Finite State Machine Concepts
Stateflow is an example of a finite state machine. This section examines what it means to be a finite state machine and what that designation requires from Stateflow.
Stateflow and Simulink
Examines how Stateflow functions in the Simulink environment.
Stateflow Diagram Objects
This section describes most of the graphical and nongraphical objects in a Stateflow diagram along with the concepts that relate them.
Stateflow Hierarchy of Objects
Stateflow supports a containment hierarchy for both charts and states. Charts can contain states, transitions, and the other Stateflow objects. States can contain other states, transitions, and so on as if they were charts themselves. This containment hierarchy applies to all Stateflow objects except targets, which are the sole possession of the Stateflow machine.
Exploring a Real-World Stateflow Application
The modeling of a real-world fault-tolerant fuel control system demonstrates how Simulink and Stateflow can be used to efficiently model hybrid systems containing both continuous dynamics and complex logical behavior.


  Save the Model Finite State Machine Concepts