
Model 2450 Interactive SourceMeter® Instrument Reference Manual
Section 8: TSP command reference
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
Attribute (RW)
Yes
Restore configuration
Instrument reset
Power cycle
Configuration script
trigger.EDGE_FALLING
Usage
detectedEdge
= trigger.digin[
N
].edge
trigger.digin[
N
].edge =
detectedEdge
detectedEdge
The trigger logic value; see
Details
for values
N
Digital I/O trigger line (1 to 6)
Details
Set
detectedEdge
to one of the following values:
Trigger mode values
detectedEdge
Description
trigger.EDGE_FALLING
Detects falling-edge triggers as input.
trigger.EDGE_RISING
Detects rising-edge triggers as input.
trigger.EDGE_EITHER
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
(on page 8-43)
(on page 8-44)
(on page 8-46)
(on page 8-170)
(on page 3-62)