Section 7: Command reference
Models 707B and 708B Switching Matrix Reference Manual
7-232
707B-901-01 Rev. A / August 2010
tspnet.idn()
This function retrieves the response of the remote device to *IDN.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function Yes
Usage
idnString = tspnet.idn(connectionID)
idnString
The returned *IDN string
connectionID
The connection ID returned from
tspnet.connect()
Details
This function retrieves the response of the remote device to
*IDN
.
Example
myID =
tspnet.connect("192.0.2.1")
print(tspnet.idn(myID))
tspnet.disconnect(myID)
Output:
KEITHLEY INSTRUMENTS INC.,MODEL
707B,00000170,01.10h
Also see
tspnet.read()
This function reads data from a remote device.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function Yes
Usage
results = tspnet.read(connectionID)
results = tspnet.read(connectionID, formatString)
value1 = tspnet.read(connectionID)
value1 = tspnet.read(connectionID, formatString)
value1, value2 = tspnet.read(connectionID, formatString)
value1, ..., valuen = tspnet.read(connectionID, formatString)
results
The return code from the function call
connectionID
The connection ID returned from
tspnet.connect()
formatString
Format string for the output, maximum of 10 specifiers
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