Tspnet.disconnect(); Tspnet.execute() - 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

tspnet.disconnect()

This function disconnects the TSP-Net session specified.
Type
TSP-Link accessible
Function
Yes
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()

tspnet.execute()

This function executes a command string on the remote device.
Type
TSP-Link accessible
Function
Yes
Usage
tspnet.execute(connectionID, commandString)
value1 = tspnet.execute(connectionID, commandString, formatString)
value1, value2 = tspnet.execute(connectionID, commandString, formatString)
value1, ..., valuen = tspnet.execute(connectionID, commandString, formatString)
connectionID
commandString
value1
value2
valuen
...
formatString
2651A-901-01 Rev. A / March 2011
Affected by
The connection ID returned from tspnet.connect()
(on page 7-361)
Affected by
The connection ID returned from tspnet.connect()
The command to send to the remote device
The first value decoded from the response message
The second value decoded from the response message
The nth value decoded from the response message; there is one return value per
format specifier in the format string
One or more values separated with commas
Format string for the output
Where saved
Default value
Create a TSP-Net session.
Close the session.
Where saved
Default value
Section 7: Command reference
7-363

Advertisement

Table of Contents
loading

Table of Contents