![Agilent Technologies E1330B Скачать руководство пользователя страница 68](http://html.mh-extra.com/html/agilent-technologies/e1330b/e1330b_users-manual-and-scpi-programming-manual_2867439068.webp)
66 Agilent E1330B Digital I/O Module Command Reference
Chapter 5
:DIGital:DATA
n
[:type][:VALue]?
MEASure:DIGital:DATA
n
[: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:DATA
n
: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:DATA
n
: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.
•
:DATA
n 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:DATA
n
[:type][:VALue]
,
MEASure:DIGital:DATA
n
[:type]:BIT
m
?
•
*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
Содержание E1330B
Страница 2: ......
Страница 10: ...8 Notes ...
Страница 11: ...9 Notes ...
Страница 12: ...10 Notes ...
Страница 25: ...Configuring the Agilent E1330B Digital I O Module 23 Chapter 2 Figure 2 6 J1 and J2 Connector Pinouts ...
Страница 32: ...30 Configuring the Agilent E1330B Digital I O Chapter 2 Notes ...
Страница 42: ...40 Using the Agilent E1330B Digital I O Module Chapter 3 Notes ...
Страница 58: ...56 Understanding the Agilent E1330B Digital I O Module Chapter 4 Notes ...
Страница 104: ...102 Agilent E1330B Digital I O Module Command Reference Chapter 5 Notes ...
Страница 146: ...144 Error Messages Appendix C Notes ...