Syntax for States and Transitions
Express chart behavior by using actions and conditions
Control the execution of your Stateflow® chart by specifying when transitions between states occur and when actions are executed. Synchronize state execution by broadcasting events. Detect changes in data values and check which states are active during chart execution.
Categories
- Program State Behavior
Define chart behavior by using actions, transitions, events, state structures and history junctions
- Action Language Syntax
Use MATLAB or C as the action language with operators, data types, and built-in functions to control state and transition behavior in Stateflow charts
- Design Transition Logic
Define how your system transitions between operating modes using graphical and logical operators, junctions, and actions
- Control Timing and Execution
Control the timing and order of chart actions by using event-based temporal logic, parallel state execution, and event-based and time-based mechanisms
- Process Data and Signals
Manage chart data and react to signal changes to detect changes, data-driven events to trigger actions, and complex data types to represent and process data
- Integrate External Code
Integrate MATLAB functions, Simulink models, and C functions for communication between Stateflow and external code