Section 12: SCPI command reference
:DIGital:LINE<n>:STATe
This command 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
Command and query
Usage
:DIGital:LINE<n>:STATe <state>
:DIGital:LINE<n>:STATe?
<n>
<state>
Details
When the line mode for a digital I/O line is set to digital output (:DIG:LINE<n>:MODE DIG, OUT),
you can set the line high or low using the <state> parameter. When the line mode is set to digital
input (:DIG:LINE<n>:MODE DIG, IN), you can query the state of the digital input line.
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 zero (0) to clear the bit; set the state to one (1) to set the bit.
Example 1
:DIG:LINE1:MODE DIG, OUT
:DIG:LINE1:STAT 1
Example 2
:DIG:LINE1:MODE DIG, IN
:DIG:LINE1:STAT?
Also see
Digital I/O port configuration
:DIGital:LINE<n>:MODE
:DIGital:READ?
:DIGital:WRITe <n>
:TRIGger:DIGital<n>:IN:EDGE
12-26
Affected by
Not applicable
The digital I/O line: 1 to 6
Clear the bit (bit low): 0
Set the bit (bit high): 1
(on page 8-13)
(on page 12-24)
(on page 12-27)
(on page 12-27)
(on page 12-171)
2470 High Voltage SourceMeter Instrument Reference Manual
Where saved
Not applicable
Set digital I/O line 1 as a digital output line.
Sets line 1 (bit B1) of the digital I/O port high.
Set digital I/O line 1 as a digital input line.
Query the state of line 1 on the digital I/O port.
Output: 1
Default value
See Details
2470-901-01 Rev. A / May 2019
Need help?
Do you have a question about the Keithley SourceMeter 2470 and is the answer not in the manual?