
Series 3700A System Switch/Multimeter Reference Manual
Section 11: TSP command reference
3700AS-901-01 Rev. D/June 2018
11-143
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
67
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_RUN
66
display.KEY_DELETE
84
display.KEY_TRIG
67
display.KEY_EXIT
86
display.KEY_STEP
69
display.KEY_CLOSE
87
display.KEY_CHAN
70
display.KEY_SLOT
90
display.KEY_INSERT
72
display.KEY_DISPLAY
91
display.KEY_MENU
74
display.KEY_ENTER
93
display.KEY_OPEN
76
display.KEY_LOAD
94
display.KEY_PATT
77
display.KEY_SCAN
97
display.WHEEL_ENTER
79
display.KEY_OPENALL
107
display.KEY_LEFT
80
display.KEY_CONFIG
114
display.KEY_RIGHT
When using this function, use built-in constants, such as
display.KEY_STEP
(rather than the
numeric value of
86
). 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.60001
It indicates that the STEP key was pressed.
Also see
(on page 9-19)
(on page 11-129)
(on page 11-139)
(on page 11-141)