Tektronix Keithley 2651A Reference Manual page 209

High power system sourcemeter instrument
Table of Contents

Advertisement

Model 2651A High Power System SourceMeter® Instrument Reference Manual
display.getlastkey()
The display.getlastkey() function immediately returns 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 returns the key code value (see the following table). A value of 0
(display.KEY_NONE) indicates that the key code history had been cleared.
Key codes
Value
Key list
display.KEY_NONE
0
display.KEY_RANGEUP
65
display.KEY_MENU
68
display.KEY_MODEA
69
display.KEY_RELA
70
display.KEY_RUN
71
display.KEY_DISPLAY
72
display.KEY_AUTO
73
display.KEY_EXIT
75
display.KEY_FILTERA
77
display.KEY_STORE
78
display.KEY_SRCA
79
display.KEY_CONFIG
80
display.KEY_RANGEDOWN
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 pauses and waits for the operator to
press a front-panel key. For example, if the MENU key is pressed, the function returns the value 68,
which is the key code for that key. The key code values are the same as listed in
(on page 7-75).
2651A-901-01 Rev. C October 2021
Section 3: Functions and features
Value
Key list
display.KEY_ENTER
82
display.KEY_RECALL
85
display.KEY_MEASA
86
display.KEY_DIGITSA
87
display.KEY_TRIG
92
display.KEY_LIMITA
93
display.KEY_SPEEDA
94
display.KEY_LOAD
95
display.WHEEL_ENTER
97
display.KEY_RIGHT
103
display.KEY_LEFT
104
display.WHEEL_LEFT
107
display.WHEEL_RIGHT
114
display.getlastkey()
3-91

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Keithley 2651A and is the answer not in the manual?

Table of Contents