Section 8: TSP command reference
Model DMM7510 7½ Digit Graphical Sampling Multimeter Reference Manual
8-64
DMM7510-901-01 Rev. B / May 2015
display.input.prompt()
This function allows you to create a prompt that accepts a user response from the front-panel display.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
buttonReturn
= display.input.prompt(
buttonSet
,
dialogTitle
)
buttonReturn
Indicates which button was pressed:
•
OK:
display.BUTTON_OK
•
Cancel:
display.BUTTON_CANCEL
•
Yes:
display.BUTTON_YES
•
No:
display.BUTTON_NO
buttonSet
The set of buttons to display:
•
OK button only:
display.BUTTONS_OK
•
Cancel button only:
display.BUTTONS_CANCEL
•
OK and Cancel buttons:
display.BUTTONS_OKCANCEL
•
Yes and No buttons:
display.BUTTONS_YESNO
•
Yes, No, and Cancel buttons:
display.BUTTONS_YESNOCANCEL
dialogTitle
A string that contains the text to be displayed as the title of the dialog box on the
front-panel display; up to 63 characters
Details
This command waits for a user response to the prompt. You can use the text to ask questions that
can be used to configure your test. The prompt is displayed until it has been responded to by the
user. You can only send one input prompt command at a time.
Example
result = display.input.prompt(display.BUTTONS_YESNO, "Do you want to display the
graph screen?")
if result == display.BUTTON_YES then
display.changescreen(display.SCREEN_GRAPH)
end
This displays the prompt "Do you want to display the graph screen?" on the front-panel display:
If the operator selects
Yes
, the graph screen is displayed.
Also see
(on page 8-60)
(on page 8-62)
(on page 8-65)