14: TSP command reference 2470 High Voltage SourceMeter Instrument
14-64 2470-901-01 Rev. A / May 2019
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)
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
display.input.number() (on page 14-59)
display.input.option() (on page 14-61)
display.input.string() (on page 14-64)
display.input.string()
This function allows you to create a dialog box that requests text from the user through the front-panel display.
Type TSP-Link accessible
Affected by Where saved Default value
Usage
textEntered = display.input.string("dialogTitle")
textEntered = display.input.string("dialogTitle", textFormat)
The text that is entered from the front-panel display; nil if Cancel is pressed on the
keypad
A string that contains the text to be displayed as the title of the dialog box on the
front-panel display; up to 32 characters
The format of the entered text:
ï‚§ Allow any characters: display.SFORMAT_ANY (default)
ï‚§ Allow both upper and lower case letters (no special characters):
display.SFORMAT_UPPER_LOWER
ï‚§ Allow only upper case letters: display.SFORMAT_UPPER
ï‚§ Allow both upper and lower case letters, no special characters, no spaces, and
limited to 32 characters: display.SFORMAT_BUFFER_NAME