Digio.readport() - Keithley 2601B Reference Manual

2600b series system sourcemeter instrument
Hide thumbs Also See for 2601B:
Table of Contents

Advertisement

Section 7: TSP command reference
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))
Also see

digio.readport()

digio.writebit()
digio.writeport()
Digital I/O port
digio.readport()
This function reads the digital I/O port. This function is not available on the Models 2604B/2614B/2634B.
Type
TSP-Link accessible
Function
Yes
Usage
data = digio.readport()
data
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)
Also see
digio.readbit()
digio.writebit()
digio.writeport()
Digital I/O port
7-50
(on page 7-50)
(on page 7-58)
(on page 7-59)
(on page 3-83)
Affected by
The present value of the input lines on the digital I/O port
(on page 7-49)
(on page 7-58)
(on page 7-59)
(on page 3-83)
Series 2600B System SourceMeter® Instrument Reference Manual
Assume line 4 is set high, and it is then read.
Output:
1.00000e+00
Where saved
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
Default value
2600BS-901-01 Rev. B / May 2013

Advertisement

Table of Contents
loading

This manual is also suitable for:

2604b2614b2634b2635b2636b2602b ... Show all

Table of Contents