
Series 3700 System Switch/Multimeter Reference Manual
Section 9
:
Instrument Control Library (ICL)
Document Number: 3700S-901-01 Rev. A / August 2007
9-63
display.prompt
Function
Prompts the user to enter a parameter from the front panel.
Usage
There are four ways to use this function:
value = display.prompt(format, units, help)
value = display.prompt(format, units, help, default)
value = display.prompt(format, units, help, default, min)
value = display.prompt(format, units, help, default, min, max)
format:
Define format string for the input field using zeros (0), the decimal point (.),
polarity sign (+), and exponent (E).
units
: Set units text string for top line (8 characters maximum).
help
: Text string to display on the bottom line (32 characters maximum).
default
: Set the default value for the parameter.
min
: Set the minimum input value that can be set.
max
: Set the maximum input value that can be set.
Remarks
This function will create an editable input field at the present cursor position, and an
input prompt message on the bottom line. Example of a displayed input field and
prompt:
0.00V
Input 0 to +2V
The format configures the editable input field. Four examples for the format:
+0.00
00
+00.0000E+00
0.0
Value field:
+:
Include a plus sign for positive/negative value entry. Not including the "+" sign
prevents negative value entry.
0:
Defines the digit positions for the value. Up to six `0's can be used for the value
(as shown above in the third and fourth usage examples). If used, include the
decimal point (.) where needed for the value.
Exponent field (optional):
E:
Include the "E" for exponent entry.
+:
Include a "+" sign for positive/negative exponent entry. Do not include the "+"
sign to prevents negative value entry.
0
: Defines the digit positions for the exponent.