Keithley 2651A Reference Manual page 222

High power system sourcemeter instrument
Hide thumbs Also See for 2651A:
Table of Contents

Advertisement

Section 5: Remote commands
Example 1
digio.writeport(15)
digio.writebit(3, 0)
reset()
digio.readport()
Example 2
You can use the results of a function-based command directly or assign to variables to the results for
later access. The following code saves the value you enter from the front panel and prints it.
value = display.inputvalue("+0.00")
print(value)
Attributes
Attribute-based commands are commands that set the characteristics of an instrument feature or
operation. For example, some characteristics of TSP-enabled instruments are the model number
(localnode.model) and the number of errors in the error queue (errorqueue.count).
To set the characteristics, attribute-based commands define a value. For many attributes, the value is
in the form of a number or a predefined constant.
Example 1: Set an attribute using a number
format.data = 3
Example 2: Set an attribute using a constant
format.data = format.REAL64
5-2
Model 2651A High Power System SourceMeter® Instrument Reference Manual
Sets digital I/O lines 1, 2, 3, and 4 high.
Sets line 3 to low (0).
Returns the instrument to its default settings.
Reads the digital I/O port.
If the operator enters 2.36 from the front panel,
the resulting output is:
2.36000e+00
This attribute sets the format of data printed by
other commands. Setting this attribute to 3 sets
the print format to double precision floating
point format.
Using the constant REAL64 instead of 3 also
sets the print format to double precision floating
point format.
2651A-901-01 Rev. A / March 2011

Advertisement

Table of Contents
loading

Table of Contents