주요 콘텐츠

convertToChart

상태 천이 테이블을 Stateflow 차트로 변환

R2023b 이후

설명

chart = convertToChart(table)는 잠금 해제된 상태 천이 테이블 table을 Stateflow® 차트로 변환합니다.

예제

예제

모두 축소

이 예제에서는 상태 천이 테이블을 Stateflow® 차트로 변환하는 방법을 보여줍니다.

예제 모델을 열고 Stateflow.StateTransitionTableChart 객체에 액세스합니다.

open_system("sf_debouncer_STT")
table = find(sfroot,"-isa","Stateflow.StateTransitionTableChart");
view(table)

State transition table that contains four states, ON, ON_TO_OFF, OFF_TO_ON, and OFF. The table sets the output data y to 1 when state ON is active and to 0 when state OFF is active.

상태 천이 테이블을 Stateflow 차트로 변환합니다.

chart = convertToChart(table);
view(chart)

Chart that represents the same logic as the original state transition table. The chart contains four states, ON, ON_TO_OFF, OFF_TO_ON, and OFF. The table sets the output data y to 1 when state ON is active and to 0 when state OFF is active.

입력 인수

모두 축소

변환할 Stateflow 상태 천이 테이블로, Stateflow.StateTransitionTableChart 객체로 지정됩니다.

버전 내역

R2023b에 개발됨