Display.waitkey() - Keithley 2651A Reference Manual

High power system sourcemeter instrument
Hide thumbs Also See for 2651A:
Table of Contents

Advertisement

Section 7: Command reference
Usage
triggered = display.trigger.wait(timeout)
triggered
timeout
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)
Also see
display.trigger.clear()

display.waitkey()

This function captures the key code value for the next front-panel action.
Type
TSP-Link accessible
Function
Yes
Usage
keyCode = display.waitkey()
keyCode
Details
After you send this function, script execution pauses until a front-panel action (for example, pressing a key or the
navigation wheel
returned.
7-74
Model 2651A High Power System SourceMeter® Instrument Reference Manual
true: Trigger was detected
false: The operation timed out
Timeout in seconds.
(on page 7-72)
Affected by
See Details for more information
, or turning the navigation wheel
Waits up to five seconds for the TRIG key to be
pressed. If TRIG is pressed within 5 seconds, the
output is true. If not, the output is false.
Where saved
Default value
). After the action, the value of the key (or action) is
2651A-901-01 Rev. A / March 2011

Advertisement

Table of Contents
loading

Table of Contents