
Section 7: TSP command reference
2606B System SourceMeter® Instrument Reference Manual
7-82
2606B-901-01 Rev. B / May 2018
A typical use for this function is to prompt the user to press the EXIT (LOCAL) key to abort the script
or press any other key to continue. For example, if the
keyCode
value
75
is returned (the EXIT
(LOCAL)
key was pressed), you can call the
exit()
function to abort the script.
The table below lists the
keyCode
values for each front panel action.
Key codes
Value
Key (or action)
Value
Key (or action)
0
display.KEY_NONE
83
display.KEY_MEASB
65
display.KEY_RANGEUP
84
display.KEY_DIGITSB
66
display.KEY_MODEB
85
display.KEY_RECALL
67
display.KEY_RELB
86
display.KEY_MEASA
68
display.KEY_MENU
87
display.KEY_DIGITSA
69
display.KEY_MODEA
88
display.KEY_OUTPUTA
70
display.KEY_RELA
90
display.KEY_LIMITB
71
display.KEY_RUN
91
display.KEY_SPEEDB
72
display.KEY_DISPLAY
92
display.KEY_TRIG
73
display.KEY_AUTO
93
display.KEY_LIMITA
74
display.KEY_FILTERB
94
display.KEY_SPEEDA
75
display.KEY_EXIT
95
display.KEY_LOAD
76
display.KEY_SRCB
96
display.KEY_OUTPUTB
77
display.KEY_FILTERA
97
display.WHEEL_ENTER
78
display.KEY_STORE
103
display.KEY_RIGHT
79
display.KEY_SRCA
104
display.KEY_LEFT
80
display.KEY_CONFIG
107
display.WHEEL_LEFT
81
display.KEY_RANGEDOWN
114
display.WHEEL_RIGHT
82
display.KEY_ENTER
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.
Example
key = display.waitkey()
print(key)
Pause script execution until the operator presses a key or the navigation wheel , or rotates the navigation
wheel.
If the output is:
8.01
It indicates that the MEAS(A) key was pressed.
Also see
(on page 3-76)
(on page 7-74)
(on page 7-76)