![Keithley 708B Скачать руководство пользователя страница 328](http://html1.mh-extra.com/html/keithley/708b/708b_reference-manual_3961185328.webp)
Models 707B and 708B Switching Matrix Reference Manual
Section 7: Command reference
707B-901-01 Rev. A / August 2010
7-75
Quick Tip
You can create a script that defines several functions, and then use the
display.loadmenu.add()
command to add items that call those individual functions. This allows the operator to run tests from
the front panel.
Example 1
display.loadmenu.add("Test9", "Test9()")
Assume a user script named "Test9" has
been loaded into the runtime environment.
Adds the menu entry to the User menu to run
the script after loading.
Example 2
display.loadmenu.add(
"Test", "DUT1() beeper.beep(2, 500)",
display.SAVE)
Assume a script with a function named
“DUT1” has already been loaded into the
instrument, and the script has NOT been
saved in nonvolatile memory.
Now assume you want to add a test named
“Test” to the USER TESTS menu. You want
the test to run the function named “DUT1”
and sound the beeper. This example adds
“Test” to the menu, defines the code, and
then saves the
displayName
and code in
nonvolatile memory.
When “Test” is run from the front panel USER
TESTS menu, the function named “DUT1”
executes and the beeper beeps for two
seconds.
Now assume you turn off instrument power.
Because the script was not saved in
nonvolatile memory, the function named
“DUT1” is lost when you turn the instrument
on. When “Test” is again run from the front
panel, an error is generated because DUT1
no longer exists in the instrument as a
function.
Example 3
display.loadmenu.add("Part1",
"testpart([[Part1]], 5.0)", display.SAVE)
Adds an entry called “Part1” to the front panel
“USER TESTS” load menu for the code
testpart([[Part1]], 5.0)
, and saves it
in nonvolatile memory.
Also see
(on page 7-76)