High Voltage SourceMeter Instrument Reference Manual Section 14: TSP command refe
2470-901-01 Rev. A / May 2019 14-63
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
Usage
buttonReturn = display.input.prompt(buttonSet, "dialogTitle")
Indicates which button was pressed:
OK: display.BUTTON_OK
Cancel: display.BUTTON_CANCEL
Yes: display.BUTTON_YES
No:
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
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.