Series 2600B System SourceMeter® Instrument Reference Manual
Section 7: TSP command reference
2600BS-901-01 Rev. B / May 2013
7-81
display.waitkey()
This function captures the key code value for the next front-panel action.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
keyCode
= display.waitkey()
keyCode
See
Details
for more information
Details
After you send this function, script execution pauses until a front-panel action (for example, pressing a key or the
navigation wheel
, or turning the navigation wheel
). After the action, the value of the key (or action) is
returned.
If the EXIT (LOCAL) key is pressed while this function is waiting for a front-panel action, the script is not aborted.
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),
the
exit()
function can be called to abort the script.
The table below lists the
keyCode
value 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 will allow for better forward compatibility with firmware revisions.
Содержание System SourceMeter 2601B
Страница 841: ......