4-12 Basic Operation Series 2600 System SourceMeters Reference Manual
2600S-901-01 Rev. A / May 2006 Return to Section 4 topics
Remote triggering
Remote trigger commands
Trigger commands are listed in Table 4-6. See Section 12 for more details.
The trigger event detector remembers if an event has been detected since the last
trigger.wait call. The trigger.clear() command clears the trigger's
event detector and discards the previous history of command interface trigger
events.
The trigger.wait function will wait timeout seconds for a GPIB GET
command (see
Section 11) or a *TRG message (see Appendix C) 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 re-
armed regardless of the number of events detected.
Table 4-6
Trigger commands
Command Description
trigger.clear()
triggered = trigger.wait(timeout)
Clear pending triggers.
Wait timeout seconds for GET or *TRG trigger.
Remote trigger example
The example below clears triggers and then enables a 30 second timeout to wait
for a GET or *TRG trigger.
smua.reset() --Restore 2600 defaults.
triggered = trigger.wait(30) --Wait 30s for GET or *TRG.
smua.source.output =smua.OUTPUT_ON --Turn on output.
*TRG --Trigger reading.
reading = smua.measure.v() --Get voltage reading.