MATLAB XPC TARGET 4 - API GUIDE Uživatelská příručka Strana 173

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 372
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 172
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.
Zobrazit stránku 172
1 2 ... 168 169 170 171 172 173 174 175 176 177 178 ... 371 372

Komentáře k této Příručce

Žádné komentáře