EasyManuals Logo

Tektronix KEITHLEY 2600B Series User Manual

Tektronix KEITHLEY 2600B Series
834 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #394 background imageLoading...
Page #394 background image
Series 2600B System SourceMeter® instrument Reference Manual Section 9: TSP command reference
2600BS-901-01 Rev. F/August 2021 9-73
Example 2
display.loadmenu.add("Test", "DUT1() beeper.beep(2, 500)", display.SAVE)
Assume a script with a function named “DUT1” is 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 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 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 run again 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 load menu for the code testpart([[Part1]], 5.0)
and saves it in nonvolatile memory.
Also see
display.loadmenu.delete() (on page 9-74)
display.loadmenu.catalog()
This function creates an iterator for the user menu items accessed using the LOAD key on the front panel.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
No
Usage
for displayName in display.loadmenu.catalog() do body end
for displayName, code in display.loadmenu.catalog() do body end
displayName
The name displayed in the menu
code
The code associated with the displayName
body
The body of the code to process the entries in the loop
Details
Each time through the loop, displayName and code take on the values in the USER menu.
The instrument goes through the list in random order.
Example
for displayName, code in display.loadmenu.catalog() do
print(displayName, code)
end
Output:
Test DUT1() beeper.beep(2, 500)
Part1 testpart([[Part1]], 5.0)
Test9 Test9()

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Tektronix KEITHLEY 2600B Series and is the answer not in the manual?

Tektronix KEITHLEY 2600B Series Specifications

General IconGeneral
BrandTektronix
ModelKEITHLEY 2600B Series
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals