![background image](http://html2.mh-extra.com/html/keithley/2657a/2657a_reference-manual_4007750383.webp)
Section 7: TSP command reference
Model 2657A High Power System SourceMeter® Instrument Reference Manual
7-70
2657A-901-01 Rev. B/December 2012
Details
Set
display.locallockout
to
display.LOCK
to prevent the user from interrupting remote operation by
pressing the EXIT (LOCAL) key.
Set this attribute to
display.UNLOCK
to allow the EXIT (LOCAL) key to interrupt script or remote operation.
Example
display.locallockout = display.LOCK
Disables the front-panel EXIT (LOCAL) key.
Also see
None
display.menu()
This function presents a menu on the front panel display.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
selection
= display.menu(
name
,
items
)
selection
Name of the variable that holds the selected menu item
name
Menu name to display on the top line
items
Menu items to display on the bottom line
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
Содержание 2657A
Страница 3: ......