외부 코드 통합하기
Stateflow와 외부 코드 간 통신을 위해 MATLAB 함수, Simulink 모델, C 함수 통합
차트에서 기존 알고리즘과 외부 프로그래밍 언어를 재사용합니다. 상태 및 천이에서 직접 MATLAB 함수, C 또는 C++ 함수를 호출합니다. 차트에서 임베디드 시스템과 외부 애플리케이션에 배포할 코드를 생성합니다.
도움말 항목
- Stateflow 차트 안에 MATLAB 함수 통합하기
MATLAB® 함수의 논리 동작을 정의합니다.
- Use Custom C or C++ Code in Stateflow Charts
Integrate preexisting custom code into Simulink® models.
- Call Extrinsic MATLAB Functions in Stateflow Charts
Access MATLAB functions that are not supported for code generation.
- Call C Library Functions
Access C functions in state and transition labels.
- Control Function-Call Subsystems
Bind a function-call output event to the activity of a state.
- 이벤트를 사용하여 모델 컴포넌트 동기화하기
이벤트를 사용하여 Simulink 및 MATLAB과 통신합니다.