Keithley 2601 Reference Manual page 278

System sourcemeter 2600 series (smu)
Hide thumbs Also See for 2601:
Table of Contents

Advertisement

Section 12: Instrument Control Library
Remarks
A returned value of 0 indicates that the line is low. A returned value of 1 indicates that the
line is high.
Details
See
"Digital I/O
Also see
digio.readport, digio.writebit,
Example
-- Assume line 4 is set high, and it is then read
data = digio.readbit(4)
print(data)
Output: 1.000000e+00
digio.readport
Function
Reads the digital I/O port.
Usage
data = digio.readport()
Remarks
The binary equivalent of the returned value indicates the input pattern on the I/O port. The
least significant bit of the binary number corresponds to line 1 and bit 14 corresponds to line
14. For example, a returned value of 170 has a binary equivalent of 00000010101010.
Lines 2, 4, 6 and 8 are high (1), and the other 10 lines are low (0).
Details
See
"Digital I/O
Also see
digio.readbit, digio.writebit,
Example
-- Assume lines 2, 4, 6 and 8 are set high, and the I/O port is then read:
data = digio.readport()
print(data)
Output: 1.700000e+02
12-18
port" in
Section
10.
digio.writeport
port" in
Section
10.
digio.writeport
(binary 10101010)
Return to
Section Topics
Series 2600 System SourceMeter® Instruments Reference Manual
:
2600S-901-01 Rev. C / January 2008

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

26362602261126122635

Table of Contents