![Agilent Technologies E1330B User'S Manual And Scpi Programming Manual Download Page 55](http://html.mh-extra.com/html/agilent-technologies/e1330b/e1330b_users-manual-and-scpi-programming-manual_2867439055.webp)
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
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 ...