User`s guide
xpctarget.xpc
Purpose Create target object representing target application
Syntax MATLAB command line
target_object = xpctarget.xpc('mode', 'arg1', 'arg2')
target_object=xpctarget.xpc('target_object_name')
Arguments
target_object
Variable name to reference the target object
mode
Optionally, enter the communication mode
TCPIP
Enable TCP/IP connection with
target PC.
RS232
Enable RS-232 connection with
target PC.
arg1
Optionally, enter an argu m ent ba se d on the
mode value:
IP
address
If
mode is 'TCPIP',entertheIP
address of the target PC.
COM
port
If
mode is 'RS23 2', enter the host
COM port.
arg2
Optionally, enter an argu m ent ba se d on the
mode value:
Port
If
mode is 'TCPIP',entertheport
number for the target PC.
Baud
rate
If
mode is 'RS232', enter the baud
rate for the connection between the
host and target PC.
target_object_name
Target object name as specified in the xPC
Target Explorer
18-164