User`s manual

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:DATAn[:type]?
The optional keyword [:type] is replaced by one of the following keywords:
The SCPI keyword
:DATAn 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:DATAn[:type]:HANDshake[:MODE] <mode>
[SOURce:]DIGital:DATA
n[:type]:HANDshake:DELay <time>
The optional keyword [:type], parameter DATAn, 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