ステート動作のプログラミング
アクション、イベント、ステート構造体を使用してステートと遷移の動作をプログラミングし、チャートの実行方法を定義します。ステート アクションと遷移の間に何が発生するかを定義することで、ロジックを制御します。階層ステート、パラレル ステート、ヒストリ ジャンクションを使用して、チャートの実行時の動作を整理します。
トピック
- 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.