User manual

Section 10: TSP-Net Series 3700 System Switch/Multimeter Reference Manual
10-10 3700S-901-01 Rev. C / July 2008
tspnet.readavailable()
Example
x = tspnet.readavailable(mydevice)
tspnet.clear()
Function
Device read clear buffer.
Usage
tspnet.clear(<connection id>)
connection id: Integer value used as a handle for other tspnet commands
Remarks
This command clears any pending output data available from the device. No data is
returned to the caller. No data is processed.
Errors:
Invalid Specified Connection
Example
tspnet.write(mydevice, 'print([[hello]])')
print(tspnet.readavailable(mydevice))
Output
6.00000000e+000
tspnet.clear(mydevice)
print(tspnet.readavailable(mydevice))
Output
0.00000000e+000
tspnet.disconnect()
Function
Device disconnection.
Usage
tspnet.disconnect(<connection id>)
connection id: Integer value used as a handle for other tspnet commands
Remarks
This command disconnects the two devices by closing the connection.
For Keithley Instruments TSP
TM
devices, this results in any remotely running
commands or scripts being aborted (terminated).
Errors:
Invalid Specified Connection
Example
tspnet.disconnect(mydevice)
tspnet.reset()
Function
Device all disconnection.
Usage
tspnet.reset()