주요 콘텐츠

convertToSTT

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

R2023b 이후

설명

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

예제

예제

모두 축소

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

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

open_system("sf_aircontrol")
chart = find(sfroot,"-isa","Stateflow.Chart");
view(chart)

Stateflow chart that contains top level states, PowerOn and PowerOff. PowerOn has parallel substates FAN1, FAN2, and SpeedValue. Each of FAN1 and FAN2 have exclusive substates On and Off.

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

table = convertToSTT(chart);
view(table)

State transition table that represents the same logic as the original chart. The table displays the top level states, PowerOn and PowerOff. The hierarchy under state PowerOn is hidden by default.

상태 Power_On의 자식 상태를 표시하려면 상태 왼쪽에 있는 버튼을 클릭합니다.

State transition table that represents the same logic as the original chart. The table displays the top level states, PowerOn and PowerOff. The hierarchy under state PowerOn is expanded, and shows parallel substates FAN1, FAN2, and SpeedValue.

입력 인수

모두 축소

변환할 Stateflow 차트로, Stateflow.Chart 객체로 지정됩니다.

제한 사항

  • 슈퍼 천이가 포함된 차트는 지원되지 않습니다.

  • 차트는 Simulink® 모델의 최상위 수준에 있어야 합니다.

  • 차트에는 Variant 천이가 포함되지 않을 수 있습니다.

버전 내역

R2023b에 개발됨