User`s guide
Using Target Objects
6-13
Using Target Objects
xPC Target uses a target object to represent the target application and target
kernel. This section shows some of the common tasks that you use with target
objects.
This section includes the following topics:
•“Displaying Target Object Properties”
•“Setting the Value of a Target Object Property from the Host PC”
•“Setting the Value of a Target Object Property from the Target PC”
•“Getting the Value of a Target Object Property”
•“Using the Method Syntax with Target Objects”
Displaying Target Object Properties
You may want to list the target object properties to monitor a target
application. The properties include the execution time, and average task
execution time.
After you build a target application and target object from a Simulink model,
you can list the target object properties. This procedure uses the default target
object name
tg as an example:
1 In the MATLAB window, type
tg
The current target application properties are uploaded to the host PC, and
MATLAB displays a list of the target object properties with the updated
values.
Note the target objects properties for TimeLog, StateLog, OutputLog, and
TETLog are not updated at this time.
For a list of target object properties with a description, see “Target Object
Properties” on page 6-4.