Model 2651A High Power System SourceMeter® Instrument Reference Manual Section 7: Command reference
2651A-901-01 Rev. A / March 2011 7-361
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.00000e+000
Clear data and print how much data is
available again.
Output:
0.00000e+000
Also see
tspnet.connect() (on page 7-361)
tspnet.readavailable()
(on page 7-366)
tspnet.write()
(on page 7-371)
tspnet.connect()
This function connects the device processing the command to another device through the LAN interface.
Type TSP-Link accessible
Affected by Where saved Default value
Function Yes