Series 2600 System SourceMeters Reference Manual
Display Operations 14-9
Return to
2600S-901-01 Rev. A / May 2006
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:
menu
is the name of the menu (string up to 20 characters, including
spaces). The
items
string is made up of one or more menu items, where
each item must be separated by whitespace.
When the
display.menu
function is executed, script execution will wait for 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
nil
. The script can be aborted by calling the
exit
function when
nil
is
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
Содержание SourceMeter 2600 Series
Страница 507: ...AppendixA Specifications Appendix A topics Model 2600S Specifications page A 2 2600S 901 01 Rev A May 2006...
Страница 575: ...AppendixF DisplayCharacterCodes Appendix F topics Introduction page F 2...
Страница 592: ......
Страница 593: ......