84 Agilent E1330B Digital I/O Module Command Reference
Chapter 5
DIGital:DATA
n
[:type][:VALue]
[SOURce:]DIGital:DATA
n
[:BYTE][:VALue] [<
base
>]<
value
>
writes data to 8-bit
port n. Values can be binary, octal, decimal, or hexadecimal.
[SOURce:]DIGital:DATA
n
:WORD[:VALue] [<
base
>]<
value
>
writes data to 16-bit
port n. Values can be binary, octal, decimal, or hexadecimal.
[SOURce:]DIGital:DATA
n
: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
•
:DATA
n 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:DATA
n
:BIT
m,
[SOURce:]DIGital:DATA
n
: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
Summary of Contents for E1330B
Page 2: ......
Page 10: ...8 Notes ...
Page 11: ...9 Notes ...
Page 12: ...10 Notes ...
Page 32: ...30 Configuring the Agilent E1330B Digital I O Chapter 2 Notes ...
Page 42: ...40 Using the Agilent E1330B Digital I O Module Chapter 3 Notes ...
Page 58: ...56 Understanding the Agilent E1330B Digital I O Module Chapter 4 Notes ...
Page 104: ...102 Agilent E1330B Digital I O Module Command Reference Chapter 5 Notes ...