Instrument Control Toolbox | ![]() ![]() |
Specify the local host port selection mode
Description
LocalPortMode
specifies the selection mode for the LocalPort
property when you connect a TCP/IP or UDP object.
If LocalPortMode
is set to auto
, MATLAB uses any free local port. If LocalPortMode
is set to manual
, the specified LocalPort
value is used when you issue the fopen
function. If you explicitly specify a value for LocalPort
, LocalPortMode
is automatically set to manual
.
Characteristics
Usage |
TCP/IP, UDP |
Read only |
While open |
Data type |
String |
Values
{auto} |
Use any free local port. |
manual |
Use the specified local port value. |
Functions
Properties
![]() | LocalPort | LogicalAddress | ![]() |