2606B System SourceMeter® Instrument Reference Manual
Section 7: TSP command reference
2606B-901-01 Rev. B / May 2018
7-81
display.trigger.wait()
This function waits for the TRIG key on the virtual front panel to be pressed.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
triggered
= display.trigger.wait(
timeout
)
triggered
true
: Trigger was detected
false
: The operation timed out
timeout
Timeout in seconds
Details
If the trigger key was previously pressed and one or more trigger events were detected, this function
returns immediately.
After waiting for a trigger with this function, the event detector is automatically reset and rearmed.
This is true regardless of the number of events detected.
Use the
display.trigger.clear()
call to clear the trigger event detector.
Example
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
(on page 7-79)
display.waitkey()
This function captures the key code value for the next virtual 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 virtual 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 virtual front-panel action, the
script is not aborted.