주요 콘텐츠

이 페이지는 기계 번역을 사용하여 번역되었습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.

검증

MATLAB® 코드와 생성 코드 간의 수치적 동일성 표시

SIL(Software-in-the-Loop) 및 PIL(Processor-in-the-Loop) 실행을 통해 MATLAB 함수에서 생성한 코드의 수치적 동작을 확인합니다. SIL(Software-in-the-Loop) 실행은 생성된 소스 코드를 컴파일하고 개발 컴퓨터에서 별도의 프로세스로 코드를 실행합니다. PIL 실행은 타깃 연결 구성을 필요로 하며, 생성된 소스 코드를 크로스 컴파일한 후에 타깃 하드웨어에 오브젝트 코드를 다운로드하여 실행합니다. SIL 또는 PIL 실행 결과를 원래 MATLAB 함수의 결과와 비교하여 수치적 동작을 확인할 수 있습니다.

추적 가능한 코드를 생성하여 의도하지 않은 기능이 없는지 확인하고, 생성된 코드가 알고리즘을 구현하는 방식을 이해하고, 생성된 코드의 품질을 평가할 수 있습니다.

객체

모두 확장

rtw.connectivity.ComponentArgsProvide parameters for each target connectivity component
rtw.connectivity.ConfigDefine connectivity implementation that comprises builder, launcher, and communicator components
rtw.connectivity.ConfigRegistryRegister connectivity configuration
rtw.connectivity.LauncherControl downloading, starting, and resetting of a target application
rtw.connectivity.MakefileBuilderConfigure toolchain-based build process
rtw.connectivity.RtIOStreamHostCommunicatorConfigure development computer communications with target processor
rtw.pil.RtIOStreamApplicationFrameworkConfigure target-side communications
coder.EmbeddedCodeConfigConfiguration parameters for C/C++ code generation from MATLAB code with Embedded Coder

함수

모두 확장

instrumentCodeAdd instrumentation to generated code to perform execution time / memory usage profiling and analyze code coverage (R2023a 이후)
getCodeCoverageDataExtract coverage data for generated C/C++ code and custom C/C++ code (MATLAB code generation) (R2023a 이후)
coder.hardwareCreate hardware board configuration object for C/C++ code generation from MATLAB code
rtIOStreamCloseShut down communications channel
rtIOStreamOpenInitialize communications channel
rtIOStreamRecvReceive data through communication channel
rtIOStreamSendSend data through communication channel
rtiostreamtestTest custom rtiostream interface implementation
rtiostream_wrapperTest rtiostream shared library functions in MATLAB
piltestVerify custom target connectivity configuration for MATLAB PIL execution

도움말 항목

SIL 및 PIL 테스트

코드 추적

Polyspace 검증

리포트 생성

추천 예제