User manual
Series 3700 System Switch/Multimeter Reference Manual  Section 13: Instrument Control Library (ICL) 
3700S-901-01 Rev. C / July 2008  13-305 
tspnet.readavailable() 
Example 
x = tspnet.readavailable(mydevice) 
tspnet.reset() 
Function 
Device all disconnection. 
Usage 
tspnet.reset() 
Remarks 
This command disconnects the all devices currently connected. 
For Keithley Instruments TSP
TM
 devices, this results in any remotely running 
commands or scripts being terminated. 
Errors: 
  <none> 
Example 
tspnet.reset() 
tspnet.termination() 
Function 
Device line termination. 
Usage 
<termination type> = tspnet.termination(<connection id>, 
[<termination type>]) 
connection id: Integer value used as a handle for other tspnet commands 
termination type: tspnet.TERM_LF, tspnet.TERM_CR, 
tspnet.TERM_CRLF, or tspnet.TERM_LFCR 
Remarks 
This setting sets and gets the termination characters used to determine the end of a 
line for lines being received by a connection. It also is used to terminate lines being 
sent to a connection. Pass the optional set value to set the termination. The current 
value is always returned. There are four possible values: LF, CR, CRLF, or LFCR. For 
TSP
TM
 devices, the default is LF. For non-TSP devices, the default is CRLF. The 
termination character resets to default when a connection is terminated. 
Errors: 
  Invalid Specified Connection 
  Invalid Termination 
Example 
Set termination character: 
tspnet.termination(mydevice, tspnet.TERM_LF) 
Gets termination character and evaluates if set to LF. Response of "1" means true, set 
to <termination type>. Response of "0" means false, not set to 
<termination type>: 
print(tspnet.termination(mydevice) == tspnet.TERM_LF) 
Output: 
1.0000000e+000 










