Program State Behavior
Define how your chart executes by programming state and transition behavior using actions, events, and state structures. Control logic by defining what occurs during state actions and transitions. Organize the chart runtime behavior using hierarchical states, parallel states, and history junctions.
Topics
- Define State Behavior by Using Actions
Define behavior for state activation, while active, and when deactivating, to control system behavior at each stage of state execution.
- Supported Symbols in Actions
Special symbols available for state and transition actions.
- Create Hierarchical State Structures
Create hierarchical state structures by nesting child states inside parent states to organize complex logic and enable behavior inheritance in your chart.
- Implement Parallel States
Implement concurrent behaviors by using parallel (AND) states.
- Use Events in Stateflow Charts
Use events in Stateflow to trigger state transitions and actions for precise control over when and how states execute.
- Remember State Behavior by Using History Junctions
Track and restore previous conditions after interruptions to chart execution by using history junctions.