Section 9: TSP command reference Series 2600B System SourceMeter® instrument Reference Manual
9-410 2600BS-901-01 Rev. F/August 2021
tspnet.write()
This function writes a string to the remote instrument.
Usage
tspnet.write(connectionID, "inputString")
The connection ID returned from tspnet.connect()
Details
The tspnet.write() function sends inputString to the remote instrument. It does not wait for
command completion on the remote instrument.
The 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")
Commands the remote instrument to execute a command or script named runscript() on a remote device
identified in the system as myID.
Also see
tspnet.connect() (on page 9-399)
tspnet.read() (on page 9-403)