![Keithley DMM7510 Скачать руководство пользователя страница 367](http://html2.mh-extra.com/html/keithley/dmm7510/dmm7510_reference-manual_4027507367.webp)
Section 6: SCPI command reference
Model DMM7510 7½ Digit Graphical Sampling Multimeter Reference Manual
6-40
DMM7510-901-01 Rev. B / May 2015
: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
Affected by
Where saved
Default value
Command and query
Not applicable
Not applicable
See
Details
Usage
:DIGital:LINE<n>:STATe <state>
:DIGital:LINE<n>:STATe?
<n>
The digital I/O line (1 to 6)
<state>
Clear the bit (bit low):
0
Set the bit (bit high):
1
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
Set digital I/O line 1 as a digital output line.
Sets line 1 (bit B1) of the digital I/O port high.
Example 2
:DIG:LINE1:MODE DIG, IN
:DIG:LINE1:STAT?
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
Also see
Digital I/O port configuration
(on page 3-49)
(on page 6-41)
(on page 6-42)
(on page 6-204)