Model 2651A High Power System SourceMeter® Instrument Reference Manual
tspnet.clear()
This function clears any pending output data from the instrument.
Type
TSP-Link accessible
Function
Yes
Usage
tspnet.clear(connectionID)
connectionID
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))
Also see
tspnet.connect()
tspnet.readavailable()
tspnet.write()
tspnet.connect()
This function connects the device processing the command to another device through the LAN interface.
Type
TSP-Link accessible
Function
Yes
2651A-901-01 Rev. A / March 2011
Affected by
The connection ID returned from tspnet.connect()
(on page 7-361)
(on page 7-366)
(on page 7-371)
Affected by
Where saved
Default value
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
Where saved
Default value
Section 7: Command reference
7-361