상태 동작 방식을 프로그래밍하기
동작, 이벤트, 상태 구조를 사용해 상태 및 천이 동작 방식을 프로그래밍하여 차트가 실행되는 방식을 정의합니다. 상태 동작 및 천이 중에 발생하는 작업을 정의하여 논리를 제어합니다. 계층적 상태, 병렬 상태, 이력 연결점을 사용하여 차트 런타임 동작을 구성합니다.
도움말 항목
- 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.
- 동작에서 지원되는 기호
상태 동작과 천이 동작에 사용할 수 있는 특수 기호.
- 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.