Tektronix KEITHLEY SourceMeter 2606B Reference Manual page 441

Table of Contents

Advertisement

Section 15: TSP command reference
display.getlastkey()
This function retrieves the key code for the last pressed key.
Type
TSP-Link accessible
Function
Yes
Usage
keyCode = display.getlastkey()
keyCode
Details
A history of the key code for the last pressed virtual 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, you must set display.locallockout to display.LOCK.
The table below lists the keyCode value for each virtual front-panel action.
Key codes
Value
Key list
display.KEY_NONE
0
display.KEY_RANGEUP
65
display.KEY_RELB
67
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_FILTERB
74
display.KEY_EXIT
75
display.KEY_SRCB
76
display.KEY_FILTERA
77
display.KEY_STORE
78
display.KEY_SRCA
79
display.KEY_CONFIG
80
display.KEY_RANGEDOWN
81
When using this function, use built-in constants such as display.KEY_RIGHT (rather than the
numeric value of 103). This allows for better forward compatibility with firmware revisions.
15-68
Model 2606B System SourceMeter® Instrument Reference Manual
Affected by
Where saved
A returned value that represents the last virtual front-panel key pressed; see Details
for more information
Default value
Value
Key list
display.KEY_ENTER
82
display.KEY_MEASB
83
display.DIGITSB
84
display.KEY_RECALL
85
display.KEY_MEASA
86
display.KEY_DIGITSA
87
display.KEY_LIMITB
90
display.KEY_SPEEDB
91
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
2606B-901-01 Rev. C November 2021

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the KEITHLEY SourceMeter 2606B and is the answer not in the manual?

Table of Contents