Tspnet.disconnect() - Keithley 2657A Reference Manual

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

Advertisement

Section 7: TSP command reference
Example 1
instrumentID = tspnet.connect("192.0.2.1")
if instrumentID then
-- Use instrumentID as needed here
tspnet.disconnect(instrumentID)
end
Example 2
instrumentID = tspnet.connect("192.0.2.1", 1394,
"*rst\r\n")
if instrumentID then
-- Use instrumentID as needed here
tspnet.disconnect(instrumentID)
end
Also see
localnode.prompts
localnode.showerrors
tspnet.tsp.abortonconnect

tspnet.disconnect()

tspnet.disconnect()
This function disconnects a specified TSP-Net session.
Type
TSP-Link accessible
Yes
Function
Usage
tspnet.disconnect(connectionID)
connectionID
Details
This function disconnects the two devices by closing the connection. The connectionID is the session handle
returned by tspnet.connect().
For TSP-enabled devices, this aborts any remotely running commands or scripts.
Example
testID = tspnet.connect("192.0.2.0")
-- Use the connection
tspnet.disconnect(testID)
Also see
tspnet.connect()
7-360
Model 2657A High Power System SourceMeter® Instrument Reference Manual
(on page 7-137)
(on page 7-141)
(on page 7-366)
(on page 7-360)
Affected by
The connection ID returned from tspnet.connect()
(on page 7-359)
Where saved
Default value
Create a TSP-Net session.
Close the session.
2657A-901-01 Rev. B/December 2012
Connect to a TSP-enabled
device.
Connect to a device that is
not TSP-enabled.

Advertisement

Table of Contents
loading

Table of Contents