Keithley 2651A Reference Manual page 189

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

Advertisement

Section 3: Functions and features
display.getlastkey()
The display.getlastkey() function is used to immediately return the key code for the last
pressed key. The following programming example illustrates how to display the last key pressed:
key = display.getlastkey()
print(key)
The above code will return the key code value (see the following table). Remember that a value of 0
(display.KEY_NONE) indicates that the key code history had been cleared.
Key codes
Value
0
65
68
69
70
71
72
73
75
77
78
79
80
81
The OUTPUT ON/OFF control (for a source-measure unit (SMU)) cannot be tracked by this function.
display.waitkey()
The display.waitkey() function captures the key code value for the next key press:
key = display.waitkey()
After sending the display.waitkey() function, the script will pause and wait for the operator to
press a front-panel key. For example, if the MEAS key is pressed, the function will return the value
86, which is the key code for that key. The key code values are the same as listed in
display.getlastkey()
3-82
Model 2651A High Power System SourceMeter® Instrument Reference Manual
Key list
display.KEY_NONE
display.KEY_RANGEUP
display.KEY_MENU
display.KEY_MODEA
display.KEY_RELA
display.KEY_RUN
display.KEY_DISPLAY
display.KEY_AUTO
display.KEY_EXIT
display.KEY_FILTERA
display.KEY_STORE
display.KEY_SRCA
display.KEY_CONFIG
display.KEY_RANGEDOWN
(on page 3-82).
Value
Key list
82
display.KEY_ENTER
85
display.KEY_RECALL
86
display.KEY_MEASA
87
display.KEY_DIGITSA
92
display.KEY_TRIG
93
display.KEY_LIMITA
94
display.KEY_SPEEDA
95
display.KEY_LOAD
97
display.WHEEL_ENTER
103
display.KEY_RIGHT
104
display.KEY_LEFT
107
display.WHEEL_LEFT
114
display.WHEEL_RIGHT
NOTE
2651A-901-01 Rev. A / March 2011

Advertisement

Table of Contents
loading

Table of Contents