User`s guide
Run-time Architecture Overview
8-7
Note You may need to enter a routing table entry into VxWorks if your host
is not on the same local network (subnet) as the VxWorks system. See
routeAdd in the VxWorks Reference Guide for more information.
Configuring Simulink to Use Sockets
Simulink external mode uses a MEX-file to communicate with the VxWorks
system. The MEX-file is
matlabroot/toolbox/rtw/ext_comm.*
where * is a host-dependent MEX-file extension. See Chapter 4, “External
Mode,” for more information.
To use external mode with VxWorks, specify
ext_comm as the MEX-file for
external interface
in the External Target Interface dialog box (accessed
from the
External Mode Control Panel). In the MEX-file arguments field
you must specify the name of the VxWorks target system and, optionally, the
verbosity and TCP port number. Verbosity can be 0 (the default) or 1 if extra
information is desired. The TCP port number ranges from 256 to 65535 (the
default is 17725). If there is a conflict with other software using TCP port
17725, you can change the port that you use by editing the third argument of
the
MEX-file for external interface on the External Target Interface dialog
box. The format for the MEX-file arguments field is
'target_network_name' [verbosity] [TCP port number]
For example, this picture shows the External Target Interface dialog box
configured for a target system called
halebopp with default verbosity and the
port assigned to 18000: