Model 2651A High Power System SourceMeter® Instrument Reference Manual
userstring.catalog()
This function creates an iterator for the user-defined string catalog.
Type
TSP-Link accessible
Function
No
Usage
for name in userstring.catalog() do body end
name
body
Details
The catalog provides access for user-defined string pairs, allowing you to manipulate all the key-value
pairs in nonvolatile memory. The entries are enumerated in no particular order.
Example 1
for name in userstring.catalog() do
userstring.delete(name)
end
Deletes all user-defined strings in nonvolatile memory.
Example 2
userstring.add("assetnumber", "236")
userstring.add("product", "Widgets")
userstring.add("contact", "John Doe")
for name in userstring.catalog() do
print(name .. " = " ..
userstring.get(name))
end
Prints all userstring key-value pairs.
Output:
product = Widgets
assetnumber = 236
contact = John Doe
Notice the key-value pairs are not listed in the order they were added.
Also see
userstring.add()
userstring.delete()
userstring.get()
2651A-901-01 Rev. C October 2021
Affected by
The name of the string; the key of the key-value pair
Code to execute in the body of the for loop
(on page 7-456)
(on page 7-458)
(on page 7-458)
Section 7: TSP command reference
Where saved
Default value
7-457
Need help?
Do you have a question about the Keithley 2651A and is the answer not in the manual?
Questions and answers