Model 2651A High Power System SourceMeter® Instrument Reference Manual Section 7: Command reference
2651A-901-01 Rev. A / March 2011 7-75
If the EXIT (LOCAL) key is pressed while this function is waiting for a front-panel action, the script is not aborted.
The table below lists the keyCode values for each front panel action.
Key codes
Value Key (or action)
Value Key (or action)
0 display.KEY_NONE 82 display.KEY_ENTER
65 display.KEY_RANGEUP 85 display.KEY_RECALL
68 display.KEY_MENU 86 display.KEY_MEASA
69 display.KEY_MODEA 86 display.KEY_DIGITSA
70 display.KEY_RELA 88 display.KEY_OUTPUTA
71 display.KEY_RUN 92 display.KEY_TRIG
72 display.KEY_DISPLAY 93 display.KEY_LIMITA
73 display.KEY_AUTO 94 display.KEY_SPEEDA
75 display.KEY_EXIT 95 display.KEY_LOAD
77 display.KEY_FILTERA 97 display.WHEEL_ENTER
78 display.KEY_STORE 103 display.KEY_RIGHT
79 display.KEY_SRCA 104 display.KEY_LEFT
80 display.KEY_CONFIG 107 display.WHEEL_LEFT
81 display.KEY_RANGEDOWN 114 display.WHEEL_RIGHT
NOTE
When using this function, use built-in constants such as display.KEY_RIGHT (rather than the
numeric value of 103). This will allow for better forward compatibility with firmware revisions.
Example
key = display.waitkey()
print(key)
Pause script execution until the operator presses
a key or the navigation wheel
, or rotates the
navigation wheel
.
If the output is:
8.60000e+01
It indicates that the MEAS(A) key was pressed.
Also see
Capturing key-press codes (on page 3-81)
display.getlastkey()
(on page 3-82, on page 7-56)
display.sendkey()
(on page 7-68)
display.settext()
(on page 7-70)