Model 2601B-PULSE System SourceMeter Instrument Reference Manual Section 11: TSP command reference
2601B-PULSE-901-01A April 2020 11-75
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.
When using this function, send built-in constants, such as display.KEY_RIGHT, rather than the
numeric value, such as 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.60000e+01
It indicates that the MEAS(A) key was pressed.
Also see
Capturing key-press codes (on page 3-26)
display.getlastkey() (on page 11-57)
display.sendkey() (on page 11-67)
display.settext() (on page 11-70)