xPC Target    

Target Object Methods

The target object methods allow you to control a target application on the target PC from the host PC. You enter target object methods in the MATLAB window on the host PC or use M-file scripts.

If you want to control the target application from the target PC, use target PC commands. See Target PC Command-Line Interface.

The target object methods are listed in the following table.

Method
Description
xpc
Create a target object on the host PC (constructor).
set
Set writable target object properties to the specified value.
get
Return the value of readable properties from a target object.
start
Start the execution of a target application on the target PC.
stop
Stop the execution of a target application on the target PC.
load
Download a target application from the host PC to the target PC.
unload
Unload a target application from the target PC. If a target application is running, it is stopped and unloaded.
addscope
Create a new scope with type 'host' or 'target' on the target PC.
getscope
Return the properties of a previously created scope from the target PC. The scope properties can be assigned to a MATLAB variable to create a scope object.
remscope
Remove a scope from the target PC. This method does not remove the scope object, on the host PC, that represent the scope.
getparamid
Return the property name or index of a parameter from the target object.
getsignalid
Return the property name or index of a signal from the target object.
getlog
Upload and returns one of the data logs from the target PC to the host PC. TimeLog, StateLog, OutputLog, TETLog
reboot
Reboot the target PC. If a target application is running, the target application is stopped, and then the target PC is rebooted.
close
Close the serial connection to the target PC so that the host PC can use the COMM port for another device.


  Target Object Properties Using Target Objects