Stateflow charts enable the graphical representation of hierarchical and parallel states and the transitions between them. Stateflow augments traditional state charts with flow charts, Embedded MATLAB™ functions, graphical functions, truth tables, temporal operators, directed-event broadcasting, and support for integrating hand-written C code.
You can automatically generate C code from Stateflow charts using Stateflow® Coder (available separately).
Key Features:
*Provides language elements, hierarchy, parallelism, and deterministic execution semantics for describing complex logic in a natural and understandable form
*Defines functions graphically, using flow diagrams; procedurally, using Embedded MATLAB functions; and in tabular form, with truth tables
*Schedules transitions and events using temporal logic
*Supports Mealy and Moore finite-state machines
*Incorporates custom and legacy C code with input and output arguments
*Supports bus signals and vector, matrix, and fixed-point data
*Performs static checks, including checks for ill-specified truth tables
*Performs run-time checks for transition conflicts, cyclic problems, state inconsistencies, data-range violations, and overflow conditions
*Animates Stateflow charts and logs data during simulation to enhance understanding of the system and facilitate debugging
*Includes an integrated debugger for setting graphical breakpoints, stepping through charts, and browsing data