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: Thelan.configcommand tree..trigger: Thelan.trigger[N]command tree.
config
property
¶
config: LanConfig
Return the lan.config command tree.
Sub-properties and sub-methods
.dns: Thelan.config.dnscommand 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: Thelan.config.dnscommand tree.
dns
property
¶
dns: LanConfigDns
Return the lan.config.dns command tree.
Sub-properties and sub-methods
.hostname: Thelan.config.dns.hostnameattribute.
LanConfigDns
¶
Bases: BaseTSPCmd
The lan.config.dns command tree.
Properties and methods
.hostname: Thelan.config.dns.hostnameattribute.
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 = valuecommand.
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]}]')