2470 High Voltage SourceMeter Instrument Reference Manual
digio.line[N].state
This function sets a digital I/O line high or low when the line is set for digital control and returns the state on the
digital I/O lines.
Type
TSP-Link accessible
Attribute (RW)
Yes
Usage
digio.line[N].state = state
state = digio.line[N].state
N
state
Details
When a reset occurs, the digital line state can be read as high because the digital line is reset to a
digital input. A digital input floats high if nothing is connected to the digital line.
This returns the integer equivalent values of the binary states on all six digital I/O lines.
Set the state to digio.STATE_LOW to clear the bit; set the state to digio.STATE_HIGH to set the
bit.
Example
digio.line[1].mode = digio.MODE_DIGITAL_OUT
digio.line[1].state = digio.STATE_HIGH
Also see
digio.line[N].mode
digio.readport()
digio.writeport()
Digital I/O port configuration
trigger.digin[N].edge
digio.readport()
This function reads the digital I/O port.
Type
TSP-Link accessible
Function
Yes
Usage
data = digio.readport()
data
2470-901-01 Rev. A / May 2019
Affected by
Not applicable
The digital I/O line: 1 to 6
Set the line low: digio.STATE_LOW or 0
Set the line high: digio.STATE_HIGH or 1
(on page 14-52)
(on page 14-55)
(on page 14-56)
(on page 8-13)
(on page 14-199)
Affected by
The present value of the input lines on the digital I/O port
Section 14: TSP command reference
Where saved
Default value
Not applicable
See Details
Sets line 1 (bit B1) of the digital I/O port high.
Where saved
Default value
14-55
Need help?
Do you have a question about the Keithley SourceMeter 2470 and is the answer not in the manual?