EasyManuals Logo

Tektronix Keithley 2601B-PULSE Reference Manual

Tektronix Keithley 2601B-PULSE
849 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 #401 background imageLoading...
Page #401 background image
Model 2601B-PULSE System SourceMeter Instrument Reference Manual Section 11: TSP command reference
2601B-PULSE-901-01A April 2020 11-43
Example
print(digio.readbit(4))
Assume line 4 is set high, and it is then read.
Output:
1.00000e+00
Also see
digio.readport() (on page 11-43)
digio.writebit() (on page 11-52)
digio.writeport() (on page 11-52)
Digital I/O port (on page 6-36)
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).
Example
data = digio.readport()
print(data)
Assume lines 2, 4, 6, and 8 are set high when the I/O port is
read.
Output:
1.70000e+02
This is binary 10101010
Also see
digio.readbit() (on page 11-42)
digio.writebit() (on page 11-52)
digio.writeport() (on page 11-52)
Digital I/O port (on page 6-36)

Table of Contents

Other manuals for Tektronix Keithley 2601B-PULSE

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Tektronix Keithley 2601B-PULSE and is the answer not in the manual?

Tektronix Keithley 2601B-PULSE Specifications

General IconGeneral
BrandTektronix
ModelKeithley 2601B-PULSE
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals