Model 2651A High Power System SourceMeter® Instrument Reference Manual Section 7: Command reference
2651A-901-01 Rev. A / March 2011 7-65
Details
The menu consists of the menu name string on the top line, and a selectable list of items on the bottom line. The
menu items must be a single string with each item separated by whitespace. The name for the top line is limited
to 20 characters.
After sending this command, script execution pauses for the operator to select a menu item. An item is selected
by rotating the navigation wheel
to place the blinking cursor on the item, and then pressing the navigation
wheel
(or the ENTER key). When an item is selected, the text of that selection is returned.
Pressing the EXIT (LOCAL) key will not abort the script while the menu is displayed, but it will return nil. The
script can be aborted by calling the exit function when nil is returned.
Example
selection = display.menu("Menu", "Test1 Test2 Test3")
print(selection)
Displays a menu with three
menu items. If the second menu
item is selected, selection is
given the value Test2.
Output:
Test2
Also see
None
display.numpad
This attribute controls whether the front panel keys act as a numeric keypad during value entry.
Type TSP-Link accessible Affected by Where saved Default value
Attribute (RW) Yes Instrument reset
Recall
Saved setups display.ENABLE
Usage
numericKeypad = display.numpad
display.numpad = numericKeypad
numericKeypad
Enable the numeric keypad feature (1 or display.ENABLE)
Disable the numeric keypad feature (0 or display.DISABLE)
Details
The numeric keypad feature is only available when editing a numeric value at the same time that the EDIT
indicator is lit.
Example
display.numpad = display.ENABLE
Turn on the numeric keypad feature.
Also see
Setting a value (on page 2-20)