Products & Services Solutions Academia Support User Community Company

Learn more about Stateflow   

Product Overview

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:

You will learn more about these elements later in this guide.

Extends the Capabilities of Traditional State Charts

With the Stateflow product, you can extend the capabilities of traditional state charts by:

Generates C Code

Stateflow software performs simulation by generating a C code implementation of the Stateflow chart. The simulation code is generated from a simulation target. You will learn more about simulation targets later in Simulating the Chart.

You can also generate portable C code from Stateflow charts automatically using Stateflow® Coder™ code generation software (available separately). The Stateflow Coder product also works with Real-Time Workshop® code generation software (available separately) to generate C code for Simulink models that include Stateflow charts.

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2010- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS