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 #576 background imageLoading...
Page #576 background image
Model 2450
Interactive SourceMeter® Instrument Reference Manual Section 8: TSP command referenc
e
2450-901-01 Rev. B/September 2013 8-45
digio.line[N].state
This function sets a digital I/O line high or low.
Type TSP-Link accessible Affected by Where saved Default value
Attribute (RW)
Yes
Not applicable
Nonvolatile memory
See Details
Usage
digio.line[N].state = state
state = digio.line[N].state
N
Digital I/O trigger line (1 to 6)
state
Set the line low: digio.STATE_LOW or 0
Set the line high:
digio.STATE_HIGH
or
1
Details
When a reset occurs, the digital line state can be read as high because the digital line is reset to a digital input
(see the mode command). A digital input floats high if nothing is connected to the digital line.
Set the state to zero (0) to clear the bit; any non-zero value sets the bit.
Example
digio.line[1].mode = digio.MODE_DIGITAL_OUT
digio.line[1].state = digio.STATE_HIGH
Sets line 1 (bit B1) of the digital I/O port high.
Also see
digio.line[N].mode (on page 8-43)
digio.readport() (on page 8-45)
digio.writeport() (on page 8-46)
Digital I/O port (on page 3-62)
trigger.digin[N].edge (on page 8-171)
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 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).

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