주요 콘텐츠

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

PIL(Processor-in-the-Loop) 시뮬레이션

타깃 프로세서 또는 시뮬레이터에서 생성된 코드 테스트

PIL(Processor-in-the-Loop) 시뮬레이션은 생성된 소스 코드를 크로스 컴파일한 다음 타깃 하드웨어에 오브젝트 코드를 다운로드하여 실행합니다. 일반 시뮬레이션 결과와 PIL 시뮬레이션 결과를 비교하여 모델과 생성된 코드의 수치적 동등성을 테스트할 수 있습니다. PIL 시뮬레이션 동안 생성된 코드에 대한 코드 커버리지와 실행 시간 메트릭을 수집할 수 있습니다.

PIL 시뮬레이션에는 연결 구성이 필요합니다.

SIL/PIL 관리자Verify generated code

네임스페이스

targetManage target hardware and build tool information

클래스

모두 확장

target.AddOnDescribe add-on properties for target type
target.APIDescribe API details
target.APIImplementationDescribe API implementation details
target.BoardProvide hardware board details
target.BuildDependenciesDescribe C and C++ build dependencies to associate with target hardware
target.CommunicationChannelDescribe communication channel properties
target.CommunicationInterfaceDescribe data I/O details for target hardware
target.CommunicationProtocolStackDescribe communication protocol parameters
target.ConnectionBase class for target connection properties
target.ConnectionPropertiesDescribe target-specific connection properties
target.MainFunctionProvide C and C++ dependencies for main function of target hardware application
target.PILProtocolDescribe PIL protocol implementation for target hardware
target.PortDescribe connection via target hardware port (R2021a 이후)
target.PortConnectionDescribe target connection port
target.ProcessorProvide target processor information
target.RS232ChannelDescribe serial communication channel
target.TargetConnectionProvide details about connecting MATLAB computer to target hardware
target.TCPChannelDescribe TCP communication properties
target.ToolsDescribe properties of tools for target hardware
target.UDPChannelDescribe UDP communication
target.ApplicationStatusDescribe status of application on target hardware (R2021a 이후)
target.Breakpoint Provide breakpoint details for debugger (R2021a 이후)
target.DebugExecutionToolProvide MATLAB service interface for debugger to manage processes on target hardware (R2023a 이후)
target.DebugIOToolDebug byte stream I/O tool service interface (R2021a 이후)
target.ExecutionServiceDescribe implementation of execution service for target application (R2021a 이후)
target.ExecutionToolMATLAB service interface for tool that manages application execution on target hardware (R2021a 이후)
target.MATLABDependenciesDescribe MATLAB class and function dependencies (R2021a 이후)
target.ApplicationExecutionToolCapture system command information to run application from MATLAB computer
target.CommandCapture system command for execution on MATLAB computer
target.HostProcessExecutionToolCapture system command information to run target application from MATLAB computer
target.SystemCommandExecutionToolCapture system command information to run target application from MATLAB computer
target.FunctionProvide function signature information
target.TimerProvide timer details for processor

객체

모두 확장

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.MakefileBuilderConfigure toolchain-based build process
rtw.connectivity.LauncherControl downloading, starting, and resetting of a target application
rtw.connectivity.RtIOStreamHostCommunicatorConfigure development computer communications with target processor
rtw.pil.RtIOStreamApplicationFrameworkConfigure target-side communications

함수

모두 확장

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 Simulink PIL simulation

도움말 항목

문제 해결

Debug Generated Code During SIL or PIL Simulation

Use a debugger to understand the behavior of generated code.

View SIL and PIL Files in Code Generation Report

Produce a code generation report and static code metrics that cover SIL and PIL files.

Verification of Code Generation Assumptions

The SIL or PIL simulation checks code generation assumptions.

추천 예제