Keithley SourceMeter 2600 Series Reference Manual page 455

Table of Contents

Advertisement

Series 2600 System SourceMeters Reference Manual
Input prompting
Display messaging can also be used along with front panel controls to make a
user script interactive. For an interactive script, input prompts are displayed so
that the operator can perform a prescribed action using the front panel controls.
While displaying an input prompt, the test will pause and wait for the operator to
perform the prescribed action from the front panel.
Menu
A user-defined menu can be presented on the display. The menu consists of the
menu name on the top line, and a selectable list of menu items on the bottom line.
The following function is used to define a menu:
display.menu(menu, items)
where:
When the
operator to select one of the menu items. Rotate the Wheel to place the blinking
cursor on the desired menu item. Items that don't fit in the display area will be
displayed by rotating the wheel to the right. With the cursor on the desired menu
item, press the Rotary Wheel (or the Enter key) to select it.
Pressing the EXIT key will not abort the script while the menu is displayed, but it will
return
returned.
Example: The menu for the following code will present the operator with the
choice of two menu items; Test1 or Test2. If Test1 is selected, the message
"Running Test1" will be displayed. If Test2 is selected, the message "Running
Test2" will be displayed.
display.clear()
menu = display.menu("Sample Menu", "Test1 Test2")
if (menu == "Test1") then
display.settext("Running Test1")
else display.settext("Running Test2")
end
is the name of the menu (string up to 20 characters, including
menu
spaces). The
items
each item must be separated by whitespace.
function is executed, script execution will wait for the
display.menu
. The script can be aborted by calling the
nil
Return to
string is made up of one or more menu items, where
exit
Section 14 topics
Display Operations 14-9
function when
nil
2600S-901-01 Rev. A / May 2006
is

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents