Interactive SourceMeter® Instrument Reference Manual Section 8:
2450-901-01 Rev. B/September 2013 8-171
trigger.digin[N].edge
This attribute sets the logic on which the trigger event detector and the output trigger generator operate on the
given trigger line.
Type TSP-Link accessible Affected by Where saved Default value
Instrument reset
Power cycle
Usage
detectedEdge = trigger.digin[N].edge
trigger.digin[N].edge = detectedEdge
The trigger logic value; see Details for values
Digital I/O trigger line (1 to 6)
Details
Set detectedEdge to one of the following values:
Trigger mode values
detectedEdge
Description
Detects falling-edge triggers as input.
Detects rising-edge triggers as input.
Detects rising- or falling-edge triggers as input.
When the line is programmed to be used as a trigger line (see the mode command), the output state of the I/O
line is controlled through the trigger logic specified by this command.
To directly control the line state, set the mode of the line to digital and use the write command. When in digital
mode with the line configured for open drain, the edge setting asserts a TTL low-pulse for output. When the
digital line mode is set for open drain, the edge settings assert a TTL low-pulse for output.
Example
digio.line[4].mode = digio.MODE_TRIGGER_IN
trigger.digin[4].edge = trigger.EDGE_RISING
Sets the trigger mode for I/O line 4 so it
detects a rising-edge trigger as an input.
Also see
digio.line[N].mode (on page 8-43)
digio.line[N].reset() (on page 8-44)
digio.writeport() (on page 8-46)
trigger.digin[N].clear() (on page 8-170)
Digital I/O port (on page 3-62)