Programar el comportamiento de los estados
Defina cómo se ejecuta el gráfico programando el comportamiento de los estados y las transiciones mediante acciones, eventos y estructuras de estado. Controle la lógica definiendo lo que ocurre durante las acciones de estado y las transiciones. Organice el comportamiento del tiempo de ejecución del gráfico mediante estados jerárquicos, estados paralelos e intersecciones históricas.
Temas
- 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.
- Símbolos admitidos en las acciones
Símbolos especiales disponibles para las acciones de estado y de transición.
- 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.