User`s guide

xpctarget.xpc
Description Constructor of a target object. The target object represents the target
application and target PC. You make changes to the target application
by changing the targe t object using methods and properties.
If you have one target PC, or if you designate a target PC as the default
one in your system, use the syntax
target_object=xpctarget.xpc
If you have multiple target PCs in your system, use the following syntax
to create the additional target objects.
target_object=xpctarget.xpc('mode', 'arg1', 'arg2')
If you have a target PC object in the xPC Targ et Explore r, you can use
the following syntax to construct a corresponding target object from
the M ATLA B Command Window.
target_object=xpctarget.xpc('target_object_name')
Examples Before you build a target application, you can check the connection
between your host a nd target computers by creating a target object,
then using the
targetping method to check the connection.
tg = xpctarget.xpc
xPC Object
Connected = Yes
Application = loader
tg.targetping
ans =
success
If you have a second target computer for which you want to check the
connection, create a second target object. In the following example, the
connection with the second target computer is an RS-232 connection.
18-165