![background image](http://html2.mh-extra.com/html/keithley/2657a/2657a_reference-manual_4007750675.webp)
Section 7: TSP command reference
Model 2657A High Power System SourceMeter® Instrument Reference Manual
7-362
2657A-901-01 Rev. B/December 2012
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
deviceID = tspnet.connect("192.0.2.1")
print(tspnet.idn(deviceID))
tspnet.disconnect(deviceID)
Assume the instrument is at IP address 192.0.2.1.
The output that is produced when you connect to the
instrument and read the IDN string may appear as:
Keithley Instruments Inc., Model 2657A,
00000170, 1.1.0
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
value1
= tspnet.read(
connectionID
)
value1
= tspnet.read(
connectionID
,
formatString
)
value1
,
value2
= tspnet.read(
connectionID
,
formatString
)
value1
,
...
,
valueN
= tspnet.read(
connectionID
,
formatString
)
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 for
each format specifier in the format string
...
One or more values separated with commas
connectionID
The connection ID returned from
tspnet.connect()
formatString
Format string for the output, maximum of 10 specifiers
Содержание 2657A
Страница 3: ......