User`s manual
84 Agilent E1330B Digital I/O Module Command Reference
Chapter 5
DIGital:DATAn[:type][:VALue]
[SOURce:]DIGital:DATAn[:BYTE][:VALue] [<base>]<value> writes data to 8-bit
port n. Values can be binary, octal, decimal, or hexadecimal.
[SOURce:]DIGital:DATAn:WORD[:VALue] [<base>]<value> writes data to 16-bit
port n. Values can be binary, octal, decimal, or hexadecimal.
[SOURce:]DIGital:DATAn:LWORd[:VALue] [<base>]<value> writes data to
32-bit port n. Values can be binary, octal, decimal, or hexadecimal.
Parameters
Comments • The keyword :LW32 may be used instead of :LWORd when using the
download version of the SCPI driver.
• base specifies the numeric format as decimal, hexadecimal, octal, or binary.
IEEE-488.2 specifies the following values for this parameter:
Decimal = no parameter
Hexadecimal = #H
Octal = #Q
Binary = #B
• :DATAn is the keyword used for commands relating to data output at port n.
The port number n must be the last character of the keyword without spaces.
• Related Commands: [SOURce:]DIGital:DATAn:BITm,
[SOURce:]DIGital:DATAn:POLarity
• *RST Condition: All ports are set for data input.
Examples DIG:DATA3 27 writes the binary equivalent of the decimal number 27 (00011011)
to 8-bit port 3.
DIG:DATA3 #B00011011 writes the same byte of data as in the example above to
port 3, but in binary format.
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
<
base>
Discrete None, #H, #Q, or #B Decimal
<
value>
Numeric BYTE
WORD
LWORd
-2
7
to (2
8
-1)
-2
15
to (2
16
-1)
-2
31
to (2
31
-1)
None