linuxTarget
Description
linuxTarget
constructs a target object which represents a target
computer and provides access to methods and properties related to the target
computer.
The object provides access to methods and properties that:
Start, pause, resume, and stop the application.
Read and set parameters.
Monitor signals.
Retrieve status information about the target computer.
Restart the docker container on target computer.
Load and deploy the application.
Creation
constructs a target object
representing the only available target computer.tg
= linuxTarget
constructs a target object representing the target computer designated by
tg
= linuxTarget(targetName
)targetName
.
Example: Only One Target Computer Present
Example: Multiple Target Computers Present
Object Functions
connect | Connect Simulink to selected target computer |
deployApplicationPackage | Deploy application package to selected target computer |
disconnect | Disconnect Simulink from selected target computer |
getApplicationState | Get state of application deployed to target computer |
getApplications | Get applications deployed to target computer and application states |
getDeploymentLocation | Get deployment location for selected target computer |
getIPAddress | Get IP address of target computer |
getMeasurements | Get list of measurable signals |
getParameters | Get list of tunable parameters |
getSignalsUnderInstrument | View signals selected to measure |
getTargetName | Get target computer name |
getUserName | Get user name of target computer |
isConnected | Get Boolean value representing target computer connection status |
pauseApplication | Pause application running on target computer |
readParameter | Get value of parameter |
readParameters | Get values of tunable parameters |
removeApplicationPackage | Remove application package from selected target computer |
removeSignalsFromInstrument | Remove signals for which visualization is not required |
restartContainer | Restart or recreate docker container |
restartStreaming | Restart streaming of signals |
resumeApplication | Resume application on target computer |
selectSignalsToInstrument | Add signals of interest to visualize application behavior |
setApplicationStateCallback | Trigger a function when state of application changes |
setDeploymentLocation | Set location for deployed application on target computer |
setIPAddress | Set IP address for target computer |
setPassword | Set password for target computer |
setTargetConnectionStatusCallback | Set callback function to trigger when status of connection to target computer changes |
setUserName | Set user name for target computer |
startApplication | Launch application |
startMonitorAndTune | Start parameter tuning and signal monitoring |
startStreaming | Start streaming of signals and visualize results |
stopApplication | Terminate application that is running on target computer |
stopMonitorAndTune | Stop parameter tuning of the application |
stopStreaming | Stop streaming signal data |
uninstallTarget | Delete docker image on target computer |
updateTarget | Update docker image on target computer if there is a version mismatch |
writeParameter | Write or tune application parameter |
Examples
Version History
Introduced in R2024a