Models 707B and 708B Switching Matrix Reference Manual
Section 7: TSP command reference
707B-901-01 Rev. B / January 2015
7-239
tspnet.write()
This function writes a string to the remote instrument.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
No
Usage
tspnet.write(
connectionID
,
inputString
)
connectionID
The connection ID returned from
tspnet.connect()
inputString
The string to be written
Details
The
tspnet.write()
function sends
inputString
to the remote instrument. It does not wait for
command completion on the remote instrument.
The Model 707B or 708B 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-229)
(on page 7-232)
userstring.add()
This function adds a user-defined string to nonvolatile memory.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
No
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