Keithley SourceMeter 2600 Series Reference Manual page 314

Table of Contents

Advertisement

12-40 Instrument Control Library
display.waitkey
Function
Captures the keycode value for the next key press.
Usage
key = display.waitkey()
• After sending this function, script execution will hold up until a front panel key or the
Remarks
wheel is pressed, or the wheel is turned to the right or left. After pressing a control or
turning the wheel, the keycode value for that key will be returned. The chart shown
below lists the keycode value for each front panel control. The controls are listed
alphabetically.
• If the EXIT key is pressed while this function is waiting for a keypress, the script will
not be aborted.
• A typical use for this function is to prompt the user to press EXIT to abort the script
or press any other key to continue. If keycode value 75 is returned (EXIT key
pressed), then the
for this process is provided in
Control
AUTO
CONFIG
CURSOR (left)
CURSOR (right) 103
DIGITS (A)
DIGITS (B)
DISPLAY
ENTER
EXIT
FILTER (A)
FILTER (B)
LIMIT (A)
The above chart lists the numeric keycode values for the front panel controls. The
keycode value identifiers are listed in the documentation for
display.KEY_RUN
Details
See
"Capturing key-press
Also see
display.sendkey, display.settext,
Example
The following code will hold up script execution and wait for the operator to press a key
or the wheel, or rotate the wheel:
key = display.waitkey()
print(key)
Output:
The above output (86) indicates that the MEAS (A) key was pressed.
2600S-901-01 Rev. A / May 2006
Series 2600 System SourceMeters Reference Manual
function can be called to abort the script. Sample code
exit()
Keycode
Control
73
LIMIT (B)
80
LOAD
104
MEAS (A)
MEAS (B)
87
MENU
84
MODE (A)
72
MODE (B)
82
OUTPUT (A)
75
OUTPUT (B)
77
RANGE (down)
74
RANGE (up)
93
RECALL
is the identifier for the RUN key)
codes" on
8.600000e+01
Return to
"Capturing key-press
codes" on
Keycode
90
95
86
83
68
69
66
88
96
81
65
85
Section
14.
display.getlastkey
Section 12 topics
page
14-17.
Control
Keycode
REL (A)
70
REL (B)
67
RUN
71
SPEED (A)
94
SPEED (B)
91
SRC (A)
79
SRC (B)
76
STORE
78
TRIG
92
Wheel (press)
97
Wheel (left)
107
Wheel (right)
114
display.sendkey
(e.g.,

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents