Section 14: TSP command reference
2470 High Voltage SourceMeter Instrument Reference Manual
14-210
2470-901-01 Rev. A /
May
2019
Example
trigger.lanout[1].protocol = lan.PROTOCOL_MULTICAST
trigger.lanout[1].connect()
trigger.lanout[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 14-207)
(on page 14-208)
(on page 14-208)
(on page 14-212)
trigger.lanout[N].connected
This attribute contains 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
= trigger.lanout[
N
].connected
connected
The LAN event connection state:
true
: Connected
false
: Not connected
N
The LAN event number (1 to 8)
Details
This is set to
true
when the LAN trigger is connected and ready to send trigger events after a
successful
trigger.lanout[
N
].connect()
command. If the LAN trigger is not ready to send
trigger events, this value is
false
.
This attribute is also
false
when the
trigger.lanout[
N
].protocol
or
trigger.lanout[
N
].ipaddress
attribute is changed or when the remote connection closes the
connection.
Example
trigger.lanout[1].protocol = lan.PROTOCOL_MULTICAST
print(trigger.lanout[1].connected)
Outputs
true
if connected, or
false
if not connected.
Example output:
false
Also see
(on page 14-209)
(on page 14-212)