Understanding the Agilent E1330B Digital I/O Module
53
Chapter 4
Multiple Port Operations
The Digital I/O module supports multiple port operations. You can combine
operations using 2 or 4 ports with a single SCPI command. Multiple port
operations are shown in the SCPI command syntax as the optional keyword
[:type]
. For example, this SCPI command syntax initiates a handshake and
returns a value:
MEAS:DIG:DATA
n
[:type]?
The optional keyword
[:type]
is replaced by one of the following keywords:
The SCPI keyword
:DATA
n specifies the port to be used for operations by
replacing n with the port number. Multiple port operations have fixed values
allowed for n. For all operations, if n is omitted, port 0 is assumed. The
values allowed for n are:
For example, the following BASIC program code will obtain a decimal
value of the state of the 32 data lines contained in physical ports 0, 1, 2 and 3.
120
OUTPUT @Dio;"MEAS:DIG:DATA0:LWORD?"
130
ENTER @Dio;Result
140
DISP "32 bit longword at port 4 ";Result
Multiple Port
Handshaking
The SCPI command syntax to establish a multiple port handshake and set
handshake timing is:
[SOURce:]DIGital:DATA
n
[:type]:HANDshake[:MODE] <
mode
>
[SOURce:]DIGital:DATA
n
[:type]:HANDshake:DELay <
time
>
The optional keyword
[:type]
, parameter
DATA
n, handshake
<
mode
>
, and
handshake delay
<
time
>
, are all described earlier in this chapter. See the
sections “Handshake Modes”, “Handshake Timing”, and the introduction to
“Multiple Port Operations” for explanations of these keywords and
parameters.
:BYTE
This keyword, or no keyword (default), is used for 8-bit port
operations.
:WORD
This keyword is used to combine 2 adjacent ports for 16-bit port
operations.
:LWORd
This keyword is used to combine all 4 ports for 32-bit operations.
Operation
Values of
n
:BYTE
0, 1, 2, or 3
:WORD
0 or 2
:LWORd
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 ...