EasyManuals Logo
Home>Keithley>Test Equipment>2450

Keithley 2450 User Manual

Keithley 2450
878 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 #577 background imageLoading...
Page #577 background image
Section
8: TSP command reference Model 2450 Interactive SourceMeter® Instrument
Reference Manual
8-46 2450-901-01 Rev. B/September 2013
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 10101010
Also see
digio.writeport() (on page 8-46)
Digital I/O port (on page 3-62)
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
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 3 lines are set low).
An instrument reset does not affect the present states of the digital I/O lines.
Example
digio.writeport(63)
Sets digital I/O lines 1 through 6 high (binary
111111).
Also see
digio.readport() (on page 8-45)
Digital I/O port (on page 3-62)

Table of Contents

Other manuals for Keithley 2450

Questions and Answers:

Question and Answer IconNeed help?

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

Keithley 2450 Specifications

General IconGeneral
BrandKeithley
Model2450
CategoryTest Equipment
LanguageEnglish

Related product manuals