Keithley 2601B Reference Manual page 217

2600b series system sourcemeter instrument
Hide thumbs Also See for 2601B:
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
Key list
0
display.KEY_NONE
65
display.KEY_RANGEUP
67
display.KEY_RELB
68
display.KEY_MENU
69
display.KEY_MODEA
70
display.KEY_RELA
71
display.KEY_RUN
72
display.KEY_DISPLAY
73
display.KEY_AUTO
75
display.KEY_EXIT
77
display.KEY_FILTERA
78
display.KEY_STORE
79
display.KEY_SRCA
80
display.KEY_CONFIG
81
display.KEY_RANGEDOWN
82
display.KEY_ENTER
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 MENU key is pressed, the function will return the value
68, which is the key code for that key. The key code values are the same as listed in
display.getlastkey()
3-82
Series 2600B System SourceMeter® Instrument Reference Manual
(on page 7-63).
Value
Key list
83
display.KEY_MEASB
84
display.KEY_DIGITSB
85
display.KEY_RECALL
86
display.KEY_MEASA
87
display.KEY_DIGITSA
90
display.KEY_LIMITB
91
display.KEY_SPEEDB
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
2600BS-901-01 Rev. B / May 2013

Advertisement

Table of Contents
loading

This manual is also suitable for:

2604b2614b2634b2635b2636b2602b ... Show all

Table of Contents