System SourceMeter® Instrument Reference Manual Section 7: TSP command ref
2600BS-901-01 Rev. C / August 2016 7-147
lan.trigger[N].protocol
This attribute sets the LAN protocol to use for sending trigger messages.
Type TSP-Link accessible Affected by Where saved Default value
Attribute (RW) Yes Instrument reset
LAN trigger N reset
Not saved
0 (lan.TCP)
Usage
protocol = lan.trigger[N].protocol
lan.trigger[N].protocol = protocol
The protocol to use for the trigger's messages:
• 0 or lan.TCP
• 1 or lan.UDP
•
A number representing the LAN event number (1 to 8)
Details
The LAN trigger listens for trigger messages on all supported protocols, but uses the designated
protocol for sending outgoing messages. After changing this setting, lan.trigger[N].connect()
must be called before outgoing event messages can be sent.
When the lan.MULTICAST protocol is selected, the lan.trigger[N].ipaddress attribute is
ignored and event messages are sent to the multicast address 224.0.23.159.
Example
print(lan.trigger[1].protocol)
Get LAN protocol to use for sending trigger
messages for LAN event 1.
Also see
lan.trigger[N].connect() (on page 7-142)
lan.trigger[N].ipaddress (on page 7-144)
lan.trigger[N].pseudostate
This attribute sets the simulated line state for the LAN trigger.
Type TSP-Link accessible Affected by Where saved Default value
Attribute (RW) Yes Instrument reset
LAN trigger N reset
Not saved 1
Usage
pseudostate = lan.trigger[N].pseudostate
lan.trigger[N].pseudostate = pseudostate
The simulated line state (0 or 1)
A number representing the LAN event number (1 to 8)