User manual

Series 3700 System Switch/Multimeter Reference Manual Section 13: Instrument Control Library (ICL)
3700S-901-01 Rev. C / July 2008 13-303
tspnet.idn()
Function
Retrieves response of remote device to '*IDN?'
Usage
<idn string> = tspnet.idn(<connection id>)
idn_string: Response as a string type
connection id: Integer value used as a handle for other tspnet commands
Remarks
Sends the '*idn?' string to the remote device and retrieves its response.
Errors:
Invalid Specified Connection
Connection Not Available
Connection Failed, Aborted
Write Failed, Timeout
Write Failed
Read Failed, Timeout
Read Failed
Read Failed, Aborted
Example
Retrieve and print response of 'IDN?*' from the remote device:
print(tspnet.idn(mydevice))
KEITHLEY INSTRUMENTS INC.,MODEL 3706,34345656,01.02a
tspnet.read()
Function
Reads data from remote device.
Usage
[variable =] tspnet.read(<connection id>, [<format
string>])
connection id: Integer value used as a handle for other tspnet commands
format string: Definition of format string for the input field using zeros (0), the decimal
point (.), the polarity sign (+), and 'E' for exponent.