Userstring.catalog(); Userstring.delete() - Keithley 2601B Reference Manual

2600b series system sourcemeter instrument
Hide thumbs Also See for 2601B:
Table of Contents

Advertisement

Section 7: TSP command reference

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
Example 2
for name in userstring.catalog() do
print(name .. " = " ..
userstring.get(name))
end
Also see
userstring.add()

userstring.delete()

userstring.get()
userstring.delete()
This function deletes a user-defined string from nonvolatile memory.
Type
TSP-Link accessible
Function
Yes
Usage
userstring.delete(name)
name
7-378
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-377)
(on page 7-378)
(on page 7-379)
Affected by
The name (key) of the key-value pair of the user-defined string to delete
Series 2600B System SourceMeter® Instrument Reference Manual
Where saved
Deletes all user-defined strings in nonvolatile
memory.
Prints all userstring key-value pairs.
Output:
product = Widgets
assetnumber = 236
contact = John Doe
The above output lists the user-defined strings
added in the example for the userstring.add()
function. Notice the key-value pairs are not listed in
the order they were added.
Where saved
Default value
Default value
2600BS-901-01 Rev. B / May 2013

Advertisement

Table of Contents
loading

This manual is also suitable for:

2604b2614b2634b2635b2636b2602b ... Show all

Table of Contents