![background image](http://html1.mh-extra.com/html/keithley/2651a/2651a_reference-manual_661729222.webp)
Section 5: Remote commands
Model 2651A High Power System SourceMeter® Instrument Reference Manual
5-2
2651A-901-01 Rev. A / March 2011
Example 1
digio.writeport(15)
digio.writebit(3, 0)
reset()
digio.readport()
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.
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)
If the operator enters 2.36 from the front panel,
the resulting output is:
2.00
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
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.
Example 2: Set an attribute using a constant
format.data = format.REAL64
Using the constant
REAL64
instead of 3 also
sets the print format to double precision floating
point format.