User`s manual

Agilent E1330B Digital I/O Module Command Reference 77
Chapter 5
DIGital:DATAn[:type]:BITm?
[SOURce:]DIGital:DATAn[:BYTE]:BITm? returns a 0 or 1 indicating the current
programmed state of bit m on 8-bit port n.
[SOURce:]DIGital:DATAn:WORD:BITm? returns a 0 or 1 indicating the current
programmed state of bit m on 16-bit port n.
[SOURce:]DIGital:DATAn:LWORd:BITm? returns a 0 or 1 indicating the current
programmed state of bit m on 32-bit port n.
Parameters
Comments This command is only available when using the downloaded SCPI driver.
This command performs a readback of the data line register, not the actual
condition of the data lines.
The keyword :LW32 may be used instead of :LWORd when using the
download version of the SCPI driver.
:DATAn and :BITm are the keywords used to write data to port n and bit m.
The port number n and bit number m must be the last character of the keyword
without spaces.
For 16-bit operations using :WORD, n must be 0 or 2.
For 32-bit operations using :LWORd, n must be 0.
Related Commands: [SOURce:]DIGital:DATAn:POLarity,
[SOURce:]DIGital:DATAn[:VALue]
Example DIG:DATA3:BIT4:VAL? returns a 0 or 1 indicating the last programmed state of bit
4 on port 3.
Parameter Name Parameter Type Range of Values Default
DATA
n
Numeric BYTE
WORD
LWORd
none, 0, 1, 2, or 3
none, 0 or 2
none or 0
0
BIT
m
Numeric BYTE
WORD
LWORd
0–7
0–15
0–31
0