User`s guide

11 xPC Target™ Web Browser Interface
1 In the MATLAB window, type
xpcwwwenable or close(xpc)
The MATLAB interface is disconnected from the target PC, leaving the
target PC ready to connect to another client. The TCP/IP stack of the
xPC Target kernel supports only one simultaneous connection. If you do
not use this com m and, the TCP/IP to RS-232 gateway might not be able
to connect to the target PC.
2 Open a DOS command window, and enter the command to start the TCP/IP
to RS-232 gateway. For example, if the target PC is connected to COM1
andyouwouldliketousetheTCP/IPport
22222, type the following:
c:\<MATLAB root>\toolbox\rtw\targets\xpc\xpc\bin\xpctcp2ser
-v -t 22222 -c 1
For a description of the xpctcp2ser com m and, see “Syntax for the xpctcp2ser
Command” on page 11-5.
The TCP/IP to RS-232 gateway starts running, and the DOS command
window displays the message
*--------------------------------------------------------------*
* xPC Tar get TCP/IP to RS-232 gateway *
* Copyright 2000 The MathWorks *
*--------------------------------------------------------------*
Connecting COM to TCP port 22222
Waiting to connect
If you did not close the MATLAB to target application connection,
xpxtcp2ser displays the m essage Could not initialize COM port.
3 Open a Web browser. In the address box, enter
http://localhost:22222/
The Web browser loads the xPC Target Web interface panes.
4 Using the Web interface, s tart and stop the target application, add scopes,
add signals, and change parameters.
11-4