User`s guide

2 Targets and Scopes in the MATLAB
®
Interface
Displaying Tar g
et Object Properties
You might want to
list the target object properties to monitor a target
application. Th
e properties include the execution time and the average task
execution time
.
After you buil
d a target application and target object from a Simulink m odel,
you can list th
e 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 that the target object properties for
TimeLog, StateL og, OutputLog,
and
TETLog are not updated at this time.
2 Type
+tg
The Status property changes from s topped to running,andthelog
properties change to
Acquiring.
For a list of target object properties w ith a description, see the target object
function
get (target application object).
Setting Target Object Properties from the Host PC
You can change a target object property by using the xPC Target software set
method or the dot notation on the host PC. (See “U se r Interaction” in the xPC
Target G etting Started Guide guide for limitations on target property changes
to sample times.)
With the xPC Target software you can use either a function syntax or an
object property syntax to change the target object properties. The syntax
set(target_object, property_name, new_property_value) can be
replaced by
2-4