Section 7: Command reference
Model 2651A High Power System SourceMeter® Instrument Reference Manual
7-74
2651A-901-01 Rev. A / March 2011
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 5 seconds, the
output is
true
. If not, the output is
false
.
Also see
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.