14: TSP command reference 2470 High Voltage SourceMeter Instrument
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
trigger.lanin[N].overrun (on page 14-207)
trigger.lanin[N].wait() (on page 14-208)
trigger.lanout[N].assert() (on page 14-208)
trigger.lanout[N].ipaddress (on page 14-211)
trigger.lanout[N].protocol (on page 14-212)
trigger.lanout[N].stimulus (on page 14-213)
trigger.lanout[N].connected
This attribute contains the LAN event connection state.
Type TSP-Link accessible Affected by Where saved Default value
Usage
connected = trigger.lanout[N].connected
The LAN event connection state:
ï‚§ true: Connected
ï‚§
: Not connected
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
t
rigger 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 t
he
c
onnection.
Example
trigger.lanout[1].protocol = lan.PROTOCOL_MULTICAST
print(trigger.lanout[1].connected)
Outputs true if connected, or false if not connected.
Example output:
Also see
trigger.lanout[N].connect() (on page 14-209)
trigger.lanout[N].ipaddress (on page 14-211)
trigger.lanout[N].protocol (on page 14-212)