Tspnet.termination() - Keithley 2651A Reference Manual

High power system sourcemeter instrument
Hide thumbs Also See for 2651A:
Table of Contents

Advertisement

Model 2651A High Power System SourceMeter® Instrument Reference Manual
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
Function
Yes
Usage
type = tspnet.termination(connectionID)
type = tspnet.termination(connectionID, termSequence)
type
connectionID
termSequence
Details
This function sets and gets the termination character sequence that is used to indicate the end of a line for a
TSP-Net connection.
Using the termSequence parameter sets the termination sequence. The present termination sequence is
always returned.
For the termSequence parameter, use the same values listed in the table above for type. There are four
possible combinations, all of which are made up of line feeds (LF or 0x10) and carriage returns (CR or 0x13). For
TSP-enabled devices, the default is tspnet.TERM_LF. For devices that are not TSP-enabled, the default is
tspnet.TERM_CRLF.
Example
myID = tspnet.connect("192.0.2.1")
if myID then
tspnet.termination(myID, tspnet.TERM_LF)
end
2651A-901-01 Rev. A / March 2011
Affected by
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()
The termination sequence
Where saved
Default value
Sets termination type for IP address
192.0.2.1 to TERM_LF.
Section 7: Command reference
7-367

Advertisement

Table of Contents
loading

Table of Contents