2600AS-901-01 Rev. B / September 2008 Return to Section Topics 19-223
Series 2600A System SourceMeter® Instruments Reference Manual Section 19: Remote Commands
tspnet.disconnect
Function Close a connection to a remote instrument.
TSP-Link
accessibility
This function can be accessed from a remote TSP-Link node.
Usage tspnet.disconnect(connection_id)
connection_id Integer value used as a handle for other tspnet
commands.
Remarks • This command disconnects the remote instrument by closing the connection.
• For Keithley Instruments TSP
TM
devices, this results in any remotely running commands or
scripts being aborted (terminated).
• Errors:
Invalid Specified Connection
Example tspnet.disconnect(myconnection)
tspnet.execute
Function Executes a command string on the remote instrument.
TSP-Link
accessibility
This function can be accessed from a remote TSP-Link node.
Usage tspnet.execute(connection_id, command_string)
value1 = tspnet.execute(connection_id, command_string, format_string)
value1, value2 = tspnet.execute(connection_id, command_string,
format_string)
value1, ..., valuen = tspnet.execute(connection_id, command_string,
format_string)
connection_id The connection ID returned from a tspnet.connect call.
command_string Command to send to the instrument.
format_string Format string for decoding response messages.
value1 The first value decoded from the response message.
value2 The second value decoded from the response message.
valuen The nth value decoded from the response message. There
is one return value per format specifier in the format string.