Model 2601B-PULSE System SourceMeter Instrument Reference Manual Section 11: TSP command reference
2601B-PULSE-901-01A April 2020 11-383
tspnet.idn()
This function retrieves the response of the remote device to *IDN?.
Usage
idnString = tspnet.idn(connectionID)
The returned *IDN? string
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 identification string may
appear as:
Keithley Instruments,Model 2601B-PULSE,
1398687, 1.0.0
Also see
tspnet.connect() (on page 11-380)
tspnet.read()
This function reads data from a remote device.
Usage
value1 = tspnet.read(connectionID)
value1 = tspnet.read(connectionID, formatString)
value1, value2 = tspnet.read(connectionID, formatString)
value1, ..., valueN = tspnet.read(connectionID, formatString)
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 for
each format specifier in the format string
One or more values separated with commas
The connection ID returned from tspnet.connect()
Format string for the output, maximum of 10 specifiers