EasyManuals Logo

Keithley 2651A Reference Manual

Keithley 2651A
800 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #365 background imageLoading...
Page #365 background image
Model 2651A High Power System SourceMeter® Instrument Reference Manual Section 7: Command reference
2651A-901-01 Rev. A / March 2011 7-57
Usage
keyCode = display.getlastkey()
keyCode
A returned value that represents the last front-panel key pressed. See Details for
more information.
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 Key list
Value Key list
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
87 display.KEY_DIGITSA
70 display.KEY_RELA
92 display.KEY_TRIG
71 display.KEY_RUN
93 display.KEY_LIMITA
72 display.KEY_DISPLAY
94 display.KEY_SPEEDA
73 display.KEY_AUTO
95 display.KEY_LOAD
75 display.KEY_EXIT
97 display.WHEEL_ENTER
77 display.KEY_FILTERA
103 display.KEY_RIGHT
78 display.KEY_STORE
104 display.KEY_LEFT
79 display.KEY_SRCA
107 display.WHEEL_LEFT
80 display.KEY_CONFIG
114 display.WHEEL_RIGHT
81 display.KEY_RANGEDOWN
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.
The OUTPUT ON/OFF control cannot be tracked by this function.
Example
key = display.getlastkey()
print(key)
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
Also see
display.locallockout (on page 7-64)
display.sendkey()
(on page 7-68)

Table of Contents

Other manuals for Keithley 2651A

Questions and Answers:

Question and Answer IconNeed help?

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

Keithley 2651A Specifications

General IconGeneral
BrandKeithley
Model2651A
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals