
Section 7: TSP command reference
Model 2657A High Power System SourceMeter® Instrument Reference Manual
7-80
2657A-901-01 Rev. B/December 2012
display.trigger.wait()
This function waits for the TRIG key on the 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
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
Содержание 2657A
Страница 3: ......