이 페이지는 기계 번역을 사용하여 번역되었습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.
생성 코드 인터페이싱
일부 애플리케이션은 생성 코드와 외부 애플리케이션 코드 간에 데이터를 교환해야 합니다. MATLAB code descriptor API를 사용하여 생성 코드에 대한 메타데이터를 얻습니다. C API를 사용하여 런타임에 생성된 코드와 인터페이싱하고 타깃 플랫폼에서 모델 코드를 실행하는 동안 모델 요소를 모니터링하고 조정합니다.
Sample Target Environment Service Implementations of Data Communication Methods 항목은 타깃 환경 서비스가 직접 액세스, 실행 중이 아닐 때, 실행 중일 때라는 세 가지 유형의 데이터 통신 방법을 구현하는 방법에 대한 샘플을 보여줍니다.
클래스
함수
도움말 항목
생성된 코드에서 데이터형 구성
- Parameter Data Types in the Generated Code
Optimize the generated code and generate code for specific processors by controlling the data types that store parameter data in computer memory. - Create Tunable Calibration Parameter in the Generated Code
In the generated code, create tunable parameter data that you can access during rapid prototyping and calibration.
C API 인터페이스
- Get Started with C API
Learn the principles of using C API to interact with the generated model code.
- Configure Model to Generate C API Code
Learn how to configure your model to include different types of C API elements in the generated code.
- Write External Code to Access Generated C API Code
Learn how to write external code that can access generated C API code elements.
- Use C API to Monitor and Tune Generated Model Code
Learn the details about how to use the C API to monitor and tune model elements.
- 단계 1: Explore Measurable and Tunable Model Elements
- 단계 2: Configure Model to Add C API Signals in Code Generation
- 단계 3: Write Code to Interact with Generated C API Signal Code
- 단계 4: Interact with C API Signal Code Throughout Execution
- 단계 5: Write Code to Interact with Generated C API Signal and Parameter Code
- 단계 6: Use Custom Monitor to Measure and Tune Model Elements in Real Time
Code Descriptor 인터페이스
- Get Code Description of Generated Code
Obtain metadata about the generated code. - Get Generated Type and Name of Inport Structures
Obtain metadata about the inport structures in generated code. - Get Metadata About Service Interface
Obtain metadata about the generated service interface by using the code descriptor programming interface. - Get Metadata About Test Points and Logged Signals in Generated Code
Retrieve metadata for test points and logged signals in generated code.