Model 2601B-PULSE System SourceMeter Instrument Reference Manual Section 11: TSP command reference
2601B-PULSE-901-01A April 2020 11-379
Details
The binary equivalent of mask indicates the mask to be set for the TSP-Link trigger line. For example,
a mask value of 5 has a binary equivalent of 101. This mask write-protects TSP-Link trigger lines 1
and 3.
Example
Write-protects TSP-Link trigger lines 1 and 3.
Also see
Controlling digital I/O lines (on page 6-37)
tsplink.readbit() (on page 11-367)
tsplink.readport() (on page 11-367)
tsplink.writebit() (on page 11-377)
tsplink.writeport() (on page 11-378)
tspnet.clear()
This function clears any pending output data from the instrument.
Usage
tspnet.clear(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.00000e+00
Clear data and print how much data is
available again.
Output:
0.00000e+00
Also see
tspnet.connect() (on page 11-380)
tspnet.readavailable() (on page 11-384)
tspnet.write() (on page 11-390)