12-20
Return to
2600S-901-01 Rev. C / January 2008
Section 12: Instrument Control Library
Series 2600 System SourceMeter® Instruments Reference Manual
digio.trigger[N].mode
Replace N with the number of the digital I/O trigger line: 1 to
14.
Attribute
The trigger operation and detection mode
.
Usage
trig_mode = digio.trigger[N].mode
digio.trigger [N].mode = mode
N
The trigger line number.
trig_mode
The active trigger mode.
mode
Selects the current trigger mode.
Choose one the following values for mode:
0
or
digio.TRIG_BYPASS
Allows direct control of the line.
1
or
digio.TRIG_FALLING
Detects falling edge input triggers.
Asserts TTL-low pulse as an output trigger.
2
or
digio.TRIG_RISING
If the programmed state of the line is high, the
digio.TRIG_RISING
mode behaves similar to
digio.TRIG_RISINGA
.
If the programmed state of the line is low, the
digio.TRIG_RISING
mode behaves similar to
digio.TRIG_RISINGM.
3
or
digio.TRIG_EITHER
Detects rising or falling edge triggers.
Asserts a TTL-low trigger pulse.
4
or
digio.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
digio.TRIG_SYNCHRONOUS
Detects the falling edge input triggers and
automatically latches and drive the trigger
line low.
Asserts a TTL-low pulse as an output trigger.
6
or
digio.TRIG_SYNCHRONOUSM
Detects rising edge triggers as an input.
Asserts a low TTL-low pulse for output.
7
or
digio.TRIG_RISINGA
Detects Rising Edge triggers as an input.
Asserts a low TTL-low pulse as an output.
8
or
digio.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
digio.TRIG_BYPASS
.
• To control the line state, use the
digio.TRIG_BYPASS
mode with the
digio.writebit
and the
digio.writeport
commands.
• (Firmware version prior to 1.4.0 only) Use the
digio.TRIG_SYNCHRONOUS
mode for
backward firmware compatibility.
• (Firmware version 1.4.0 and higher) Use
digio.TRIG_SYNCHRONOUSA
or
digio.TRIG_SYNCHRONOUSM
modes.
• (Firmware version prior to 1.4.0 only) Use the
digio.TRIG_RISING
mode for
backward compatibility.
• (Firmware version 1.4.0 and higher) Use
digio.TRIG_RISINGA
or
digio.TRIG_RISINGM
modes.
Details
See “
,
, and
.
Example
-- Sets the trigger mode for the I/O line 7 to digio.TRIG_RISINGM.
digio.trigger [7] = 8