Model 2450 Interactive SourceMeter® Instrument Reference Manual
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
Attribute (RW)
Yes
Usage
detectedEdge = trigger.digin[N].edge
trigger.digin[N].edge = detectedEdge
detectedEdge
N
Details
Set detectedEdge to one of the following values:
Trigger mode values
detectedEdge
trigger.EDGE_FALLING
trigger.EDGE_RISING
trigger.EDGE_EITHER
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
Also see
digio.line[N].mode
digio.line[N].reset()
digio.writeport()
trigger.digin[N].clear()
Digital I/O port
2450-901-01 Rev. B/September 2013
Affected by
Restore configuration
Instrument reset
Power cycle
The trigger logic value; see Details for values
Digital I/O trigger line (1 to 6)
(on page 8-43)
(on page 8-44)
(on page 8-46)
(on page 8-170)
(on page 3-62)
Where saved
Configuration script
Description
Detects falling-edge triggers as input.
Detects rising-edge triggers as input.
Detects rising- or falling-edge triggers as input.
Sets the trigger mode for I/O line 4 so it
detects a rising-edge trigger as an input.
Section 8: TSP command reference
Default value
trigger.EDGE_FALLING
8-171