Replace N with the number of the synchronization line: 1-3
Function
The trigger operation and detection mode.
Usage
mode = tsplink.trigger[N].mode
tsplink.trigger[N].mode = mode
N
The number of the trigger line.
trig_mode
The active trigger mode.
mode
Selects the current trigger mode.
Choose one the following values for mode:
0
or
tsplink.TRIG_BYPASS
Allows direct control of the line.
1
or
tsplink.TRIG_FALLING
Detects falling edge input triggers.
Asserts TTL-low pulse as an output trigger.
2
or
tsplink.TRIG_RISING
If the programmed state of the line is high, the
tsplink.TRIG_RISING
mode behaves similar to
tsplink.TRIG_RISINGA
.
If the programmed state of the line is low, the
tsplink.TRIG_RISING
mode behaves similar to
tsplink.TRIG_RISINGM.
3
or
tsplink.TRIG_EITHER
Detects rising or falling edge triggers.
Asserts a TTL-low trigger pulse.
4
or
tsplink.TRIG_SYNCHRONOUSA
Detects the falling edge input triggers and
automatically latches and drives the trigger
line low.
Asserting the output trigger releases the latched
line.
5
or
tsplink.TRIG_SYNCHRONOUS
Detects the falling edge input triggers and
automatically latches and drives the trigger
line low.
Asserts a TTL-low pulse as an output trigger.
6
or
tsplink.TRIG_SYNCHRONOUSM
Detects rising edge triggers as an input.
Asserts a low TTL-low pulse for output.
7
or
tsplink.TRIG_RISINGA
Detects Rising Edge triggers as an input.
Asserts a low TTL-low pulse as an output.
8
or
tsplink.TRIG_RISINGM
Edge detection as an input is not available.
Generates a TTL-high pulse as an output trigger.
Remarks
• You can express the mode as a number (0 through 8) or you can use one of the
pre-defined constants (see
).
• The custom variable mode stores the trigger mode as a numeric value when the attribute
is read.
• The default trigger mode for a line is
tsplink.TRIG_BYPASS
.
• To control the line state, use the
tsplink.TRIG_BYPASS
mode with the
tsplink.writebit
and the
tsplink.writeport
commands.
• (Firmware version prior to 1.4.0 only) Use the
tsplink.TRIG_SYNCHRONOUS
mode for
backward firmware compatibility.
• (Firmware version 1.4.0 and higher) Use
tsplink.TRIG_SYNCHRONOUSA
or
tsplink.TRIG_SYNCHRONOUSM
modes.
• (Firmware version prior to 1.4.0 only) Use the
tsplink.TRIG_RISING
mode for
backward compatibility.
Details
"TSP-Link Synchronization lines"
,
, and
.
Example
-- Sets the trigger mode for the synchronization line 3:
tsplink.TRIG_RISINGM
tsplink.trigger [3] = 8
2600S-901-01 Rev. C / January 2008
Return to
12-113
Series 2600 System SourceMeter® Instruments Reference Manual
Section 12: Instrument Control Library
tsplink.trigger[N].mode
• (Firmware version 1.4.0 and higher) Use
tsplink.TRIG_RISINGA
or
tsplink.TRIG_RISINGM
modes.