Interactive SourceMeter® Instrument Reference Manual Section 8:
2461-901-01 A/November 2015 8-57
Example
removePrompt3 = display.prompt(display.BUTTONS_NONE, "This prompt will disappear
in 3 seconds")
delay(3)
display.delete(removePrompt3)
This example displays a prompt that is automatically removed in three seconds:
Also see
display.prompt() (on page 8-64)
display.input.number()
This function allows you to create a prompt that requests a number from the user on the front-panel display.
Type TSP-Link accessible
Affected by Where saved Default value
Usage
numberEntered = display.input.number(dialogTitle)
numberEntered = display.input.number(dialogTitle, numberFormat)
numberEntered = display.input.number(dialogTitle, numberFormat, defaultValue)
numberEntered = display.input.number(dialogTitle, numberFormat, defaultValue,
minimumValue)
numberEntered = display.input.number(dialogTitle, numberFormat, defaultValue,
minimumValue, maximumValue)
The number 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; can be up to 32 characters
The format of the displayed number:
• Allow integers (negative or positive) only: display.NFORMAT_INTEGER
(default)
• Allow decimal values: display.NFORMAT_DECIMAL
• Display numbers in exponent format: display.NFORMAT_EXPONENT
• Display numbers with prefixes before the units symbol, such as n, m, or µ:
The value that is initially displayed in the displayed keypad
The lowest value that can be entered
The highest value that can be entered