Tspnet.disconnect() - Keithley 2461 Reference Manual

1kw pulse mode interactive sourcemeter instrument
Table of Contents

Advertisement

Section 8: TSP command reference
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.showevents
tspnet.tsp.abortonconnect

tspnet.disconnect()

tspnet.disconnect()
This function disconnects a specified TSP-Net session.
Type
TSP-Link accessible
Function
No
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()
8-326
(on page 8-86)
(on page 8-88)
(on page 8-333)
(on page 8-326)
Affected by
The connection ID returned from tspnet.connect()
(on page 8-325)
Model 2461 Interactive SourceMeter® Instrument Reference Manual
Where saved
Create a TSP-Net session.
Close the session.
Connect to a device that is
not TSP-enabled.
Default value
2461-901-01 A/November 2015

Advertisement

Table of Contents
loading

Table of Contents