lan

The lan commands module.

These commands are used in the following models: DAQ6510, DMM6500, DMM7510, SMU2450, SMU2460, SMU2461, SMU2470

THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED.

Please report an issue if one is found.

Attributes and Functions
- lan.ipconfig()
- lan.lxidomain
- lan.macaddress

Lan

Bases: BaseTSPCmd

The lan command tree.

Constants
  • .MODE_AUTO: The instrument automatically assigns LAN settings.
  • .MODE_MANUAL: You specify the LAN settings.
  • .OFF: An open and close on the DST port (5030) closes all open LAN connections.
  • .ON: The DST port needs to be opened, receive the login + , then close the DST port to close all open LAN connections. By turning DST protection ON, you are protecting LAN connections from being inadvertently closed by your IT department doing a port scan across the corporate network.
  • .PROTOCOL_MULTICAST: Sets the LAN protocol to use for sending trigger messages to multicast.
  • .PROTOCOL_TCP: Sets the LAN protocol to use for sending trigger messages to TCP.
  • .PROTOCOL_UDP: Sets the LAN protocol to use for sending trigger messages to UDP.
Properties and methods
  • .ipconfig(): The lan.ipconfig() function.
  • .lxidomain: The lan.lxidomain attribute.
  • .macaddress: The lan.macaddress attribute.

MODE_AUTO class-attribute instance-attribute

MODE_AUTO = 'lan.MODE_AUTO'

MODE_MANUAL class-attribute instance-attribute

MODE_MANUAL = 'lan.MODE_MANUAL'

OFF class-attribute instance-attribute

OFF = 'lan.OFF'

ON class-attribute instance-attribute

ON = 'lan.ON'

PROTOCOL_MULTICAST class-attribute instance-attribute

PROTOCOL_MULTICAST = 'lan.PROTOCOL_MULTICAST'

PROTOCOL_TCP class-attribute instance-attribute

PROTOCOL_TCP = 'lan.PROTOCOL_TCP'

PROTOCOL_UDP class-attribute instance-attribute

PROTOCOL_UDP = 'lan.PROTOCOL_UDP'

lxidomain property writable

lxidomain: str

Access the lan.lxidomain attribute.

Description
  • This attribute contains the LXI domain.
Usage
  • Accessing this property will send the print(lan.lxidomain) query.
  • Setting this property to a value will send the lan.lxidomain = value command.
TSP Syntax
- lan.lxidomain = value
- print(lan.lxidomain)
Info
  • domain, the LXI domain number (0 to 255).
Raises:

macaddress property

macaddress: str

Access the lan.macaddress attribute.

Description
  • This attribute describes the LAN MAC address.
Usage
  • Accessing this property will send the print(lan.macaddress) query.
TSP Syntax
- print(lan.macaddress)
Raises:

ipconfig

ipconfig(
    method: str | None = None,
    ip_v4_address: str | None = None,
    subnet_mask: str | None = None,
    gateway: str | None = None,
) -> str

Run the lan.ipconfig() function.

Description
  • This function specifies the LAN configuration for the instrument.
TSP Syntax
- lan.ipconfig()
Parameters:
  • method (optional, default: None ) –

    The method for configuring LAN settings; it can be one of the following values.

  • ip_v4_address (optional, default: None ) –

    LAN IP address; must be a string specifying the IP address in dotted decimal notation.

  • subnet_mask (optional, default: None ) –

    The LAN subnet mask; must be a string in dotted decimal notation.

  • gateway (optional, default: None ) –

    The LAN default gateway; must be a string in dotted decimal notation.

Returns:
  • str

    The result of the function call.

Raises: