Model 2601B-PULSE System SourceMeter Instrument Reference Manual Section 11: TSP command reference
2601B-PULSE-901-01A April 2020 11-381
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
Connect to a device that is not TSP-enabled.
Also see
localnode.prompts (on page 11-142)
localnode.showerrors (on page 11-146)
tspnet.tsp.abortonconnect (on page 11-387)
tspnet.disconnect() (on page 11-381)
tspnet.disconnect()
This function disconnects a specified TSP-Net session.
Usage
tspnet.disconnect(connectionID)
The connection ID returned from tspnet.connect()
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)
Create a TSP-Net session.
Close the session.
Also see
tspnet.connect() (on page 11-380)