lan

The lan commands module.

These commands are used in the following models: SMU2601B_Pulse

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

Please report an issue if one is found.

Attributes and Functions
- lan.config.dns.hostname

Lan

Bases: BaseTSPCmd

The lan command tree.

Constants
  • .AUTO: Selects automatic sequencing of configuration.
  • .DISABLE: Disables automatic link reconnection and monitoring.
  • .ENABLE: Enables automatic link reconnection and monitoring.
  • .FULL: Full-duplex operation.
  • .HALF: Half-duplex operation.
  • .MANUAL: Use only manually specified configuration settings.
  • .MULTICAST: Sets the LAN protocol to use for sending trigger messages to multicast.
  • .TCP: Use TCP protocol.
  • .TRIG_EITHER: Sets the trigger operation and detection mode of the specified LAN event to rising or falling edge (positive or negative state).
  • .TRIG_FALLING: Sets the trigger operation and detection mode of the specified LAN event to falling edge (negative state).
  • .TRIG_RISING: Sets the trigger operation and detection mode of the specified LAN event to rising edge (positive state).
  • .TRIG_RISINGA: Sets the trigger operation and detection mode of the specified LAN event to rising edge (positive state).
  • .TRIG_RISINGM: Sets the trigger operation and detection mode of the specified LAN event to rising edge (positive state).
  • .TRIG_SYNCHRONOUS: Use for compatibility with older instruments; sets the trigger operation and detection mode of the specified LAN event to falling edge (negative state).
  • .TRIG_SYNCHRONOUSA: Sets the trigger operation and detection mode of the specified LAN event to falling edge (negative state).
  • .TRIG_SYNCHRONOUSM: Sets the trigger operation and detection mode of the specified LAN event to rising edge (positive state).
  • .UDP: Use UDP protocol.
Properties and methods
  • .config: The lan.config command tree.
  • .trigger: The lan.trigger[N] command tree.

AUTO class-attribute instance-attribute

AUTO = 'lan.AUTO'

DISABLE class-attribute instance-attribute

DISABLE = 'lan.DISABLE'

ENABLE class-attribute instance-attribute

ENABLE = 'lan.ENABLE'

FULL class-attribute instance-attribute

FULL = 'lan.FULL'

HALF class-attribute instance-attribute

HALF = 'lan.HALF'

MANUAL class-attribute instance-attribute

MANUAL = 'lan.MANUAL'

MULTICAST class-attribute instance-attribute

MULTICAST = 'lan.MULTICAST'

TCP class-attribute instance-attribute

TCP = 'lan.TCP'

TRIG_EITHER class-attribute instance-attribute

TRIG_EITHER = 'lan.TRIG_EITHER'

TRIG_FALLING class-attribute instance-attribute

TRIG_FALLING = 'lan.TRIG_FALLING'

TRIG_RISING class-attribute instance-attribute

TRIG_RISING = 'lan.TRIG_RISING'

TRIG_RISINGA class-attribute instance-attribute

TRIG_RISINGA = 'lan.TRIG_RISINGA'

TRIG_RISINGM class-attribute instance-attribute

TRIG_RISINGM = 'lan.TRIG_RISINGM'

TRIG_SYNCHRONOUS class-attribute instance-attribute

TRIG_SYNCHRONOUS = 'lan.TRIG_SYNCHRONOUS'

TRIG_SYNCHRONOUSA class-attribute instance-attribute

TRIG_SYNCHRONOUSA = 'lan.TRIG_SYNCHRONOUSA'

TRIG_SYNCHRONOUSM class-attribute instance-attribute

TRIG_SYNCHRONOUSM = 'lan.TRIG_SYNCHRONOUSM'

UDP class-attribute instance-attribute

UDP = 'lan.UDP'

config property

config: LanConfig

Return the lan.config command tree.

Sub-properties and sub-methods
  • .dns: The lan.config.dns command tree.

trigger property

trigger: dict[int, LanTriggerItem]

Return the lan.trigger[N] command tree.

Constants
  • .EVENT_ID: Selects the event that causes a trigger to be asserted on the digital output line as the appropriate LXI trigger packet received on LAN trigger object N.

LanConfig

Bases: BaseTSPCmd

The lan.config command tree.

Properties and methods
  • .dns: The lan.config.dns command tree.

dns property

Return the lan.config.dns command tree.

Sub-properties and sub-methods
  • .hostname: The lan.config.dns.hostname attribute.

LanConfigDns

Bases: BaseTSPCmd

The lan.config.dns command tree.

Properties and methods
  • .hostname: The lan.config.dns.hostname attribute.

hostname property writable

hostname: str

Access the lan.config.dns.hostname attribute.

Description
  • This attribute defines the dynamic DNS host name.
Usage
  • Accessing this property will send the print(lan.config.dns.hostname) query.
  • Setting this property to a value will send the lan.config.dns.hostname = value command.
TSP Syntax
- lan.config.dns.hostname = value
- print(lan.config.dns.hostname)
Raises:

LanTriggerItem

Bases: ValidatedDynamicNumberCmd, BaseTSPCmd

The lan.trigger[N] command tree.

Constants
  • .EVENT_ID: Selects the event that causes a trigger to be asserted on the digital output line as the appropriate LXI trigger packet received on LAN trigger object N.

EVENT_ID class-attribute instance-attribute

EVENT_ID = replace('[N]', f'[{split(']', maxsplit=1)[0]}]')