Digital:read - Keithley 2461 Reference Manual

1kw pulse mode interactive sourcemeter instrument
Table of Contents

Advertisement

Model 2461 Interactive SourceMeter® Instrument Reference Manual
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
:DIGital:READ?
This command reads the digital I/O port.
Type
Query only
Usage
:DIGital:READ?
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.
2461-901-01 A/November 2015
(on page 3-87)
(on page 6-35)
(on page 6-37)
(on page 6-38)
(on page 6-211)
Affected by
Not applicable
Section 6: SCPI command reference
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
Where saved
Not applicable
Default value
Not applicable
6-37

Advertisement

Table of Contents
loading

Table of Contents