Tektronix Keithley 2651A Reference Manual page 251

High power system sourcemeter instrument
Table of Contents

Advertisement

Model 2651A High Power System SourceMeter® Instrument Reference Manual
To read an attribute, you can use the attribute as the parameter of a function or assign it to another
variable.
Example 3: Read an attribute using a function
print(format.data)
Reads the data format by passing the attribute to the print function. If the data format is set to 3, the output is:
3.00000e+00
This shows that the data format is set to double precision floating point.
Example 4: Read an attribute using a variable
fd = format.data
This reads the data format by assigning the attribute to a variable named fd.
Queries
Test Script Processor (TSP
other scripting environment, the print() and printnumber() commands generate output in the
form of response messages. Each print() command creates one response message.
Example
x = 10
print(x)
Information on scripting and programming
If you need information about using scripts with your TSP-enabled instrument, see
scripting for TSP
If you need information about using the Lua programming language with the instrument, see
Fundamentals of programming for TSP.
2651A-901-01 Rev. C October 2021
®
) enabled instruments do not have inherent query commands. Like any
(on page 6-1).
Section 5: Remote commands
Example of an output response message:
10
Note that your output may be different if you
set your ASCII precision setting to a different
value.
Fundamentals of
5-3

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Keithley 2651A and is the answer not in the manual?

Table of Contents