Instrument Control Toolbox | ![]() ![]() |
Specify the local host port for the connection
Description
You configure LocalPort
to be the port value of the local host. The default value is []
.
If LocalPortMode
is set to auto
or if LocalPort
is []
, the property is assigned any free port when you connect the object to the hardware with the fopen
function. If LocalPortMode
is set to manual
, the specified LocalPort
value is used when you issue fopen
. If you explicitly configure LocalPort
, LocalPortMode
is automatically set to manual
.
You can configure LocalPort
only when the object is disconnected from the hardware. You disconnect a connected object with the fclose
function. A disconnected object has a Status
property value of closed
.
Characteristics
Usage |
TCP/IP, UDP |
Read only |
While open |
Data type |
Double |
Values
Functions
Properties
LocalHost
, LocalPortMode
, Status
![]() | LocalHost | LocalPortMode | ![]() |