Section 7: Command reference
Models 707B and 708B Switching Matrix Reference Manual
7-228
707B-901-01 Rev. A / August 2010
tspnet.clear()
This function clears any pending output data from the instrument.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function Yes
Usage
tspnet.clear(connectionID)
connectionID
The connection ID returned from
tspnet.connect()
Details
This function clears any pending output data from the device. No data is returned to the caller and no data is
processed.
Example
tspnet.write(mydevice, "print([[hello]])")
print(tspnet.readavailable(mydevice))
tspnet.clear(mydevice)
print(tspnet.readavailable(mydevice))
Write data to device, print how much is
available.
Output:
6.0000
Clear data and print how much data is
available again.
Output:
0.0000
Also see
(on page 7-233)