Download Print this page

Tektronix KEITHLEY System SourceMeter 2636B Reference Manual page 766

Advertisement

Section 11: TSP command reference
tspnet.clear()
This function clears any pending output data from the instrument.
Type
TSP-Link accessible
Function
No
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(testdevice, "print([[hello]])")
print(tspnet.readavailable(testdevice))
tspnet.clear(testdevice)
print(tspnet.readavailable(testdevice))
Also see
tspnet.connect()
tspnet.readavailable()
tspnet.write()
tspnet.connect()
This function establishes a network connection with another LAN instrument or device through the LAN interface.
Type
TSP-Link accessible
Function
No
Usage
connectionID = tspnet.connect("ipAddress")
connectionID = tspnet.connect("ipAddress", portNumber, "initString")
connectionID
ipAddress
portNumber
initString
11-398
Affected by
The connection ID returned from tspnet.connect()
(on page 11-398)
(on page 11-403)
(on page 11-409)
Affected by
The connection ID to be used as a handle in all other tspnet function calls
IP address to which to connect in a string
Port number (default 5025)
Initialization string to send to ipAddress
Series 2600B System SourceMeter® Instrument Reference Manual
Where saved
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
Where saved
Default value
Default value
2600BS-901-01 Rev. E / January 2019

Advertisement

loading
Need help?

Need help?

Do you have a question about the KEITHLEY System SourceMeter 2636B and is the answer not in the manual?