User`s manual
66 Agilent E1330B Digital I/O Module Command Reference
Chapter 5
:DIGital:DATAn[:type][:VALue]?
MEASure:DIGital:DATAn[:BYTE][:VALue]? reads one byte from 8-bit port n after
the completion of the handshake and returns a decimal number between 0 and 255.
MEASure:DIGital:DATAn:WORD[:VALue]? reads 2 bytes (one word) from 16-bit
port n after the completion of the handshake and returns a decimal number between
-32768 and 32767.
MEASure:DIGital:DATAn:LWORd[:VALue]? reads 4 bytes (one long word) from
the 32-bit port n after the completion of the handshake and returns a decimal number
between -2
31
and (2
31
-1).
Parameters
Comments • Input data from the Digital I/O is returned in decimal format. Other formats are
not supported for input, however, data output to the Digital I/O may be in
binary, octal, decimal, or hexadecimal.
• The keyword :LW32 may be used instead of :LWORd when using the
downloaded version of the SCPI driver.
• Chapter 4 - “Understanding the Agilent E1330B Digital I/O Module” describes
the byte order of multiple byte reads.
• :DATAn is the keyword used for commands relating to the data at port n.
The port number n must be the last character of the keyword without spaces.
• If n is omitted, port 0 is used.
• Related Commands: [SOURce:]DIGital:DATAn[:type][:VALue],
MEASure:DIGital:DATAn[:type]:BITm?
• *RST Condition: Set to input positive true on all ports.
Examples MEAS:DIG:DATA1? reads 8-bit port 1 data. If all data lines are set to 1, this
command returns the value
255.
MEAS:DIG:DATA0:LWORd? reads 32-bit port 0 data. If all data lines are set to 1,
this command returns the value
-1.
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