2600AS-901-01 Rev. B / September 2008 Return to Section Topics 19-221
Series 2600A System SourceMeter® Instruments Reference Manual Section 19: Remote Commands
tspnet
tspnet.clear
Function Clear the read buffer.
TSP-Link
accessibility
This function can be accessed from a remote TSP-Link node.
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 remote instrument. No data is
returned to the caller. No data is processed.
• Errors:
Invalid Specified Connection
Example tspnet.write(myconnection, 'print([[hello]])\n')
print(tspnet.readavailable(myconnection))
Output:
6.00000000e+000
tspnet.clear(myconnection)
print(tspnet.readavailable(myconnection))
Output:
0.00000000e+000