Model 2651A High Power System SourceMeter® Instrument Reference Manual Section 7: Command reference
2651A-901-01 Rev. A / March 2011 7-125
Usage
connected = lan.trigger[N].connected
connected
The LAN event connection state:
• true: Connected
• false: Not connected
N
The LAN event number (1 to 8)
Details
This read-only attribute is set to true when the LAN trigger is connected and ready to send trigger events
following a successful lan.trigger[N].connect() command; if the LAN trigger is not ready to send trigger
events, this value is false.
This attribute is also false when either lan.trigger[N].protocol or lan.trigger[N].ipaddress
attributes are changed or the remote connection closes the connection.
Example
lan.trigger[1].protocol = lan.MULTICAST
print(lan.trigger[1].connected)
Outputs true if connected, or false if not
connected.
Example output:
false
Also see
lan.trigger[N].connect() (on page 7-124)
lan.trigger[N].ipaddress
(on page 7-126)
lan.trigger[N].protocol
(on page 7-129)
lan.trigger[N].disconnect()
This function disconnects the LAN trigger.
Type TSP-Link accessible
Affected by Where saved Default value
Function Yes
Usage
lan.trigger[N].disconnect()
N
The LAN event number (1 to 8)
Details
For TCP connections, this closes the TCP connection.
The LAN trigger automatically disconnects when either the lan.trigger[N].protocol or
lan.trigger[N].ipaddress attributes for this event are changed.
Also see
lan.trigger[N].ipaddress (on page 7-126)
lan.trigger[N].protocol
(on page 7-129)