User`s guide
Web Browser Interface
9-5
6 In the MATLAB Command Window, type
xpc
MATLAB reconnects to the target application and lists the properties of the
target object.
If you did not close the gateway application, MATLAB displays the message
Error in ==>
C:\MATLABR13\toolbox\rtw\targets\xpc\xpc\@xpc\xpc.m
On line 31 ==> sync(xpcObj);
You must close MATLAB and then restart it.
Syntax for the xpctcp2ser Command
The xpctcp2ser command starts the TCP/IP to RS-232 gateway. The syntax
for this command is
xpctcp2ser [-v] [-n] [-t tcpPort] [-c comPort]
xpctcp2ser -h
The options are described in the following table.
Command-
Line Option
Description
-v
Verbose mode. Produces a line of output every time a client
connects or disconnects.
-n
Allows nonlocal connections. By default, only clients from
the same computer that the gateway is running on are
allowed to connect. This option allows anybody to connect to
the gateway.
If you do not use this option, only the host PC that is
connected to the target PC with a serial cable can connect to
the selected port. For example, if you start the gateway on
your host PC, with the default ports, you can type in the
Web browser
http://localhost:2222. However, if you try
to connect to
http://Domainname.com:22222, you will
probably get a connection error.