
Section 8: TSP command reference
Model 2461 Interactive SourceMeter® Instrument Reference Manual
8-242
2461-901-01 A/November 2015
trigger.digin[N].edge
This attribute sets the edge used by the trigger event detector 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:
•
Detect falling-edge triggers as inputs:
trigger.EDGE_FALLING
•
Detect rising-edge triggers as inputs:
trigger.EDGE_RISING
•
Detect either falling or rising-edge triggers as inputs:
trigger.EDGE_EITHER
•
See
Details
for descriptions of values
N
Digital I/O trigger line (1 to 6)
Details
This command sets the logic on which the trigger event detector and the output trigger generator
operate on the specified trigger line.
To directly control the line state, set the mode of the line to digital and use the write command. When
the digital line mode is set for open drain, the edge settings assert a TTL low-pulse.
Trigger mode values
Value
Description
trigger.EDGE_FALLING
Detects falling-edge triggers as input when the line is configured as an input
or open drain
trigger.EDGE_RISING
Detects rising-edge triggers as input when the line is configured as an open
drain
trigger.EDGE_EITHER
Detects rising- or falling-edge triggers as input when the line is configured as
an input or open drain
Example
digio.line[4].mode = digio.MODE_TRIGGER_IN
trigger.digin[4].edge = trigger.EDGE_RISING
Sets the trigger mode for digital I/O line 4 to
detect a rising-edge trigger as an input.
Also see
(on page 8-50)
(on page 8-52)
(on page 8-54)
Digital I/O port configuration
(on page 3-87)
(on page 8-241)