User`s guide
Web Browser Interface
9-3
1 In the MATLAB window, type
xpcwwwenable
MATLAB is disconnected from the target PC, and the connection is reset for
connecting to another client. If you do not use this command, your Web
browser might not be able to connect to the target PC.
2 Open a Web browser. In the address box, enter the IP address and port
number you entered in the
xPC Target Explorer window. For example, if
the target computer IP address is 192.168.0.1 and the port is 22222, type
http://192.168.0.1:22222/
The browser loads the xPC Target Web interface frame and panes.
Connecting the Web Interface Through RS-232
If the host PC and target PC are connected with a serial cable instead of a
network cable, you can still connect the target application on the target PC to
a Web browser on the host PC. xPC Target includes a TCP/IP to RS-232
mapping application. This application runs on the host PC and writes whatever
it receives from the RS-232 connection to a TCP/IP port, and it writes whatever
is receives from the TCP/IP port to the RS-232 connection. TCP/IP port
numbers must be less than 2
16
= 65536.
Before you connect your Web browser on the host PC, you must load a target
application onto the target PC. The target application does not have to be
running, but it must be loaded. Also, your Web browser must have JavaScript
and StyleSheets turned on.
1 In the MATLAB window, type
xpcwwwenable or close(xpc)
MATLAB 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 command,
the TCP/IP to RS-232 gateway might not be able to connect to the target PC.