주요 콘텐츠

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

linuxTarget

타깃 컴퓨터를 관리하기 위한 인터페이스

R2024a 이후

설명

linuxTarget는 타깃 컴퓨터를 나타내는 타깃 객체를 생성하며, 해당 타깃 컴퓨터와 관련된 메서드 및 속성에 대한 액세스 기능을 제공합니다.

이 객체는 다음과 같은 메서드와 속성에 대한 액세스를 제공합니다:

  • 애플리케이션을 시작, 일시 중지, 재개 및 중지합니다.

  • 파라미터를 읽고 설정합니다.

  • 신호를 모니터링합니다.

  • 타깃 컴퓨터에 대한 상태 정보를 가져옵니다.

  • 타깃 컴퓨터에서 Docker 컨테이너를 다시 시작합니다.

  • 애플리케이션을 불러오고 배포합니다.

생성

tg = linuxTarget은 사용 가능한 유일한 타깃 컴퓨터를 나타내는 타깃 객체를 생성합니다.

tg = linuxTarget(targetName)targetName으로 지정된 타깃 컴퓨터를 나타내는 타깃 객체를 생성합니다.

예: 단 하나의 타깃 컴퓨터

예: 여러 대의 타깃 컴퓨터가 존재

객체 함수

connectSimulink를 선택한 타깃 컴퓨터에 연결
deployApplicationPackageDeploy application package to selected target computer
disconnectDisconnect Simulink from selected target computer
getApplicationStateGet state of application deployed to target computer
getApplicationsGet applications deployed to target computer and application states
getDeploymentLocationGet deployment location for selected target computer
getIPAddress타깃 컴퓨터의 IP 주소 가져오기
getMeasurementsGet list of measurable signals
getParametersGet list of tunable parameters
getSignalsUnderInstrumentView signals selected to measure
getTargetNameGet target computer name
getUserName타깃 컴퓨터의 사용자 이름 가져오기
isConnectedGet Boolean value representing target computer connection status
pauseApplicationPause application running on target computer
readParameterGet value of parameter
readParametersGet values of tunable parameters
removeApplicationPackageRemove application package from selected target computer
removeSignalsFromInstrumentRemove signals for which visualization is not required
restartContainerDocker 컨테이너 재시작 또는 새로 생성
restartStreamingRestart streaming of signals
resumeApplicationResume application on target computer
selectSignalsToInstrumentAdd signals of interest to visualize application behavior
setApplicationStateCallbackTrigger a function when state of application changes
setDeploymentLocationSet location for deployed application on target computer
setIPAddressSet IP address for target computer
setPassword타깃 컴퓨터에 비밀번호 설정하기
setTargetConnectionStatusCallbackSet callback function to trigger when status of connection to target computer changes
setUserNameSet user name for target computer
startApplication애플리케이션 시작
startMonitorAndTuneStart parameter tuning and signal monitoring
startStreamingStart streaming of signals and visualize results
stopApplicationTerminate application that is running on target computer
stopMonitorAndTuneStop parameter tuning of the application
stopStreaming신호 데이터 스트리밍 중지
uninstallTargetDelete docker image on target computer
updateTargetUpdate docker image on target computer if there is a version mismatch
writeParameterWrite or tune application parameter

예제

모두 축소

사용 가능한 타깃 컴퓨터와 통신하는 타깃 객체를 생성합니다. linuxTarget을 사용하여 사용 가능한 타깃 컴퓨터를 선택하십시오.

tg=linuxTarget;

지정된 타깃 컴퓨터와 통신하는 타깃 객체를 생성합니다. linuxTarget을 사용하여 특정 타깃 컴퓨터를 선택하십시오.

tg=linuxTarget("Target_1");

버전 내역

R2024a에 개발됨