EasyManuals Logo

Keithley 2651A Reference Manual

Keithley 2651A
800 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #351 background imageLoading...
Page #351 background image
Model 2651A High Power System SourceMeter® Instrument Reference Manual Section 7: Command reference
2651A-901-01 Rev. A / March 2011 7-43
digio.readbit()
This function reads one digital I/O line.
Type TSP-Link accessible
Affected by Where saved Default value
Function Yes
Usage
data = digio.readbit(N)
data
A custom variable that stores the state of the I/O line
N
Digital I/O line number to be read (1 to 14)
Details
A returned value of zero (0) indicates that the line is low. A returned value of one (1) indicates that the line is
high.
Example
print(digio.readbit(4))
Assume line 4 is set high, and it is then read.
Output:
1.00000e+00
Also see
Digital I/O port
digio.readport()
(on page 7-43)
digio.writebit() (on page 7-51)
digio.writeport()
(on page 7-52)
digio.readport()
This function reads the digital I/O port.
Type TSP-Link accessible
Affected by Where saved Default value
Function Yes
Usage
data = digio.readport()
data
The present value of the input lines on the digital I/O port
Details
The binary equivalent of the returned value indicates the value of the input lines on the I/O port. The least
significant bit (Bit B1) of the binary number corresponds to line 1; Bit B14 corresponds to line 14.
For example, a returned value of 170 has a binary equivalent of 000000010101010, which indicates that lines 2,
4, 6, and 8 are high (1), and the other 10 lines are low (0).

Table of Contents

Other manuals for Keithley 2651A

Questions and Answers:

Question and Answer IconNeed help?

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

Keithley 2651A Specifications

General IconGeneral
BrandKeithley
Model2651A
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals