8: TSP command reference Model 2461 Interactive SourceMeter® Instrument
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
Configuration script trigger.EDGE_FALLING
Usage
detectedEdge = trigger.digin[N].edge
trigger.digin[N].edge = detectedEdge
• 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
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
Detects falling-edge triggers as input when the line is configured as an input
or open drain
Detects rising-edge triggers as input when the line is configured as an open
drain
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
digio.line[N].mode (on page 8-50)
digio.line[N].reset() (on page 8-52)
digio.writeport() (on page 8-54)
Digital I/O port configuration (on page 3-87)
trigger.digin[N].clear() (on page 8-241)