System SourceMeter® Instrument Reference Manual Section 7:
2600BS-901-01 Rev. B / May 2013 7-133
lan.trigger[N].mode
This attribute sets the trigger operation and detection mode of the specified LAN event.
Type TSP-Link accessible Affected by Where saved Default value
Attribute (RW) Yes
Instrument reset
LAN trigger N reset
Not saved 0 (lan.TRIG_EITHER)
Usage
mode = lan.trigger[N].mode
lan.trigger[N].mode = mode
A number representing the trigger mode (0 to 7); see the Details section for
more information
A number representing the LAN event number (1 to 8)
Details
This attribute controls the mode in which the trigger event detector and the output trigger generator operate on
the given trigger. These settings are intended to provide behavior similar to the digital I/O triggers.
LAN trigger mode values
Mode Number Trigger packets detected as
input
LAN trigger packet
generated for output
with a…
Rising or falling edge (positive
or negative state)
Falling edge (negative state)
Rising edge (positive state)
Rising edge (positive state)
Rising edge (positive state)
Falling edge (negative state)
Falling edge (negative state)
Rising edge (positive state)
lan.TRIG_RISING and lan.TRIG_RISINGA are the same.
lan.TRIG_RISING and lan.TRIG_RISINGM are the same.
Use of either lan.TRIG_SYNCHRONOUSA or lan.TRIG_SYNCHRONOUSM over lan.TRIG_SYNCHRONOUS is
preferred, as lan.TRIG_SYNCHRONOUS is provided for compatibility with older firmware.
Example
print(lan.trigger[1].mode)
Outputs the present LAN trigger mode of LAN
event 1.
Also see
Digital I/O (on page 3-83)
TSP-Link system expansion interface (on page 6-47)