Section 11: TSP command reference Model 2601B-PULSE System SourceMeter Instrument Reference Manual
11-118 2601B-PULSE-901-01A April 2020
lan.config.subnetmask
This attribute contains the LAN subnet mask.
Usage
mask = lan.config.subnetmask
lan.config.subnetmask = "mask"
String that specifies the LAN subnet mask value in dotted decimal notation
Details
This attribute specifies the LAN subnet mask that will be used when the manual configuration method
is used to configure the LAN. This setting is ignored when DLLA or DHCP is used.
This attribute does not indicate the actual setting presently in effect. Use the
lan.status.subnetmask attribute to determine the present operating state of the LAN.
Example
print(lan.config.subnetmask)
Outputs the LAN subnet mask, such as:
255.255.255.0
Also see
lan.restoredefaults() (on page 11-121)
lan.status.subnetmask (on page 11-128)
lan.linktimeout
This attribute contains the LAN link timeout period.
Usage
timeout = lan.linktimeout
lan.linktimeout = timeout
The LAN link monitor time-out period (in seconds)
Details
You must enable the command lan.autoconnect before you can use this attribute.
The timeout value represents the amount of time that passes before the instrument disconnects
from the LAN due to the loss of the LAN link integrity.
The LAN interface does not disconnect if the connection to the LAN is reestablished before the
timeout value expires.
If the LAN link integrity is not restored before the timeout value expires, the instrument begins to
monitor for a new connection.