User manual
Series 3700 System Switch/Multimeter Reference Manual  Section 13: Instrument Control Library (ICL) 
3700S-901-01 Rev. C / July 2008  13-309 
tspnet.write() 
Function 
Write strings to remote device. 
Usage 
tspnet.write(<connection id>, <input string>) 
connection id: Integer value used as a handle for other tspnet commands 
input string: String type used for writing to the remote instrument 
Remarks 
The tspnet.write() command sends the command string to the connection device. It 
does not wait for command completion on the remote device. 
The Series 3700 sends the input string to the remote device exactly as indicated. The 
input string must contain any necessary new lines, termination, or other indicators. 
Errors: 
  Invalid Specified Connection 
  Write Failed, Timeout 
  Write Failed 
Example 
Command remote device to run script named 'runmyscript': 
tspnet.write(mydevice, 'runmyscript()\n') 
Send a *idn? to a remote device: 
tspnet.write(id_instr,"*idn?" .. "\r\n") 
or 
tspnet.write(id_instr,"*idn?\r\n") 
upgrade functions 
Use the functions in this section to perform upgrades. 
upgrade.previous() 
Function 
Upgrades a previous version of the Series 3700 firmware. 
Usage 
upgrade.previous() 
Remarks 
This command is equivalent to manually performing an upgrade to a previous version 
from the front panel. The functions will search the flash drive for a file to upgrade the 
unit and upgrade if one is found (if a file is not found, the function errors). 
upgrade.unit() 
Function 
Upgrades the Series 3700 firmware. 
Usage 
upgrade.unit() 
Remarks 
This command is equivalent to manually performing an upgrade from the front panel. 
The functions will search the flash drive for a file to upgrade the unit and upgrade if 
one is found (if a file is not found, the function errors). 










