Section 11: TSP command reference Model 2601B-PULSE System SourceMeter Instrument Reference Manual
11-392 2601B-PULSE-901-01A April 2020
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() (on page 11-390)
userstring.delete() (on page 11-392)
userstring.get() (on page 11-393)
userstring.delete()
This function deletes a user-defined string from nonvolatile memory.
Usage
userstring.delete("name")
The name (key) of the key-value pair of the user-defined string to delete
Details
This function deletes the string that is associated with name from nonvolatile memory.
Example
userstring.delete("assetnumber")
userstring.delete("product")
userstring.delete("contact")
Deletes the user-defined strings associated
with the assetnumber, product, and
contact names.
Also see
userstring.add() (on page 11-390)
userstring.catalog() (on page 11-391)
userstring.get() (on page 11-393)