12-40 Instrument Control Library
Series 2600 System SourceMeters Reference Manual
2600S-901-01 Rev. A / May 2006
Return to
display.waitkey
Function
Captures the keycode value for the next key press.
Usage
key = display.waitkey()
Remarks
• After sending this function, script execution will hold up until a front panel key or the
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
exit()
function can be called to abort the script. Sample code
for this process is provided in “
.
Control
Keycode
Control
Keycode
Control
Keycode
AUTO
73
LIMIT (B)
90
REL (A)
70
CONFIG
80
LOAD
95
REL (B)
67
CURSOR (left)
104
MEAS (A)
86
RUN
71
CURSOR (right) 103
MEAS (B)
83
SPEED (A)
94
DIGITS (A)
87
MENU
68
SPEED (B)
91
DIGITS (B)
84
MODE (A)
69
SRC (A)
79
DISPLAY
72
MODE (B)
66
SRC (B)
76
ENTER
82
OUTPUT (A)
88
STORE
78
EXIT
75
OUTPUT (B)
96
TRIG
92
FILTER (A)
77
RANGE (down)
81
Wheel (press)
97
FILTER (B)
74
RANGE (up)
65
Wheel (left)
107
LIMIT (A)
93
RECALL
85
Wheel (right)
114
The above chart lists the numeric keycode values for the front panel controls. The
keycode value identifiers are listed in the documentation for
(e.g.,
display.KEY_RUN
is the identifier for the
RUN
key)
Details
See “
” on
Also see
,
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:
8.01
The above output (86) indicates that the
MEAS
(A) key was pressed.
Содержание SourceMeter 2600 Series
Страница 507: ...AppendixA Specifications Appendix A topics Model 2600S Specifications page A 2 2600S 901 01 Rev A May 2006...
Страница 575: ...AppendixF DisplayCharacterCodes Appendix F topics Introduction page F 2...
Страница 592: ......
Страница 593: ......