
2606B System SourceMeter® Instrument Reference Manual
Section 7: TSP command reference
2606B-901-01 Rev. B / May 2018
7-131
The event generator automatically disconnects when either the protocol or IP address for this event is
changed.
Example
lan.trigger[1].protocol = lan.MULTICAST
lan.trigger[1].connect()
lan.trigger[1].assert()
Set the protocol for LAN trigger 1 to be
multicast when sending LAN triggers.
Then, after connecting the LAN trigger,
send a message on LAN trigger 1 by
asserting it.
Also see
(on page 7-129)
(on page 7-133)
(on page 7-134)
(on page 7-135)
(on page 7-136)
(on page 7-138)
lan.trigger[N].connected
This attribute stores the LAN event connection state.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (R)
Yes
Not applicable
Not applicable
Not applicable
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
(on page 7-133)
(on page 7-135)