EasyManuals Logo

Tektronix KEITHLEY 2600B Series User Manual

Tektronix KEITHLEY 2600B Series
834 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 #376 background imageLoading...
Page #376 background image
Series 2600B System SourceMeter® instrument Reference Manual Section 9: TSP command reference
2600BS-901-01 Rev. F/August 2021 9-55
digio.readport()
This function reads the digital I/O port. This command is not available on the 2604B, 2614B, or 2634B.
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 9-54)
digio.writebit() (on page 9-63)
digio.writeport() (on page 9-64)
Digital I/O port (on page 4-38)
digio.trigger[N].assert()
This function asserts a trigger pulse on one of the digital I/O lines. This command is not available on the 2604B,
2614B, or 2634B.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
digio.trigger[N].assert()
N
Digital I/O trigger line (1 to 14)
Details
The pulse width that is set determines how long the instrument asserts the trigger.
Example
digio.trigger[2].assert()
Asserts a trigger on digital I/O line 2.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Tektronix KEITHLEY 2600B Series and is the answer not in the manual?

Tektronix KEITHLEY 2600B Series Specifications

General IconGeneral
BrandTektronix
ModelKEITHLEY 2600B Series
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals