Section 11: TSP command reference Model 2601B-PULSE System SourceMeter Instrument Reference Manual
11-74 2601B-PULSE-901-01A April 2020
display.trigger.wait()
This function waits for the TRIG key on the front panel to be pressed.
Usage
triggered = display.trigger.wait(timeout)
true: Trigger was detected
false: The operation timed out
Details
If the trigger key was previously pressed and one or more trigger events were detected, this function
returns immediately.
After waiting for a trigger with this function, the event detector is automatically reset and rearmed.
This is true regardless of the number of events detected.
Use the display.trigger.clear() call to clear the trigger event detector.
Example
triggered = display.trigger.wait(5)
print(triggered)
Waits up to five seconds for the TRIG key to
be pressed. If TRIG is pressed within five
seconds, the output is true. If not, the
output is false.
Also see
display.trigger.clear() (on page 11-72)
display.waitkey()
This function captures the key code value for the next front-panel action.
Usage
keyCode = display.waitkey()
See Details for more information
Details
After you send this function, script execution pauses until a front-panel action (for example, pressing
a key or the navigation wheel , or turning the navigation wheel ). After the action, the value of the
key (or action) is returned.
If the EXIT (LOCAL) key is pressed while this function is waiting for a front-panel action, the script is
not aborted.