System SourceMeter® Instrument Reference Manual Section 7:
2600BS-901-01 Rev. C / August 2016 7-399
Also see
Controlling digital I/O lines (on page 3-84)
tsplink.readbit() (on page 7-384)
tsplink.readport() (on page 7-384)
tsplink.writebit() (on page 7-396)
tsplink.writeport() (on page 7-397)
tspnet.clear()
This function clears any pending output data from the instrument.
Type TSP-Link accessible
Affected by Where saved Default value
Function No
Usage
tspnet.clear(connectionID)
The connection ID returned from
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(testdevice, "print([[hello]])")
print(tspnet.readavailable(testdevice))
tspnet.clear(testdevice)
print(tspnet.readavailable(testdevice))
Write data to a device, then print how much is
available.
Output:
6.00000e+00
Clear data and print how much data is
available again.
Output:
0.00000e+00
Also see
tspnet.connect() (on page 7-400)
tspnet.readavailable() (on page 7-404)
tspnet.write() (on page 7-410)