MEX-file arguments
Description
Specify arguments to pass to an external mode interface MEX-file for communicating with executing targets.
Category: Code Generation > Interface
Settings
Default:
''
For XCP communication with a TCP/IP transport layer, there are four optional arguments:
Network name of your target processor –– For example,
'localhost'
if the target process is your development computer or the IP address'148.27.151.12'
.Verbosity level ––
0
for no information or1
to display detailed information during data transfer.Port number of TCP/IP server –– An integer value between
256
and65535
, with a default of17725
. The selected port must not be used by another TCP/IP service that runs on the target hardware.Symbols file name –– File format is PDB for Windows® or ELF for Linux®.
For XCP communication with a serial transport layer, there are four optional arguments:
Verbosity level ––
0
for no information or1
for detailed information.Serial port ID –– On Windows,
'COM1'
or 1 forCOM1
,'COM2'
or 2 forCOM2
, etc. On Linux,'/dev/ttyS0'
, etc.Baud ––
1200
,2400
,4800
,9600
,14400
,19200
,38400
,57600
(default), or115200
.Symbols file name –– File format is PDB for Windows or ELF for Linux.
For TCP/IP interfaces, ext_comm
allows three optional
arguments:
Network name of your target processor –– For example,
'myComputer'
or'148.27.151.12'
.Verbosity level ––
0
for no information or1
to display detailed information during data transfer.Port number of TCP/IP server –– An integer value between
256
and65535
, with a default of17725
. The selected port must not be used by another TCP/IP service that runs on the target hardware.
For a serial transport, ext_serial_win32_comm
allows three
optional arguments:
Verbosity level ––
0
for no information or1
for detailed information.Serial port ID ––
1
forCOM1
, etc.Baud ––
1200
,2400
,4800
,9600
,14400
,19200
,38400
,57600
(default), or115200
.
Specify the arguments in the list order. For example, if you want to specify the verbosity level (the second argument), then you must also specify the network name of the target processor (the first argument). You can use white space or commas as argument delimiters.
'148.27.151.12' 1 30000
Dependency
Selecting parameter External mode enables this parameter.
Command-Line Information
Parameter:
ExtModeMexArgs |
Type: character vector |
Value: valid arguments |
Default:
''
|
Recommended Settings
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No impact |
Safety precaution | No impact |