상태 천이 테이블
테이블 형식으로 모달 논리 설계
상태 천이 테이블을 사용하여 테이블 형식으로 조합 논리를 설계합니다. 상태 천이 테이블은 Stateflow®를 학습하는 데 있어 간편한 진입점을 제공하며, 단순하고 프로세스 지향적인 순차 상태 머신에 이상적인 솔루션입니다. 진단 검사를 실행하고 중단점을 설정한 다음, 데이터 값을 모니터링하면서 동작을 순차적으로 실행하여 모델링 오류를 검출합니다.
블록
| State Transition Table | 테이블 형식으로 모달 논리 표현 |
함수
convertToChart | 상태 천이 테이블을 Stateflow 차트로 변환 (R2023b 이후) |
convertToSTT | Stateflow 차트를 상태 천이 테이블로 변환 (R2023b 이후) |
exportAsStruct | Export contents of state transition table as structure array (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.
- Inspect the Design of State Transition Tables
Verify that the logic in your state transition table behaves as intended.
