Section 7: TSP command reference
2606B System SourceMeter® Instrument Reference Manual
7-112
2606B-901-01 Rev. B / May 2018
lan.applysettings()
This function re-initializes the LAN interface with new settings.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
lan.applysettings()
Details
Disconnects all existing LAN connections to the instrument and re-initializes the LAN with the present
configuration settings.
This function initiates a background operation. LAN configuration could be a lengthy operation.
Although the function returns immediately, the LAN initialization continues to run in the background.
Even though the LAN configuration settings may not have changed since the LAN was last
connected, new settings may take effect due to the dynamic nature of dynamic host configuration
protocol (DHCP) or dynamic link local addressing (DLLA) configuration.
Re-initialization takes effect even if the configuration has not changed since the last time the
instrument connected to the LAN.
Example
lan.applysettings()
Re-initialize the LAN interface with new settings.
Also see
None
lan.autoconnect
This attribute is used to enable or disable link monitoring.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (RW)
Yes
LAN restore defaults
Nonvolatile memory
1 (lan.ENABLE)
Usage
state
= lan.autoconnect
lan.autoconnect =
state
state
LAN link monitoring state:
1
or
lan.ENABLE:
Enables automatic link reconnection and monitoring
0
or
lan.DISABLE:
Disables automatic link reconnection and monitoring
Details
This attribute sets the LAN link monitoring and automatic connection state.
When this is set to
lan.ENABLE
, all connections are closed if the link to the LAN is lost for more than
the time specified by
lan.linktimeout
.
Set this attribute to
lan.ENABLE
to automatically reset the LAN connection after the LAN link is
established.