Model 2657A High Power System SourceMeter® Instrument Reference Manual
Section 7: TSP command reference
2657A-901-01 Rev. B/December 2012
7-369
Details
The
tspnet.write()
function sends
inputString
to the remote instrument. It does not wait for command
completion on the remote instrument.
The Model 2657A 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")
Commands the remote instrument to execute
a command or script named "runscript()" on a
remote device identified in the system as
myID
.
Also see
(on page 7-362)
userstring.add()
This function adds a user-defined string to nonvolatile memory.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
userstring.add(
name
,
value
)
name
The name of the string; the key of the key-value pair
value
The string to associate with
name
; the value of the key-value pair
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
.
Example
userstring.add("assetnumber", "236")
userstring.add("product", "Widgets")
userstring.add("contact", "John Doe")
Stores user-defined strings in nonvolatile
memory.
Also see
(on page 7-370)
Summary of Contents for 2657A
Page 3: ......