Section 9: TSP command reference Series 2600B System SourceMeter® instrument Reference Manual
9-86 2600BS-901-01 Rev. F/August 2021
triggered = display.trigger.wait(5)
print(triggered)
Waits up to five seconds for the TRIG key to
be pressed. If TRIG is pressed within five
seconds, the output is true. If not, the
output is false.
Also see
display.trigger.clear() (on page 9-84)
display.waitkey()
This function captures the key code value for the next front-panel action.
Usage
keyCode = display.waitkey()
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), you can call the exit() function to abort the script.