Stateflow
Product Description
- Introduction and Key Features
- Working with Stateflow
- Creating State Charts
- Adding Functions to State Charts
- Executing State Charts
Working with Stateflow
Stateflow is part of an integrated simulation environment in which you can model, simulate, and analyze complex dynamic systems. By using Stateflow with Simulink, you can create models of your embedded software that combine the logical behavior of Stateflow (such as fault management and mode switching) with the algorithmic behavior of Simulink (such as feedback control and signal conditioning). You can also create a model of the system and its environment in Simulink and run hybrid simulations to study the interactions between the two. Stateflow uses Model Explorer in Simulink to create data, events, and targets and to navigate, search, and configure the attributes of all Stateflow objects.
Simulink model (bottom left) and Stateflow chart (top right) of a radio receiver and decoder. Stateflow is used in this model to achieve symbol synchronization.
Modeling a Launch Abort System 12:43
Model a launch abort system that will send an aircraft back to Earth if an anomaly or fault occurs during the launch.
Simulink model (bottom left) and Stateflow chart (top right) of the control logic for a power window system. The Simulink model incorporates the electric motor (modeled in SimPowerSystems) and the window mechanism (modeled in SimMechanics) to determine the load on the motor and enable the logic to detect obstacles in the window's path.

Free Stateflow Interactive Kit
Learn how engineers use Stateflow to model state machines in their Simulink models.
Get free kit

