Get Started with Stateflow
Stateflow® provides a graphical language that includes state transition diagrams, flow charts, state transition tables, and truth tables. You can use Stateflow to describe how MATLAB® algorithms and Simulink® models react to input signals, events, and time-based conditions.
Stateflow enables you to design and develop supervisory control, task scheduling, fault management, communication protocols, user interfaces, and hybrid systems.
With Stateflow, you model combinatorial and sequential decision logic that can be simulated as a block within a Simulink model or executed as an object in MATLAB. Graphical animation enables you to analyze and debug your logic while it is executing. Edit-time and run-time checks ensure design consistency and completeness before implementation.
- STEP 1: Construct and Run a Stateflow Chart
- STEP 2: Define Chart Behavior by Using State Actions and Transition Labels
- STEP 3: Create a Hierarchy to Manage System Complexity
- STEP 4: Model Synchronous Subsystems by Using Parallel Decomposition
- STEP 5: Synchronize Parallel States by Broadcasting Events
- STEP 6: Monitor Chart Activity by Using Active State Data
- STEP 7: Schedule Chart Actions by Using Temporal Logic
Model dynamic systems as finite state machines in Stateflow.
Free, self-paced, interactive Stateflow course
Getting Started with Stateflow
Build and simulate a Stateflow chart in a Simulink model
What Is Stateflow?
Design and simulate state charts by using Stateflow
MATLAB Tech Talks: State Machines
Learn the fundamental concepts of state machines