Keithley 3700 series Reference Manual page 201

System switch/multimeter
Hide thumbs Also See for 3700 series:
Table of Contents

Advertisement

Series 3700 System Switch/Multimeter Reference Manual
display.getlastkey
Function
Usage
Remarks
Also see
Example
Document Number: 3700S-901-01 Rev. A / August 2007
Retrieves the keycode for the last pressed key.
key = display.getlastkey()
This read-only function returns the keycode for the last pressed key. key returns one of
the following values:
Key List
display.KEY_RIGHT
display.KEY_LEFT
display.WHEEL_LEFT
display.WHEEL_RIGHT
display.KEY_RANGEUP
display.KEY_FUNC
display.KEY_REL
display.KEY_MENU
display.KEY_CLOSE
display.KEY_SLOT
display.KEY_RUN
display.KEY_DISPLAY
display.KEY_AUTO
display.KEY_FILTER
display.KEY_EXIT
display.KEY_STORE
display.KEY_SCAN
A history of the keycode for the last pressed front panel key is maintained by the Series
3700. When the instrument is powered-on, (or when transitioning from local to remote),
the keycode is set to 0 (display.KEY_NONE).
Pressing the EXIT/LOCAL key normally aborts a script. In order to use this function
with the EXIT key, display.locallockout must be used.
display.sendkey
(on page 9-65),
On the front panel, press the MENU key and then send the following code:
key = display.getlastkey()
print(key)
Output: 6.800000e+01
Section 9: Instrument Control Library (ICL)
Value
Key List
103
display.KEY_INSERT
104
display.KEY_OPENALL
107
display.KEY_CONFIG
114
display.KEY_RANGEDOWN
65
display.KEY_ENTER
66
display.KEY_REC
67
display.KEY_DMM
68
display.KEY_DELETE
69
display.KEY_STEP
70
display.KEY_CHAN
71
display.KEY_RATE
72
display.KEY_LIMIT
73
display.KEY_TRIG
74
display.KEY_OPEN
75
display.KEY_PATT
76
display.KEY_LOAD
77
display.WHEEL_ENTER
display.locallockout
(on page 9-61)
Value
78
79
80
81
82
83
84
85
86
87
90
91
92
93
94
95
97
9-57

Advertisement

Table of Contents
loading

Table of Contents