Section 8: TSP command reference Model 2461 Interactive SourceMeter® Instrument Reference Manual8-242 2461-901-01 A/November 2015trigger.digin[N].edgeThis attribute sets the edge used by the trigger event detector on the given trigger line.Type TSP-Link accessible Affected by Where saved Default valueAttribute (RW) Yes Restore configurationInstrument resetPower cycleConfiguration script trigger.EDGE_FALLINGUsagedetectedEdge = trigger.digin[N].edgetrigger.digin[N].edge = detectedEdgedetectedEdge 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 valuesN Digital I/O trigger line (1 to 6)DetailsThis command sets the logic on which the trigger event detector and the output trigger generatoroperate on the specified trigger line.To directly control the line state, set the mode of the line to digital and use the write command. Whenthe digital line mode is set for open drain, the edge settings assert a TTL low-pulse.Trigger mode valuesValue Descriptiontrigger.EDGE_FALLING Detects falling-edge triggers as input when the line is configured as an inputor open draintrigger.EDGE_RISING Detects rising-edge triggers as input when the line is configured as an opendraintrigger.EDGE_EITHER Detects rising- or falling-edge triggers as input when the line is configured asan input or open drainExampledigio.line[4].mode = digio.MODE_TRIGGER_INtrigger.digin[4].edge = trigger.EDGE_RISINGSets the trigger mode for digital I/O line 4 todetect a rising-edge trigger as an input.Also seedigio.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)