MATLAB XPC TARGET 4 - API GUIDE Betriebsanweisung Seite 172

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 372
  • Inhaltsverzeichnis
  • FEHLERBEHEBUNG
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 171
9 xPC Target Web Browser Interface
9-4
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 and
you would like to use the TCP/IP port
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 command, see “Syntax for the xpctcp2ser
Command” on page 9-5.
The TCP/IP to RS-232 gateway starts running, and the DOS command
window displays the message
*--------------------------------------------------------------*
* xPC Target 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, then
xpxtcp2ser displays the message 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, start and stop the target application, add scopes,
add signals, and change parameters.
5 In the DOS command window, press Ctrl+C.
The TCP/IP to RS-232 Gateway stops running, and the DOS command
window displays the message
interrupt received, shutting down
The gateway application has a handler that responds to Ctrl+C by
disconnecting and shutting down cleanly. In this case,
Ctrl+C is not used to
abort the application.
Seitenansicht 171
1 2 ... 167 168 169 170 171 172 173 174 175 176 177 ... 371 372

Kommentare zu diesen Handbüchern

Keine Kommentare