User manual
Section 10: TSP-Net Series 3700 System Switch/Multimeter Reference Manual
10-8 3700S-901-01 Rev. C / July 2008
tspnet.write()
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")
tspnet.read()
Function
Reads data from remote device.
Usage
[variable =] tspnet.read(<connection id>, [<format
string>])
connection id: Integer value used as a handle for other tspnet commands
format string: Definition of format string for the input field using zeros (0), the decimal
point (.), the polarity sign (+), and 'E' for exponent.