Keithley 2651A Reference Manual page 365

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

Advertisement

Model 2651A High Power System SourceMeter® Instrument Reference Manual
Usage
keyCode = display.getlastkey()
keyCode
Details
A history of the key code for the last pressed front-panel key is maintained by the instrument. When the
instrument is turned on, or when it is transitioning from local to remote operation, the key code is set to 0
(display.KEY_NONE).
Pressing the EXIT (LOCAL) key normally aborts a script. To use this function with the EXIT (LOCAL) key,
display.locallockout must be used.
The table below lists the keyCode value for each front-panel action.
Key codes
Value
0
65
68
69
70
71
72
73
75
77
78
79
80
81
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.
The OUTPUT ON/OFF control cannot be tracked by this function.
Example
key = display.getlastkey()
print(key)
Also see
display.locallockout
display.sendkey()
2651A-901-01 Rev. A / March 2011
A returned value that represents the last front-panel key pressed. See Details for
more information.
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 7-64)
(on page 7-68)
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
On the front panel, press the MENU key and
then send the code to the left. This retrieves the
key code for the last pressed key.
Output:
6.800000e+01
Section 7: Command reference
7-57

Advertisement

Table of Contents
loading

Table of Contents