12-132 Instrument Control Library
Series 2600 System SourceMeters Reference Manual
2600S-901-01 Rev. A / May 2006
Return to
trigger
functions
The functions in this group are used to control triggering.
Function
Clears the command interface trigger event detector.
Usage
trigger.clear()
Remarks
The trigger event detector remembers if an event has been detected since the last
trigger.wait
call. This function clears the trigger’s event detector and discards the
previous history of command interface trigger events.
Details
See “
Also see
Function
Wait for a trigger event.
Usage
triggered = trigger.wait(timeout)
timeout
Maximum amount of time in seconds to wait for the trigger.
triggered
Returns
true
if a trigger was detected. Returns
false
if no
triggers were detected during the timeout period.
Remarks
• This function will wait up to
timeout
seconds for a GPIB GET command or a *TRG
message on the GPIB interface if that is the active command interface or a *TRG
message on the command interface for all other interfaces. If one or more of these
trigger events were previously detected, this function will return immediately.
• After waiting for a trigger with this function, the event detector will be automatically
reset and rearmed. This is true regardless of the number of events detected.
Details
See “
Also see
Example
Waits up to 10 seconds for a trigger:
triggered = trigger.wait(10)
print(triggered)
Output:
false
The above output indicates that no trigger was detected during the 10 second timeout.
trigger.clear
trigger.wait
Summary of Contents for SourceMeter 2600 Series
Page 575: ...AppendixF DisplayCharacterCodes Appendix F topics Introduction page F 2...
Page 592: ......
Page 593: ......