EasyManuals Logo

Tektronix Keithley SourceMeter 2470 Reference Manual

Tektronix Keithley SourceMeter 2470
995 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 #696 background imageLoading...
Page #696 background image
Section
14: TSP command reference 2470 High Voltage SourceMeter Instrument
Reference Manual
14-56 2470-901-01 Rev. A / May 2019
Details
The binary equivalent of the returned value indicates the value of the input lines on the digital I/O port.
The least significant bit (bit B1) of the binary number corresponds to digital I/O line 1; bit B6
corresponds to digital I/O line 6.
For example, a returned value of 42 has a binary equivalent of 101010, which indicates that lines 2, 4,
6 are high (1), and the other lines are low (0).
An instrument reset does not affect the present states of the digital I/O lines.
All six lines must be configured as digital control lines. If not, this command generates an error.
Example
data = digio.readport()
print(data)
Assume lines 2, 4, and 6 are set high when the I/O port is read.
Output:
42
This is binary 101010
Also see
digio.writeport() (on page 14-56)
Digital I/O port configuration (on page 8-13)
digio.writeport()
This function writes to all digital I/O lines.
Type TSP-Link accessible
Affected by Where saved Default value
Function Yes
Usage
digio.writeport(data)
data
The value to write to the port (0 to 63)
Details
This function writes to the digital I/O port by setting the binary state of each digital line from an integer
equivalent value.
The binary representation of the value indicates the output pattern to be written to the I/O port. For
example, a value of 63 has a binary equivalent of 111111 (all lines are set high); a data value of 42
has a binary equivalent of 101010 (lines 2, 4, and 6 are set high, and the other three lines are set
low).
An instrument reset does not affect the present states of the digital I/O lines.
All six lines must be configured as digital control lines. If not, this command generates an error.
Example
digio.writeport(63)
Sets digital I/O lines 1 through 6 high (binary 111111).
Also see
digio.readport() (on page 14-55)
Digital I/O port configuration (on page 8-13)

Table of Contents

Other manuals for Tektronix Keithley SourceMeter 2470

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Tektronix Keithley SourceMeter 2470 and is the answer not in the manual?

Tektronix Keithley SourceMeter 2470 Specifications

General IconGeneral
BrandTektronix
ModelKeithley SourceMeter 2470
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals