![background image](http://html2.mh-extra.com/html/keithley/sourcemeter-2601/sourcemeter-2601_reference-manual_4018913289.webp)
2600S-901-01 Rev. C / January 2008
Return to
12-29
Series 2600 System SourceMeter® Instruments Reference Manual
Section 12: Instrument Control Library
display.locallockout
Attribute
LOCAL
key disabled.
Usage
lockout = display.locallockout
-- Reads state of lockout.
display.locallockout = lockout
-- Writes state of lockout.
Set
lockout
to one of the following values:
0
or
display.UNLOCK
Unlocks
LOCAL
key.
1
or
display.LOCK
Locks out
LOCAL
key.
Remarks
Setting
display.locallockout
to
display.LOCK
prevents the user from interrupting
remote operation by pressing the
LOCAL
key. Set this attribute to
display.UNLOCK
to
allow the
LOCAL
key to abort script/remote operation.
Details
See “
” in
.
Example
Disables the front panel
LOCAL
key:
display.locallockout = display.LOCK
display.menu
Function
Presents a menu on the front panel display.
Usage
selection = display.menu(name, items)
name
Menu name to display on the top line.
items
Menu items to display on the bottom line.
Remarks
• 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
white space. The
name
for the top line is limited to 20 characters.
• After sending this command, script execution waits for the operator to select a menu
item. An item is selected by rotating the wheel (or using the cursor keys) to place the
blinking cursor on the item, and then pressing the wheel (or
ENTER
key). When an item
is selected, the text of that selection is returned.
• Pressing the
EXIT
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.
Details
See “
” in
.
Example
Displays a menu with three menu items. If the second menu item is selected,
selection
will be given the value
Test2
:
selection = display.menu("Sample Menu", "Test1 Test2 Test3")
print(selection)
Output:
Test2
display.numpad
Attribute
This attribute controls whether the front panel keys act as a numeric keypad during value
entry.
Usage
X = display.numpad
Read the numpad option.
display.numpad = X
Write the numpad option.
where X is one of:
1 or
display.ENABLE
Enable the numeric keypad feature.
0 or
display.DISABLE
Disable the numeric keypad feature.
Remarks
The numeric keypad feature is only available when editing a numeric value and the EDIT
annunciator is lit.
Example
Turn on the numeric keypad feature:
display.numpad = 1