Tspnet.idn() - Keithley 2450 Reference Manual

Interactive sourcemeter instrument
Table of Contents

Advertisement

Section 8: TSP command reference
Details
This command sends a command string to the remote instrument. A termination is added to the command string
when it is sent to the remote instrument (tspnet.termination()). You can also specify a format string, which
causes the command to wait for a response from the remote instrument. The Model 2450 decodes the response
message according to the format specified in the format string and returns the message as return values from
the function (see tspnet.read() for format specifiers).
When this command is sent to a TSP-enabled instrument, the Model 2450 suspends operation until a timeout
error is generated or until the instrument responds, even if no format string is specified. The TSP prompt from the
remote instrument is read and thrown away. The Model 2450 places any remotely generated errors and events
into its event queue. When the optional format string is not specified, this command is equivalent to
tspnet.write(), except that a termination is automatically added to the end of the command.
Example 1
tspnet.execute(instrumentID, "runScript()")
Example 2
tspnet.termination(instrumentID, tspnet.TERM_CRLF)
tspnet.execute(instrumentID, "*idn?")
print("tspnet.execute returns:", tspnet.read(instrumentID))
Also see
tspnet.connect()
tspnet.read()
(on page 8-241)
tspnet.termination()
tspnet.write()

tspnet.idn()

This function retrieves the response of the remote device to *IDN?.
Type
TSP-Link accessible
Function
No
Usage
idnString = tspnet.idn(connectionID)
idnString
connectionID
Details
This function retrieves the response of the remote device to *IDN?.
8-240
(on page 8-237)
(on page 8-243)
(on page 8-248)
Affected by
The returned *IDN? string
The connection ID returned from tspnet.connect()
Model 2450 Interactive SourceMeter® Instrument Reference Manual
Where saved
Command the remote
device to run a script
named runScript.
Print the *idn? string from
the remote device.
Default value
2450-901-01 Rev. B/September 2013

Advertisement

Table of Contents
loading

Table of Contents