Section 7: TSP command reference
Models 707B and 708B Switching Matrix Reference Manual
7-228
707B-901-01 Rev. B / January 2015
Example
tsplink.writeprotect = 5
Write-protects TSP-Link trigger lines 1 and 3.
Also see
(on page 7-216)
(on page 7-216)
(on page 7-226)
(on page 7-227)
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
)
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(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.000
Clear data and print how much data is
available again.
Output:
0.000
Also see
(on page 7-229)
(on page 7-233)
(on page 7-239)