19-228 Return to Section Topics 2600AS-901-01 Rev. B / September 2008
Section 19: Remote Commands Series 2600A System SourceMeter® Instruments Reference Manual
tspnet.reset
Function Reset all remote instrument connections.
TSP-Link
accessibility
This function can be accessed from a remote TSP-Link node.
Usage tspnet.reset()
Remarks • This command disconnects all remote instruments currently connected.
• For Keithley Instruments TSP
TM
instruments, this results in any remotely running commands or
scripts being aborted (terminated).
• Errors:
<none>
Example tspnet.reset()
tspnet.termination
Function Set line termination.
TSP-Link
accessibility
This function can be accessed from a remote TSP-Link node.
Usage termination_type = tspnet.termination(connection_id)
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,
TERM_CRLF, or tspnet.TERM_LFCR.
Remarks • This function 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(myconnection, tspnet.TERM_LF)
Gets termination character and evaluates if set to tspnet.TERM_LF. Response of "1" means true,
set to termination_type. Response of "0" means false, not set to tspnet.TERM_LF:
print(tspnet.termination(myconnection) == tspnet.TERM_LF)
Output:
1.0000000e+000