User`s guide

Working with Target Ob jects
to the host through an RS-232 connection. In the MATLAB Command
Window, type
tg = xpctarget.xpc('rs232', 'COM1', '115200')
The resulting target object is tg.
3 To check a connection between a host a nd a target, use the target function
targetping. For example,
tg.targetping
Note T o ensure that you always know which target PC is ass ociated with
your targe t object, you should always use this method to create target
objects.
4 To create a single target object, or to create the first of many targets in
your system, use the target object constructor function
xpctarget.xpc as
follows. In the MATLAB Comm and Window, type
tg = xpctarget.xpc
The resulting target object is tg.
Note If you choose t o use this syntax to create a target object, you should use
the xPC Target software Explorer to configure your target PC. This ensures
that command-line interactions know the correct target PC to work with.
Deleting Target Objects
To delete a target object, use the target object destructor function delete .In
the MATLAB window, type
tg.delete
If there are any scopes, file system, or FTP objects still associated with the
target, this function removes all those scope objects as well.
2-3