이 페이지는 기계 번역을 사용하여 번역되었습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.
검증
MATLAB® 코드와 생성 코드 간의 수치적 동일성 표시
SIL(Software-in-the-Loop) 및 PIL(Processor-in-the-Loop) 실행을 통해 MATLAB 함수에서 생성한 코드의 수치적 동작을 확인합니다. SIL(Software-in-the-Loop) 실행은 생성된 소스 코드를 컴파일하고 개발 컴퓨터에서 별도의 프로세스로 코드를 실행합니다. PIL 실행은 타깃 연결 구성을 필요로 하며, 생성된 소스 코드를 크로스 컴파일한 후에 타깃 하드웨어에 오브젝트 코드를 다운로드하여 실행합니다. SIL 또는 PIL 실행 결과를 원래 MATLAB 함수의 결과와 비교하여 수치적 동작을 확인할 수 있습니다.
추적 가능한 코드를 생성하여 의도하지 않은 기능이 없는지 확인하고, 생성된 코드가 알고리즘을 구현하는 방식을 이해하고, 생성된 코드의 품질을 평가할 수 있습니다.
객체
함수
도움말 항목
SIL 및 PIL 테스트
- Code Verification Through Software-in-the-Loop and Processor-in-the-Loop Execution
A workflow that uses SIL and PIL execution to verify the numerical behavior of generated MATLAB code. - Software-in-the-Loop Execution with the MATLAB Coder App
Use the MATLAB Coder app to verify the numerical behavior of generated C/C++ code. - Software-in-the-Loop Execution from Command Line
Use MATLAB commands to verify the numerical behavior of generated C/C++ code. - Software-in-the-Loop Execution for MATLAB Function with Multiple Signatures
Generate a SIL MEX file for multiple signatures. - Debug Generated Code During SIL or PIL Execution
Use a debugger to understand the behavior of generated code. - Create PIL Target Connectivity Configuration for MATLAB
Customize PIL execution for your target environment. - Host-Target Communication for MATLAB PIL Execution
Use thertiostreamAPI for communication between your development computer and target during PIL execution. - Specify Hardware Timer for MATLAB
Specify a hardware timer using the Code Replacement Tool. - Custom Toolchain Directives Required for Code Execution Profiling
Specify compiler directives for building PIL application that supports code execution profiling. - Processor-in-the-Loop Execution with the MATLAB Coder App
Use the MATLAB Coder app to verify the numerical behavior of cross-compiled object code. - Processor-in-the-Loop Execution from Command Line
Use MATLAB commands to verify the numerical behavior of cross-compiled object code. - PIL Execution with ARM Cortex-A at the Command Line
This example shows how to set up a PIL execution to verify generated code at the command line. - PIL Execution with ARM Cortex-A by Using the MATLAB Coder App
PIL Execution with App. - Verification of Code Generation Assumptions
PIL execution checks Hardware tab settings. - Speed Up SIL/PIL Execution by Disabling Constant Input Checking and Global Data Synchronization
Configure code generation parameters to turn off constant input checking or global data synchronization for SIL or PIL executions. - SIL/PIL Execution Support and Limitations
SIL and PIL execution support for code generation features.
코드 추적
- Interactively Trace Between MATLAB Code and Generated C/C++ Code
Visualize the mapping between the MATLAB code and the generated C/C++ code. - 생성된 C/C++ 코드에 주석 포함
생성된 코드에 MATLAB 소스 코드를 주석으로 포함합니다. 함수 배너에 함수 도움말 텍스트와 함수 서명을 포함합니다.
Polyspace 검증
- Polyspace Verification of C/C++ Code Generated by MATLAB Coder
Check for run-time errors or defects in generated C/C++ code.
리포트 생성
- Highlight Potential Data Type Issues in a Report
Highlight MATLAB code that results in double-precision, single-precision, or expensive fixed-point operations. - Find Potential Data Type Issues in Generated Code
Highlight potential data type issues in report.
