User`s guide
4 External Mode
4-24
The External Interface MEX-File
YoumustspecifythenameoftheexternalinterfaceMEX-fileintheExternal
Target Interface
dialog box:
You may be required to provide arguments to the MEX-file. In particular,
ext_comm has three optional arguments: the network name of your target, the
verbosity level, and the TCP port number. The implementation of the
TCP-based MEX-file is called
ext_comm, which is the default for this dialog box.
MEX-File Optional Arguments
You can specify optional arguments that are passed to the MEX-file in the
External Target Interface dialog box. These include the network name of the
target host, the verbosity level, and the TCP server port number:
1 Target network name — The network name of the computer running the
external program. By default, this is the computer on which Simulink is
running.
2 Verbosity level — Controls the level of detail of the information printed out
during the actual data transfer. The value is either 0 or 1 and has the
following meaning:
0 — no information
1 — detailed information
3 TCP server port number — The default value is 17725. You can change the
port number to a value between 245 and 65535 to avoid a port conflict if
necessary.
Enter the name of the external
interface MEX-file in the box
(you do not need to enter the
.mex extension). This file must
be in the current directory or in a
directory that is on your
MATLAB path.