Skip to Main Content Skip to Search
Product Documentation

Benefits of Stateflow Usage

Models Event-Driven Systems

The Stateflow product is an interactive graphical design tool that works with Simulink software to model and simulate event-driven systems, also called reactive systems. Event-driven systems transition from one operating mode to another in response to events and conditions. These systems are often used to model logic for dynamically controlling a physical device such as a fan, motor, or pump. Event-driven systems can be modeled as finite-state machines.

Finite-state machines represent operating modes as states. For example, a house fan can have states such as High, Medium, Low, and Off. To construct finite-state machines, Stateflow software provides graphical objects that you can drag and drop from a design palette to create charts in which a series of transitions directs a flow of logic from one state to another. You can also add:

Extends the Capabilities of Traditional State Charts

With traditional state charts, you can specify hierarchy and model parallel states, among other capabilities. With the Stateflow product, you can extend the capabilities of traditional state charts by:

Provides Debugging Capabilities

The product provides the following capabilities for testing a design:

Supports Code Generation in Multiple Languages

Stateflow software performs simulation by generating a C code implementation of the Stateflow chart. The simulation code is generated from a simulation target, which you can learn more about in Simulating the Chart.

You can also generate portable C code from Stateflow charts automatically using Simulink® Coder™ code generation software (available separately). The Simulink Coder product also generates C code for Simulink models that include Stateflow charts.

In addition to C code generation, you can generate code from Stateflow charts in the following languages:

  


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