이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.
앱 설계
앱 디자이너에서 만든 MATLAB® 앱의 동작 제어
Stateflow®를 사용하여 MATLAB 앱의 동작을 정의하는 상태 머신을 생성합니다. Stateflow 차트는 앱과의 상호 작용을 모니터링하여 앱 위젯을 적절히 활성화하거나 비활성화할 수 있습니다. Simulink® 모델 내부 차트의 경우, Model a Power Window Controller에 나오는 것처럼 키워드 this
를 사용하여 앱과 차트 사이의 양방향 연결을 설정합니다. MATLAB의 독립 실행형 차트의 경우, Design Human-Machine Interface Logic by Using Stateflow Charts에 나오는 것처럼 앱 시작 콜백을 사용하여 앱과 통신할 수 있는 차트 객체를 생성합니다.
Stateflow 구문
this | Access chart data during simulation |
도움말 항목
Simulink 모델의 차트에 앱 연결하기
- Model a Power Window Controller
Design an automotive power window system by using local events. - Simulate a Media Player
Use string data to define the behavior of a media player. - Model a Fitness Tracker
Implement a fitness tracker by using temporal logic and messages.
MATLAB의 독립 실행형 차트에 앱 연결하기
- Design Human-Machine Interface Logic by Using Stateflow Charts
Model the logic of a graphical user interface in a standalone Stateflow chart. - Model a Fitness App by Using Standalone Charts
Implement a fitness tracker by using multiple standalone charts and a MATLAB app. - Create an App for Analog Triggered Data Acquisition by Using Stateflow Charts
Create an analog-triggered data acquisition app by using Stateflow, Data Acquisition Toolbox™, and App Designer.