Userstring.add() - Keithley 2601B Reference Manual

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

Advertisement

Series 2600B System SourceMeter® Instrument Reference Manual
Details
The tspnet.write() function sends inputString to the remote instrument. It does not wait for command
completion on the remote instrument.
The Series 2600B sends inputString to the remote instrument exactly as indicated. The inputString must
contain any necessary new lines, termination, or other syntax elements needed to complete properly.
Because tspnet.write() does not process output from the remote instrument, do not send commands that
generate too much output without processing the output. This command can stop executing if there is too much
unprocessed output from previous commands.
Example
tspnet.write(myID, "runscript()\r\n")
Also see
tspnet.connect()
tspnet.read()

userstring.add()

This function adds a user-defined string to nonvolatile memory.
Type
TSP-Link accessible
Function
Yes
Usage
userstring.add(name, value)
name
value
Details
This function associates the string value with the string name and stores this key-value pair in nonvolatile
memory.
Use the userstring.get() function to retrieve the value associated with the specified name.
You can use the userstring functions to store custom, instrument-specific information in the instrument, such
as department number, asset number, or manufacturing plant location.
Example
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
Also see
userstring.catalog()
userstring.delete()
userstring.get()
2600BS-901-01 Rev. B / May 2013
(on page 7-367)
(on page 7-370)
Affected by
The name of the string; the key of the key-value pair
The string to associate with name; the value of the key-value pair
(on page 7-378)
(on page 7-378)
(on page 7-379)
Section 7: TSP command reference
Commands the remote instrument to execute
a command or script named "runscript()" on a
remote device identified in the system as
myID.
Where saved
Default value
Stores user-defined strings in nonvolatile
memory and recalls them from the
instrument using a for loop.
7-377

Advertisement

Table of Contents
loading

This manual is also suitable for:

2604b2614b2634b2635b2636b2602b ... Show all

Table of Contents