Model 2601B-PULSE System SourceMeter Instrument Reference Manual Section 11: TSP command reference
2601B-PULSE-901-01A April 2020 11-385
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
tspnet.connect() (on page 11-380)
tspnet.read() (on page 11-383)
tspnet.reset()
This function disconnects all TSP-Net sessions.
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.
Usage
type = tspnet.termination(connectionID)
type = tspnet.termination(connectionID, termSequence)
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
The connection ID returned from tspnet.connect()