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(): Thelan.ipconfig()function..lxidomain: Thelan.lxidomainattribute..macaddress: Thelan.macaddressattribute.
PROTOCOL_MULTICAST
class-attribute
instance-attribute
¶
PROTOCOL_MULTICAST = 'lan.PROTOCOL_MULTICAST'
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 = valuecommand.
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: |
|
|---|
| Returns: |
|
|---|
| Raises: |
|
|---|