![background image](http://html2.mh-extra.com/html/keithley/sourcemeter-2600b-series/sourcemeter-2600b-series_reference-manual_4085220744.webp)
Series 2600B System SourceMeter® Instrument Reference Manual
Section 7: TSP command reference
2600BS-901-01 Rev. C / August 2016
7-405
Example
ID = tspnet.connect("192.0.2.1")
tspnet.write(ID, "*idn?\r\n")
repeat bytes = tspnet.readavailable(ID) until bytes > 0
print(tspnet.read(ID))
tspnet.disconnect(ID)
Send commands that will create
data.
Wait for data to be available.
Also see
(on page 7-400)
(on page 7-403)
tspnet.reset()
This function disconnects all TSP-Net sessions.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
No
Usage
tspnet.reset()
Details
This command disconnects all remote instruments connected through TSP-Net. For TSP-enabled
devices, this causes any commands or scripts running remotely to be terminated.
Also see
None
tspnet.termination()
This function sets the device line termination sequence.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
No
Usage
type
= tspnet.termination(
connectionID
)
type
= tspnet.termination(
connectionID
,
termSequence
)
type
An enumerated value indicating the termination type:
•
1
or
tspnet.TERM_LF
•
4
or
tspnet.TERM_CR
•
2
or
tspnet.TERM_CRLF
•
3
or
tspnet.TERM_LFCR
connectionID
The connection ID returned from
tspnet.connect()
termSequence
The termination sequence