Model DMM7510 7½ Digit Graphical Sampling Multimeter Reference Manual
Section 8: TSP command reference
DMM7510-901-01 Rev. B / May 2015
8-353
Details
The binary representation of
data
indicates the output pattern that is written to the I/O port. For
example, a data value of 2 has a binary equivalent of 010. Line 2 is set high (1), and the other two
lines are set low (0).
The
reset()
function does not affect the present states of the trigger lines.
Example
tsplink.writeport(3)
Sets the synchronization lines 1 and 2 high (binary 011).
Also see
(on page 8-350)
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.00
Clear data and print how much data is
available again.
Output:
0.00
Also see
(on page 8-354)
(on page 8-358)
(on page 8-364)