User`s guide
3 Network Communication
3-6
xpc
MATLAB reconnects to the target application and lists the properties of the
target object.
If you did not close the gateway application, then MATLAB displays the
message
Error in ==>
C:\MATLABR12\toolbox\rtw\targets\xpc\xpc\@xpc\xpc.m
On line 31 ==> sync(xpcObj);
To correct this problem, you must close MATLAB and then restart it.
Syntax for the xpctcp2ser Command
The syntax for the xpctcp2ser command is
xpctcp2ser [-v] [-n] [-t tcpPort] [-c comPort]
The options are described in the following table.
Command
line option
Description
-v Produces a line of output every time a client connects or
disconnects.
-n Allows non-local 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 don’t use this option, only the host PC which is
connected to the target PC with a serial cable will be able to
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:22222/
. However, if
you try to connect to http://DomainName.com:22222/
, you
will probably get a connection error.