Models 707B and 708B Switching Matrix Reference Manual
Section 7: TSP command reference
707B-901-01 Rev. B / January 2015
7-221
Details
This attribute controls the mode in which the trigger event detector and the output trigger generator
operate on the given trigger line.
The setting for
mode
can be one of the following values:
Mode
Number
value
Description
tsplink.TRIG_BYPASS
0
Allows direct control of the line as a digital I/O line.
tsplink.TRIG_FALLING
1
Detects falling-edge triggers as input. Asserts a TTL-low pulse
for output.
tsplink.TRIG_RISING
2
If the programmed state of the line is high, the
tsplink.TRIG_RISING
mode behaves similarly to
tsplink.TRIG_RISINGA
.
If the programmed state of the line is low, the
tsplink.TRIG_RISING
mode behaves similarly to
tsplink.TRIG_RISINGM
.
Use
tsplink.TRIG_RISINGA
if the line is in the high output
state.
Use
tsplink.TRIG_RISINGM
if the line is in the low output
state.
tsplink.TRIG_EITHER
3
Detects rising- or falling-edge triggers as input. Asserts a
TTL-low pulse for output.
tsplink.TRIG_SYNCHRONOUSA
4
Detects the falling-edge input triggers and automatically
latches and drives the trigger line low.
tsplink.TRIG_SYNCHRONOUS
5
Detects the falling-edge input triggers and automatically
latches and drives the trigger line low. Asserts a TTL-low pulse
as an output trigger.
tsplink.TRIG_SYNCHRONOUSM
6
Detects rising-edge triggers as an input. Asserts a TTL-low
pulse for output.
tsplink.TRIG_RISINGA
7
Detects rising-edge triggers as input. Asserts a TTL-low pulse
for output.
tsplink.TRIG_RISINGM
8
Edge detection as an input is not available. Generates a
TTL-high pulse as an output trigger.
When programmed to any mode except
tsplink.TRIG_BYPASS
, the output state of the I/O line is
controlled by the trigger logic, and the user-specified output state of the line is ignored.
When the trigger mode is set to
tsplink.TRIG_RISING
, the user-specified output state of the line
is examined. If the output state selected when the mode is changed is high, the actual mode used will
be
tsplink.TRIG_RISINGA
. If the output state selected when the mode is changed is low, the
actual mode used will be
tsplink.TRIG_RISINGM
.
mode
stores the trigger mode as a numeric value when the attribute is read.
To control the line state, use the
tsplink.TRIG_BYPASS
mode with the
tsplink.writebit()
and the
tsplink.writeport()
commands.
Example
tsplink.trigger[3].mode = tsplink.TRIG_RISINGM
Sets the trigger mode for
synchronization line 3 to
tsplink.TRIG_RISINGM
.