状態遷移表
モーダル ロジックを表形式で設計する
状態遷移表を使用して、組み合わせ論理を表形式で設計します。状態遷移表は、Stateflow® の学習を簡単に始めることができるため、シンプルでプロセス指向の逐次ステート マシンにとって理想的なソリューションです。モデリング エラーを検出するには、データ値の監視中に、診断チェックを実行し、ブレークポイントを設定して、アクションをステップ実行します。
ブロック
| State Transition Table | モーダル ロジックを表形式で表現 |
関数
convertToChart | 状態遷移表から Stateflow チャートへの変換 (R2023b 以降) |
convertToSTT | Stateflow チャートを状態遷移表に変換 (R2023b 以降) |
exportAsStruct | 状態遷移表の内容を構造体配列としてエクスポート (R2022b 以降) |
トピック
- Model State Transition Tables by Using State Transition Table Blocks
Use state rows, transition columns, and the Symbols pane to define a state transition table.
- Create Parallel States in State Transition Tables
Execute states at the same time by using parallel decomposition.
- Enable Logging and Breakpoints in State Transition Tables
Debug state transition tables by logging states and data, and adding breakpoints to states and transitions.
- 状態遷移表の設計の検査
状態遷移表のロジックが意図したように動作することを確認する。