Agilent Technologies E1330B Owner's manual

Where to Find it - Online and Printed Information:
System installation (hardware/software) ............VXIbus Configuration Guide*
Agilent VIC (VXI installation software)*
Module configuration and wiring.......................This Manual
SCPI programming.............................................This Manual
SCPI example programs .....................................This Manual, Driver Disk
SCPI command reference ..................................This Manual
Register-Based Programming.............................This Manual
VXIplug&play programming ............................VXIplug&play Online Help
VXIplug&play example programs .....................VXIplug&play Online Help
VXIplug&play function reference......................VXIplug&play Online Help
Soft Front Panel information ..............................VXIplug&play Online Help
VISA language information................................Agilent VISA User's Guide
Agilent VEE programming information.............Agilent VEE User's Manual
*Supplied with Agilent Command Modules, Embedded Controllers, and VXLink.
Agilent E1330B
Quad 8-Bit Digital I/O Module
User’s Manual and SCPI Programming Guide
Agilent 75000 Series B
*E1330-90007*
Manual Part Number: E1330-90007
Printed in Malaysia E0606


Contents 1
Contents
Agilent E1330B User’s Manual
Warranty ....................................................................................................................... 5
Safety Symbols ............................................................................................................. 6
WARNINGS.................................................................................................................6
Declaration of Conformity............................................................................................7
User Notes..................................................................................................................... 8
Chapter 1
Getting Started .............................................................................................................11
Using This Chapter ..................................................................................................... 11
Technical Description ................................................................................................. 11
Instrument Definition.................................................................................................. 13
Downloading SCPI Drivers ........................................................................................ 13
Programming the Digital I/O Module.........................................................................13
SCPI Command Format Used in This Manual .................................................... 14
Specifying SCPI Commands ............................................................................... 14
Initial Operation.......................................................................................................... 16
Chapter 2
Configuring the Agilent E1330B Digital I/O Module ...............................................17
Using This Chapter ..................................................................................................... 17
Setting the Address Switch......................................................................................... 18
Enabling Pull-ups........................................................................................................ 19
Selecting the Interrupt Line ........................................................................................ 20
Combining the Flag Lines........................................................................................... 21
Digital I/O Module Peripheral Pinout.........................................................................22
Configuring for Isolated Digital I/O ........................................................................... 25
Connecting to a GPIO Peripheral ...............................................................................26
Using with External Pull-ups......................................................................................28
Typical Connection..................................................................................................... 29
Chapter 3
Using the Agilent E1330B Digital I/O Module ..........................................................31
Using This Chapter ..................................................................................................... 31
Addressing the Module...............................................................................................31
Operation Overview....................................................................................................32
Default and Reset States .............................................................................................33
Setting the Polarity...................................................................................................... 33
Setting the Handshake Mode ...................................................................................... 34
Handshake Timing .............................................................................................. 34
Inputting Data Bytes and Bits.....................................................................................35
Input .................................................................................................................... 35
Outputting Data Bytes and Bits ..................................................................................36
Output .................................................................................................................. 36
Multiple Port Operations ............................................................................................37
Using Trace Memory.................................................................................................. 38

2 Contents
Chapter 4
Understanding the Agilent E1330B Digital I/O Module ..........................................41
Using This Chapter ..................................................................................................... 41
Port Description .......................................................................................................... 41
Data Lines ........................................................................................................... 41
The FLG Line (Input) ..........................................................................................42
The CTL Line (Output) ....................................................................................... 42
The I/O Line (Output) ......................................................................................... 42
The STS Line ...................................................................................................... 43
The PIR Line ....................................................................................................... 43
The RES Line ...................................................................................................... 43
Default and Reset States .............................................................................................43
Setting the Polarity...................................................................................................... 43
Using the Handshake Modes ...................................................................................... 44
Handshake Modes ............................................................................................... 45
Inputting Data Bytes and Bits.....................................................................................50
Bit Input ...............................................................................................................50
Byte Input ............................................................................................................50
Outputting Data Bytes and Bits ..................................................................................51
Bit Output ............................................................................................................ 51
Byte Output ......................................................................................................... 52
Multiple Port Operations ............................................................................................53
Multiple Port Handshaking .................................................................................53
Multiple Port Input/Output ..................................................................................54
Chapter 5
Agilent E1330B Digital I/O Module Command Reference ......................................57
Using This Chapter ..................................................................................................... 57
Command Types......................................................................................................... 57
Common Command Format ................................................................................ 57
SCPI Command Format ...................................................................................... 57
Linking Commands ............................................................................................. 59
SCPI Command Reference ......................................................................................... 60
DISPlay Subsystem..................................................................................................... 61
:MONitor:PORT .................................................................................................. 61
:MONitor:PORT? ................................................................................................ 62
:MONitor[:STATe] .............................................................................................62
:MONitor[:STATe]? ............................................................................................ 63
MEASure Subsystem.................................................................................................. 64
:DIGital:DATAn[:type]:BITm? .......................................................................... 64
:DIGital:DATAn[:type]:TRACe ......................................................................... 65
:DIGital:DATAn[:type][:VALue]? ..................................................................... 66
:DIGital:FLAGn? ................................................................................................ 67
MEMory Subsystem ................................................................................................... 68
:DELete:MACRo ................................................................................................ 68
:VME:ADDRess .................................................................................................. 69
:VME:ADDRess? ................................................................................................ 69
:VME:SIZE ......................................................................................................... 70

Contents 3
Chapter 5
Agilent E1330B Digital I/O Module Command Reference (continued)
MEMory Subsystem (continued)
:VME:SIZE? ........................................................................................................ 70
:VME:STATe ...................................................................................................... 71
:VME:STATe? .................................................................................................... 71
[SOURce:] Subsystem ................................................................................................ 72
DIGital:CONTroln:POLarity .............................................................................. 74
DIGital:CONTroln:POLarity? ............................................................................ 74
DIGital:CONTroln[:VALue] .............................................................................. 75
DIGital:CONTroln[:VALue]? .............................................................................75
DIGital:DATAn[:type]:BITm............................................................................. 76
DIGital:DATAn[:type]:BITm? ............................................................................ 77
DIGital:DATAn[:type]:HANDshake:DELay ..................................................... 78
DIGital:DATAn[:type]:HANDshake:DELay? ....................................................79
DIGital:DATAn[:type]:HANDshake[:MODE] ..................................................80
DIGital:DATAn[:type]:HANDshake[:MODE]? ................................................. 81
DIGital:DATAn[:type]:POLarity ........................................................................ 82
DIGital:DATAn[:type]:POLarity? ...................................................................... 82
DIGital:DATAn[:type]:TRACe .......................................................................... 83
DIGital:DATAn[:type][:VALue] ........................................................................ 84
DIGital:DATAn[:type][:VALue]? ......................................................................85
DIGital:FLAGn:POLarity ................................................................................... 86
DIGital:FLAGn:POLarity? ................................................................................. 86
DIGital:HANDshaken:DELay ............................................................................ 87
DIGital:HANDshaken:DELay? ..........................................................................88
DIGital:HANDshaken[:MODE] ......................................................................... 88
DIGital:HANDshaken[:MODE]? ........................................................................ 89
DIGital:IOn? ........................................................................................................ 89
DIGital:TRACe:CATalog? .................................................................................90
DIGital:TRACe[:DATA] ....................................................................................90
DIGital:TRACe[:DATA]? .................................................................................. 91
DIGital:TRACe:DEFine ...................................................................................... 91
DIGital:TRACe:DEFine? .................................................................................... 92
DIGital:TRACe:DELete:ALL .............................................................................92
DIGital:TRACe:DELete[:NAME] ...................................................................... 92
STATus Subsystem..................................................................................................... 93
:OPERation:CONDition? ....................................................................................94
:OPERation:ENABle ........................................................................................... 94
:OPERation:ENABle? ......................................................................................... 94
:OPERation[:EVENt]? ........................................................................................ 94
:PRESet ............................................................................................................... 94
:QUEStionable:CONDition? ...............................................................................95
:QUEStionable:ENABle ...................................................................................... 95
:QUEStionable:ENABle? .................................................................................... 95
:QUEStionable[:EVENt]? ...................................................................................95

4 Contents
Chapter 5 (continued)
SYSTem Subsystem ................................................................................................... 96
:CDEScription? ................................................................................................... 96
:CTYPe? .............................................................................................................. 96
:ERRor? ............................................................................................................... 97
:VERSion? ........................................................................................................... 97
IEEE 488.2 Common Commands...............................................................................98
Command Quick Reference........................................................................................99
Appendix A
Agilent E1330B Digital I/O Specifications ...............................................................103
Appendix B
Agilent E1330B Digital I/O Module Register Information ....................................105
Using This Appendix................................................................................................ 105
Addressing the Registers .......................................................................................... 105
The Base Address .............................................................................................. 106
Register Offset ................................................................................................... 108
Reset and Registers...................................................................................................109
Register Definitions .................................................................................................. 109
Register Descriptions................................................................................................ 111
Manufacturer Identification Register ................................................................ 111
Device Identification Register ........................................................................... 111
Card Status/ Control Register ............................................................................ 111
Port Interrupt Control Register .......................................................................... 112
Port Transfer Control Register .......................................................................... 113
Port Control/ Status Register .............................................................................114
Port Data Register ............................................................................................. 115
Port Handshake Register ................................................................................... 116
Port Delay Register ........................................................................................... 117
Port Normalization Register .............................................................................. 118
A Register-Based Output Algorithm ........................................................................119
A Register-Based Input Algorithm........................................................................... 120
Programming Examples............................................................................................ 121
System Configuration ........................................................................................ 121
Resetting the Module ........................................................................................122
Reading the ID, Device Type, and Status Registers ......................................... 123
Writing an 8-Bit Byte ........................................................................................ 125
Writing a 16-Bit Word ......................................................................................127
Reading an 8-Bit Byte ....................................................................................... 128
Reading a 16-Bit Word ..................................................................................... 130
Debugging Basic Register-Based Programs .....................................................130
PIR Interrupts on the Agilent E1330 .................................................................131
Agilent E1330B Non-data Line I/O ..................................................................136
Embedded Computer Example .......................................................................... 140
Appendix C
Error Messages ..........................................................................................................143

5
Certification
Agilent Technologies, Inc. certifies that this product met its published specifications at the time of shipment from the factory. Agilent
Technologies further certifies that its calibration measurements are traceable to the United States National Institute of Standards and
Technology (formerly National Bureau of Standards), to the extent allowed by that organization's calibration facility, and to the
calibration facilities of other International Standards Organization members.
AGILENT TECHNOLOGIES WARRANTY STATEMENT
PRODUCT: E1330B DURATION OF WARRANTY: 1 year
1. Agilent warrants Agilent hardware, accessories and supplies against defects in materials and workmanship for the period specified
above (one year). If Aglent receives notice of such defects during the warranty period, Agilent will, at its option, either repair or replace
products which prove to be defective. Replacement products may be either new or like-new.
2. Agilent warrants that Agilent software will not fail to execute its programming instructions, for the period specified above, due to
defects in material and workmanship when properly installed and used. If Agilent receives notice of such defects during the warranty
period, Agilent will replace software media which does not execute its programming instructions due to such defects.
3. Agilent doesnotwarrant thatthe operation ofAgilent products will be interrupted or error free. If Agilentisunable, within a reasonable
time, to repair or replace any product to acondition as warranted, customer will be entitled to a refund of the purchase price upon prompt
return of the product.
4. Agilent products may contain remanufactured parts equivalent to new in performance or may have been subject to incidental use.
5. The warranty period begins on the date of delivery or on the date of installation if installed by Agilent. If customer schedules or delays
Agilent installation more than 30 days after delivery, warranty begins on the 31st day from delivery.
6. Warranty does notapply to defectsresulting from (a) improper or inadequate maintenance or calibration, (b) software,interfacing, parts
or supplies not supplied by Agilent Technologies, (c) unauthorized modification or misuse, (d) operation outside of the published
environmental specifications for the product, or (e) improper site preparation or maintenance.
7. TO THE EXTENT ALLOWED BY LOCAL LAW, THE ABOVE WARRANTIES ARE EXCLUSIVE AND NO OTHER
WARRANTY OR CONDITION, WHETHER WRITTEN OR ORAL, IS EXPRESSED OR IMPLIED AND AGILENT
SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OR CONDITIONS OF MERCHANTABILITY, SATISFACTORY
QUALITY, AND FITNESS FOR A PARTICULAR PURPOSE.
8. Agilent will be liable for damage totangible property per incident up to the greater of$300,000 or the actual amount paid for the product
that is the subject of the claim, and for damages for bodily injury or death, to the extent that all such damages are determined by a court
of competent jurisdiction to have been directly caused by a defective Agilent product.
9. TO THE EXTENT ALLOWED BY LOCAL LAW, THE REMEDIES IN THIS WARRANTY STATEMENT ARE CUSTOMER’S
SOLE AND EXLUSIVE REMEDIES. EXCEPT AS INDICATED ABOVE, IN NO EVENT WILL AGILENT OR ITS SUPPLIERS BE
LIABLE FOR LOSS OF DATA OR FOR DIRECT, SPECIAL, INCIDENTAL, CONSEQUENTIAL (INCLUDING LOSTPROFIT OR
DATA), OR OTHER DAMAGE, WHETHER BASED IN CONTRACT, TORT, OR OTHERWISE.
FOR CONSUMER TRANSACTIONS IN AUSTRALIA AND NEW ZEALAND: THE WARRANTY TERMS CONTAINED IN THIS
STATEMENT, EXCEPT TO THE EXTENT LAWFULLY PERMITTED, DO NOT EXCLUDE, RESTRICT OR MODIFY AND ARE
IN ADDITION TO THE MANDATORY STATUTORY RIGHTS APPLICABLE TO THE SALE OF THIS PRODUCT TO YOU.
U.S. Government Restricted Rights
The Software and Documentation have been developed entirely at private expense. They are delivered and licensed as "commercial
computer software" as defined in DFARS 252.227- 7013 (Oct 1988), DFARS 252.211-7015 (May 1991) or DFARS 252.227-7014 (Jun
1995), as a "commercial item" as defined in FAR 2.101(a), or as "Restricted computer software" as defined in FAR 52.227-19 (Jun
1987)(or any equivalent agency regulation or contract clause), whichever is applicable. You have only those rights provided for such
Software and Documentation by the applicable FAR or DFARS clause or the Agilent standard software agreement for the product
involved.
IEC Measurement Category II Overvoltage Protection
This is a measurement Category II product designed for measurements at voltages up to 300V from earth, including measurements of
voltages at typical mains socket outlets. The product should not be used to make voltage measurements on a fixed electrical installation
including building wiring, circuit breakers, or service panels.
E1330B Quad 8-Bit Digital I/OModule User's Manual
Edition 7 Rev 2
Copyright © 1997-2006 Agilent Technologies, Inc. All Rights Reserved.

6
Safety Symbols
Instruction manual symbol affixed to
product. Indicates thatthe user must refer to
the manual for specific WARNING or
CAUTION information to avoid personal
injury or damage to the product.
Alternating current (AC)
Instruction manual symbol affixed to
product. Indicates thatthe user must refer to
the manual for specific WARNING or
CAUTION information to avoid personal
injury or damage to the product.
Indicates the field wiring terminal that must
be connected to earth ground before
operating the equipment—protects against
electrical shock in case of fault.
Direct current (DC).
Indicates hazardous voltages.
or Frameorchassisgroundterminal—typically
connects to the equipment's metal frame.
WARNING Calls attention to a procedure, practice, or
condition that could cause bodily injury or
death.
CAUTION Calls attention to a procedure, practice, or
conditionthatcouldpossiblycausedamageto
equipment or permanent loss of data.
WARNINGS
The following general safety precautions must be observed during all phases of operation, service, and repair of this product. Failure to
comply with these precautions or with specific warnings elsewhere in this manual violates safety standards of design, manufacture, and
intended use of the product. Agilent Technologies, Inc. assumes no liability for the customer's failure to comply with these requirements.
Ground the equipment: For Safety Class 1 equipment (equipment having a protective earth terminal), an uninterruptible safety earth
ground must be provided from the mains power source to the product input wiring terminals or supplied power cable.
DO NOT operate the product in an explosive atmosphere or in the presence of flammable gases or fumes.
For continued protection against fire, replace the line fuse(s) only with fuse(s) of the same voltage and current rating and type. DO NOT
use repaired fuses or short-circuited fuse holders.
Keep away from live circuits: Operating personnel must not remove equipment covers or shields. Procedures involving the removal of
covers or shields are for use by service-trained personnel only. Under certain conditions, dangerous voltages may exist even with the
equipment switched off. To avoid dangerous electrical shock, DO NOT perform procedures involving cover or shield removal unless you
are qualified to do so.
DO NOT operate damaged equipment: Whenever it is possible that the safety protection features built into this product have been
impaired, either through physical damage, excessive moisture, or any other reason, REMOVE POWER and do not use the product until
safe operation can be verified by service-trained personnel. If necessary, return the product to an Agilent TechnologiesSales and Service
Office for service and repair to ensure that safety features are maintained.
DO NOT service oradjustalone: Do not attempt internal service or adjustment unless another person, capable of rendering first aid and
resuscitation, is present.
DO NOT substitute parts or modify equipment: Because of the danger of introducing additional hazards, do not install substitute parts
or perform any unauthorized modification to the product. Return the product to an Agilent Technologies Sales and Service Office for
service and repair to ensure that safety features are maintained.
Documentation History
All Editions and Updates of this manual and their creation date are listed below. The first Edition of the manual is Edition 1. The Edition
number increments by 1 whenever the manual is revised. Updates, which are issued between Editions, contain replacement pages to
correct or add additional information to the current Edition of the manual. Whenever a new Edition is created, it will contain all of the
Update information for the previous Edition. Each newEdition or Update also includes a revised copy ofthis documentation history page.
Edition 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Edition 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . .September 1990
Edition 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . April 1992
Edition 4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . .September 1992
Edition 5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . November 1993
Edition 6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .June 1995
Edition 7 (Part Number E1330-90007) . . . . . . . . . . .May 1997
Edition 7 Rev 2 (Part Number E1330-90007). . . . . .June 2006

DECLARATION OF CONFORMITY
According to ISO/IEC Guide 22 and CEN/CENELEC EN 45014
7
Manufacturer’s Name: Agilent Technologies, Incorporated
Manufacturer’s Address: 815 – 14th St. SW
Loveland, Colorado 80537
USA
Declares, that the product
Product Name: Quad 8 Bit Digital I/O
Model Number: E1330B
Product Options: This declaration covers all options of the above product(s).
Conforms with the following European Directives:
The product herewith complies with the requirements of the Low Voltage Directive 73/23/EEC and the EMC Directive 89/336/EEC
(including 93/68/EEC) and carries the CE Marking accordingly.
Conforms with the following product standards:
EMC Standard
IEC 61326-1:1997+A1:1998 / EN 61326-1:1997+A1:1998
CISPR 11:1990 / EN 55011:1991
IEC 61000-4-2:1995+A1:1998 / EN 61000-4-2:1995
IEC 61000-4-3:1995 / EN 61000-4-3:1995
IEC 61000-4-4:1995 / EN 61000-4-4:1995
IEC 61000-4-5:1995 / EN 61000-4-5:1995
IEC 61000-4-6:1996 / EN 61000-4-6:1996
IEC 61000-4-11:1994 / EN 61000-4-11:1994
Canada: ICES-001:1998
Australia/New Zealand: AS/NZS 2064.1
Limit
Group 1 Class A
4kV CD, 8kV AD
3 V/m, 80-1000 MHz
0.5kV signal lines, 1kV power lines
0.5 kV line-line, 1 kV line-ground
3V, 0.15-80 MHz I cycle, 100%
Dips: 30% 10ms; 60% 100ms
Interrupt > 95%@5000ms
The product was tested in a typical configuration with Agilent Technologies test systems.
Safety IEC 61010-1:1990+A1:1992+A2:1995 / EN 61010-1:1993+A2:1995
Canada: CSA C22.2 No. 1010.1:1992
UL 3111-1: 1994
1 June 2001
Date Ray Corson
Product Regulations Program Manager
For further information, please contact your local Agilent Technologies sales office, agent or distributor.
Authorized EU-representative: Agilent Technologies Deutschland GmbH, Herrenberger Straβe 130, D 71034 Böblingen, Germany

8
Notes:

9
Notes:

10
Notes:

Getting Started 11
Chapter 1
Chapter 1
Getting Started
Using This Chapter
This chapter describes the Quad 8-bit Digital I/O Module and how to
program the Module using SCPI (Standard Commands for Programmable
Instruments) commands. This chapter contains the following sections:
•Technical Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Page 11
•Instrument Definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Page 13
•Downloading SCPI Drivers . . . . . . . . . . . . . . . . . . . . . . . . . Page 13
•Programming the Digital I/O Module. . . . . . . . . . . . . . . . . . Page 13
•Initial Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Page 16
Technical Description
The E1330B Quad 8-Bit Digital I/O Module (referred to as the Digital I/O
module) is a four port digital input/output module intended for data
communication and digital control in electronic environments. The Digital
I/O module is compatible with TTL levels (0-5V) or CMOS levels (using
external pull-ups).The Digital I/O module complies with VXIbus (VMEbus
Extensions for Instrumentation) definitions for the P1 bus connector on
B-sized modules. A jumper on the module sets the VXIbus interrupt level.
Figure 1-1. Agilent E1330B Digital I/O Module

12 Getting Started Chapter 1
Each port is identical and consists of 6 control lines and 8 data lines. There
are 7 registers for control and status on each port. In addition, the module
also has Manufacturer ID, Device Type, and Module Status/Control
Registers. Figure 1-1 shows the locations of the ports and a simplified
diagram of a single port. Of the seven control lines, three (I/O, CTL, and
FLG) are used with SCPI commands and three (RES, STS, and PIR) are
controlled through register access. Chapter 4 — “Understanding the
Agilent E1330B Digital I/O Module” contains detailed descriptionsof these
lines.
Each port has two sets of hardware configuration jumpers. One set of
jumpers allows you to connect the FLG lines together for multi-port data
transmission. Another jumper selects either open collector operation or
internal pull-up to TTL compatible levels on the data lines. Chapter 2 —
“Configuring the AgilentE1330B Digital I/O Module” describes how to set
these jumpers.
SCPI commands provided for the Digital I/O allowoperationon a single bit,
8-bit "BYTE" format, 16-bit "WORD" format (using 2 ports), or 32-bit
"LWORd" format (using 4 ports).
Table 1-1 shows the mapping of bit numbers from the 8-bit ports to the
16- or 32-bit ports. Chapter 5 — “Agilent E1330B Digital I/O Command
Reference” describes each command in detail and Chapter 3 — “Using the
Agilent E1330B Digital I/O Module” gives examples of the use of SCPI
commands.
Two 3-meter, 60-wire ribbon cables with an insulation displacement header
connector (ribbon cable connector) on one end are included with the Digital
I/O module. Additional cable sets can be ordered (Agilent part number
E1330-61601) from your nearest Agilent Technologies Sales Office.
Table 1-1. Data Lines
8-bit (BYTE) Operations
Port # 0 1 2 3
Bit designations 7------0 7------0 7------0 7------0
16-bit (WORD) Operations
Port # 0 2
Bit designations 15------8 7------0 15------8 7------0
32-bit (LWORd) Operations
Port # 0
Bit designations 31------24 23------16 15------8 7------0

Getting Started 13
Chapter 1
Instrument Definition
Each Digital I/O module installed in an Agilent mainframe is treated as an
independent instrument; having a unique secondary GPIB address. Each
instrument isalso assigneda dedicated error queue, input andoutput buffers,
status registers and, if applicable, dedicated mainframe memory space for
readings or data. Multiple Digital I/O modules cannot be combined into a
single instrument.
Downloading SCPI Drivers
The Agilent Digital I/O Driver allows the Agilent E1330B module to
operate with either B-size mainframes or Agilent E1405/06 Command
Modules in a C-size mainframe. The driver implements the Standard
Commands for Programmable Instrumentation (SCPI) command language.
The B-size Agilent E1300/E1301Mainframe has abuilt in driver, or can use
a downloadable driver. The two drivers are slightly different and the
differences are detailed in Chapter 5 — “Agilent E1330B Digital I/O
Command Reference”.
To use the Agilent E1330B with a C-size mainframe and command module,
you must use a downloadable driver. The downloadable driver name for the
Digital I/Omodule is “DIG_IO”.The procedure fordownloadingthe drivers
is contained in the Agilent E1405B and Agilent E1406A Command Module
User Guides.
Programming the Digital I/O Module
To program the Digital I/O module using SCPI commands, you will need to
know the controller language and interface addresses you will be using. See
the Agilent 75000 Series B or Series C Installation and Getting Started
Guide for detailed interface addressingand controller language information.
Note This discussion applies only to SCPI (Standard Commands for
Programmable Instruments) programming. See Appendix B — “Digital I/O
Register Information” for details on register addressing. Do not mix SCPI
programming and direct register access.

14 Getting Started Chapter 1
SCPI Command
Format Used in This
Manual
SCPI commands can be used in either long or short form. A long form
example is:
DISPlay:MONitor ON
The same command, without the lower case letters, is the short form.
For example:
DISP:MON ON
Either the long form or the short form commands can be used to perform the
same result. The long and short forms can also be mixed within the same
program code. The commands are case insensitive, either upper or lower
case letters are accepted.
In the command examples shown above, the item enclosed in <>is a
parameter required to use the command, however, do not include the
brackets when sending the command. In this example, the parameter input
can be replaced with any one of the following: 0, 1, OFF, or ON. The
allowable values of the parameters are given in Chapter 5 — “Agilent
E1330B Digital I/O Module Command Reference”. You must include at
least one space between the keywords and the parameter.
Some commands are shown with items enclosed in square brackets ([]).
These are implied or optional items that do not have to be included. For
example, the complete command syntax listing for the first example is:
DISPlay:MONitor[:STATe] <0|1 or OFF|ON>
The item enclosed in brackets, [:STATe], does not have to be included for the
command to work. Complete descriptions of the SCPI command language,
syntax, parameter types, and usage are in Chapter 5 of this manual.
Specifying SCPI
Commands SCPI commands related to the Digital I/O module use three types of
parameters to specify a port number, a bit number, or a multiple port
combining operation. Each type is briefly described here. Descriptions and
examples of usage can be found in Chapter 3 of this manual.
Specifying a Port The Digital I/O module has four identical ports numbered from 0 to 3. SCPI
commands that relate to a specific port use a special parameter to indicate
the port number. For example:
[SOURce:]DIGital:DATAn<value>
This command writes the parameter <value> to the port specified by the n
portion of the DATA keyword. Replace the nwith the port number, making
the number the last character of the DATA keyword without spaces. For
example, to set all port 2 data lines to logical zero, use the command:
[SOURce:]DIGital:DATA2 0
The value of nmay vary for multiple port commands and operations. A
description of multiple port commands is on page 15.

Getting Started 15
Chapter 1
Specifying a Bit Each of the four ports on the module has eight bi-directional data lines,
corresponding to eight programmable data bits. Some SCPI commands
allow you manipulate or read these bits individually. For example:
MEASure:DIGital:DATAn:BITm?
This command reads the state of a bit, specified by m, on port n. The result
will be either 0 or 1, indicating the current logical state of the bit. Replace m
with the desired bit number, and nwith the desired port number, making
each number the last characters of the DATA and BIT keywords without
spaces. For example, to read bit 7 on port 0, use the following command:
MEASure:DIGital:DATA0:BIT7?
For single ports, the value of mcan range from 0 to 7. Some multiple port
operations and commands may allow bit numbers to range from 0 to 31.
Specifying Multiple Port
Operations The Digital I/O module allows you to set or read multiple ports or bits with
a single command. For example:
MEASure:DIGital:DATAn[:type]?
Thiscommand uses an optional keyword, [:type],tospecifyhowmanyports
are combined in a single returned value. The lower case keyword [:type] is
replaced with oneof a fixed set of keywords.For example, toread all 4 ports
(all 32-bits) as a single returned value, use the command:
MEASure:DIGital:DATA0:LWORd?
Keywords are provided to allow port combinations of 16- or 32-bits. Using
multiple ports is described in more detail in Chapter 4 of this manual.

16 Getting Started Chapter 1
Initial Operation
Use the following example to verify initial operation. The example first sets
and then queries the polarity of a logical true condition on the port 0 FLG
line. The example uses an HP Series 200/300 Computer with BASIC as the
programming language. The computer is connected to an Agilent E1301
Mainframe using the General Purpose Interface Bus (GPIB)*. The GPIB
interface select code is 7, the GPIB primary address is 09, and the GPIB
secondary address (used to specify the Digital I/O module) is 18. Refer to
the B-Size Installation and Getting Started Guide for more details.
10 ASSIGN @Dio TO 70918 !Sets an I/O path to the module.
20 DIM Polarity$[3]
30 OUTPUT @Dio;"*RST" !Reset the module.
40 OUTPUT @Dio;"*OPC?" !Wait for the module to finish.
50 ENTER @Dio;Ready !Hold here until command is
finished.
60 OUTPUT @Dio;"SOUR:DIG:FLAG0:POL POS;*OPC?"
!Set POSitive polarity.
70 ENTER @Dio;Ready !Wait for finish.
80 OUTPUT @Dio;"SOUR:DIG:FLAG0:POL?"
!Query the polarity state.
90 ENTER @Dio;Polarity$ !Get the result.
100 IF Polarity$ <> "POS" THEN !Check the result.
110 DISP "Polarity Check ERROR" !Error discovered.
120 PAUSE !Pause on error.
130 ELSE
140 DISP"Polarity set to "&Polarity$
150 END IF
160 OUTPUT @Dio;"SOUR:DIG:FLAG0:POL NEG;*OPC?"
!Set NEGative polarity.
170 ENTER @Dio;Ready !Wait for finish.
180 OUTPUT @Dio;"SOUR:DIG:FLAG0:POL?"
!Query the polarity state.
190 ENTER @Dio;Polarity$ !Get the result.
200 IF Polarity$ <> "NEG" THEN !Check the result.
210 DISP "Polarity Check ERROR" !Error discovered.
220 PAUSE !Pause on error.
230 ELSE
240 DISP"Polarity set to "&Polarity$
250 END IF
260 OUTPUT @Dio;"*RST" !Restore the module.
270 OUTPUT @Dio;"*OPC?" !Wait for the module to finish.
280 ENTER @Dio;Ready
290 END
* GPIB is the implementation of IEEE Std 488.1-1984.

Configuring the Agilent E1330B Digital I/O Module 17
Chapter 2
Chapter 2
Configuring the Agilent E1330B Digital I/O
Module
Using This Chapter
This chapter shows how to configure the Digital I/O module for use in a
VXIbus mainframe, connect peripheral devices, and configure the module
foroperation.Referto Figure 2-1 for locations ofjumpersandswitches.This
chapter contains the following sections:
•Setting the Address Switch . . . . . . . . . . . . . . . . . . . . . . . . . . Page 18
•Enabling Pull-ups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Page 19
•Selecting the Interrupt Line. . . . . . . . . . . . . . . . . . . . . . . . . . Page 20
•Combining the Flag Lines. . . . . . . . . . . . . . . . . . . . . . . . . . . Page 21
•Digital I/O Module Peripheral Pinout. . . . . . . . . . . . . . . . . . Page 22
•Configuring for Isolated Digital I/O . . . . . . . . . . . . . . . . . . . Page 25
•Connecting to a GPIO Peripheral . . . . . . . . . . . . . . . . . . . . . Page 26
•Using with External Pull-ups . . . . . . . . . . . . . . . . . . . . . . . . Page 28
•Typical Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Page 29
Figure 2-1. Agilent E1330B Digital I/O Module

18 Configuring the Agilent E1330B Digital I/O Chapter 2
Setting the Address Switch
Refer to Figure 2-1. In the center rear of the module, next to the P1
connector, you will find the logical address switch. Its factory setting is 144;
rockers 4 and 7 are closed, all others are open. You can select the address of
the Digital I/O module to any number 0–255 (decimal). The default setting
of the address switch is shown in Figure 2-2.
Note To be recognized as an instrument when you are using the Digital I/O
module in an Agilent E1300/1301 Mainframe or with an Agilent E1405 or
E1406 Command Module, the logical address must be set to a multiple of 8.
Figure 2-2. Logical Address Switch Set at 144
Table of contents
Other Agilent Technologies I/O System manuals
Popular I/O System manuals by other brands

Measurement Computing
Measurement Computing USB-3104 user guide

National Instruments
National Instruments PXI-7854 Getting started

CREVIS
CREVIS FnIO SSeries quick guide

IFM
IFM ECOMAT 300 AL1000 Device manual

RTS
RTS AIO-16 Technical bulletin

Allen-Bradley
Allen-Bradley 1769-IQ32 Installation instructions manual