User manual
Series 3700 System Switch/Multimeter Reference Manual Section 13: Instrument Control Library (ICL)
3700S-901-01 Rev. C / July 2008 13-191
lan.applysettings()
Remarks
This function disconnects from the LAN interface and reinitializes the LAN with the
current configuration settings. This function initiates an overlapped operation. LAN
configuration could be a lengthy operation. Although the function returns immediately,
the LAN initialization will continue to run in the background.
NOTE When this command is executed, all existing LAN connections to the
instrument will be disconnected.
NOTE 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 DHCP or DLLA configuration.
Example
To reinitialize the LAN interface with new settings:
lan.applysettings()
lan.config.autonegotiate
Attribute
Configures LAN auto-negotiation state.
Usage
To read the auto-negotiation state:
state = lan.config.autonegotiate
To write the auto-negotiation state:
lan.config.autonegotiate = state
state: LAN auto-negotiation state. state may be one of the following values:
lan.ENABLE or 1: Enables auto-negotiation.
lan.DISABLE or 0: Disables auto-negotiation.
Remarks
This attribute sets the LAN auto-negotiation state. When enabled, the unit will select
the best options for Ethernet speed and duplex. By default, this feature is enabled.
Details
Changing this setting from lan.DISABLE to lan.ENABLE will cause the unit to
immediately negotiate new speed and duplex settings. Changing this setting from
lan.ENABLE to lan.DISABLE will cause the unit to immediately use the manually
configured speed and duplex settings.
Example
To enable and view LAN auto-negotiation:
lan.config.autonegotiate = lan.ENABLE
print(lan.config.autonegotiate)
1.000000000e+000
lan.config.dns.address[index]
Attribute
Configures DNS server IP addresses.