
19-224
Return to
2600AS-901-01 Rev. B / September 2008
Section 19: Remote Commands
Series 2600A System SourceMeter® Instruments Reference Manual
Remarks
• This command sends the command string to the remote instrument. A termination is added to
the command string when it is sent to the remote instrument (see
).
Optionally, when a format string is specified, the command waits for a response from the remote
instrument. The Series 2600A decodes the response message according to the format specified
in the format string and returns this as return values from the function (see
for
format specifiers).
• When this command is sent to a TSP-enabled instrument, the Series 2600A 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 Series
2600A places any remotely-generated errors into its error queue. When the optional format
string is not specified, this command is equivalent to
, except that a termination
is automatically added to the end of the command.
• Errors:
Invalid Specified Connection
Write Failed, Timeout
Write Failed
Read Failed, Timeout
Read Failed
Read Failed, Aborted
Remote Error,
<remote error generated by command>
Example
Command remote instrument to run script named
'myscript'
:
tspnet.execute(myconnection, 'myscript()')
Command remote instrument to execute a
*idn?
:
tspnet.execute(myconnection, '*idn?')
print("instrument write/read returns:: " , tspnet.read(myconnection))