Agilent Technologies E2290A Operating instructions

The test & measurement
equipment you need at
the price you want.
Alltest carries the world’s largest selection of
used/refurbished benchtop test & measurement
equipment at 50% the price of new.
O
Our equipment is guaranteed working, warrantied, and
available with certified calibration from our in-house staff
of technicians and engineers.
• 10+ full time technicians with over 150 years of
specialization
• 90 day warranty & 5 day right of return on all
equipment
•
• 1-3 year warranties for new and
premium-refurbished equipment
• Every unit tested to OEM specifications
• Satisfaction guaranteed
You have plans, we will help you achieve them.
Any project. Any budget.
Get a quote today!
CCall (732) 919-3339 or email sales@alltest.net.
t
Alltest Instruments, Inc.
500 Central Ave.
Farmingdale, NJ 07727
P: (732) 919-3339
F: (732) 919-3332
alltest.net
s
sales@alltest.net

Where to Find it - Online and Printed Information:
System installation (hardware/software) ............VXIbus Configuration Guide*
............................................................................Agilent VIC*
Module configuration and wiring.......................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 E2290A 16-Bit Digital I/O
User’s Manual and SCPI Programming Guide
Agilent M-Modules
*E2290-90000*
Manual Part Number: E2290-90000
Printed in Malaysia E0806

.

Contents
Contents 1
Warranty ....................................................................................................................... 5
Safety Symbols ............................................................................................................. 6
WARNINGS.................................................................................................................6
Declaration of Conformity............................................................................................7
User Notes..................................................................................................................... 8
Chapter 1
Getting Started .............................................................................................................11
What’s in this Manual?............................................................................................... 11
Module Description ....................................................................................................11
Agilent E2290A Features ....................................................................................11
Output Circuitry .................................................................................................. 12
Input Circuitry .....................................................................................................13
Wiring and Configuration........................................................................................... 14
Wiring to the Supplied Mating Connector .......................................................... 14
Agilent E2290A Digital I/O Wiring Information ................................................15
Chapter 2
SCPI Programming ..................................................................................................... 17
General Information....................................................................................................17
Example 1: Reset, Self Test, and Module ID ............................................................. 17
Example 2: Source and Sense (Output and Input)......................................................19
Example 3: Pattern Match........................................................................................... 21
Chapter 3
SCPI Command Reference ......................................................................................... 23
Command Fundamentals ............................................................................................23
DIAGnostic Subsystem............................................................................................... 26
DIAGnostic:INTerrupt[:LINe] <intr_line> ......................................................... 26
DIAGnostic:INTerrupt[:LINe]? .......................................................................... 27
DIAGnostic:TEST? ............................................................................................. 27
DISPlay:MONitor Subsystem..................................................................................... 29
DISPlay:MONitor[:STATe] 0 | 1 | ON | OFF ..................................................... 29
DISPlay:MONitor[:STATe]? .............................................................................. 29
INPut:DEBounce Subsystem......................................................................................30
INPut:DEBounce[:STATe] 0 | 1 | ON | OFF .......................................................30
INPut:DEBounce[:STATe]? ...............................................................................30
MEASure Subsystem.................................................................................................. 31
MEASure:DIGital:DATAn[:BYTE]:BITm? ...................................................... 31
MEASure:DIGital:DATAn[:BYTE][:VALue]? ................................................. 32
MEASure:DIGital:DATA0:WORD:BITm? ....................................................... 32
MEASure:DIGital:DATA0:WORD[:VALue]? .................................................. 32
SENSe Subsystem....................................................................................................... 33
SENSe[:EVENt][:PATTern] <pattern> .............................................................. 33
SENSe[:EVENt][:PATTern]? .............................................................................33
SENSe[:EVENt][:PATTern]:ENABle <mask> .................................................. 33
SENSe[:EVENt][:PATTern]:ENABle? .............................................................. 34
Agilent E2290A 16-Bit Digital I/O User’s Manual
Edition 1 Rev 2

2 Contents
SOURce Subsystem.................................................................................................... 35
[SOURce]:DIGital:DATAn[:BYTe]:BITm 0 | 1 ................................................ 35
[SOURce]:DIGital:DATAn[:BYTe]:BITm? ...................................................... 35
[SOURce]:DIGital:DATAn[:BYTe][:VALue] <data> ....................................... 36
[SOURce]:DIGital:DATAn[:BYTe][:VALue]? ................................................. 36
[SOURce]:DIGital:DATA0:WORD:BITm 0 | 1 ................................................. 36
[SOURce]:DIGital:DATA0:WORD:BITm? ....................................................... 37
[SOURce]:DIGital:DATA0:WORD[:VALue] <data> .......................................37
[SOURce]:DIGital:DATA0:WORD[:VALue]? .................................................. 37
[SOURce]:CONTrol[:ENABle]? ........................................................................ 38
STATus Subsystem..................................................................................................... 39
STATus:OPERation:CONDition? ...................................................................... 41
STATus:OPERation:ENABle <mask> ............................................................... 41
STATus:OPERation:ENABle? ...........................................................................42
STATus:OPERation[:EVENt]? ........................................................................... 42
STATus:PRESet .................................................................................................. 42
STATus:QUEStionable:CONDition? .................................................................43
STATus:QUEStionable:ENABle <mask> .......................................................... 43
STATus:QUEStionable:ENABle? ...................................................................... 44
STATus:QUEStionable[:EVENt]? ......................................................................44
SYSTem Subsystem ................................................................................................... 45
SYSTem:ERRor? ................................................................................................ 45
SYSTem:VERSion? ............................................................................................ 45
IEEE 488.2 Common Commands...............................................................................46
Agilent E2290A SCPI Command Quick Reference................................................... 47
Chapter 4
Register Programming ................................................................................................ 49
Introduction.................................................................................................................49
Block Diagram Description ........................................................................................ 49
Module Control ...................................................................................................49
ID EEPROM ....................................................................................................... 49
Input Circuit ........................................................................................................49
High Drive Circuit ............................................................................................... 49
Low Drive Circuit ............................................................................................... 50
Ground and Power Supply Conditioning ............................................................50
Register Addressing in the VXIbus Environment ...................................................... 51
Logical Address ................................................................................................... 51
A16/A24 Memory Mapping ................................................................................ 51
Determining a Module’s A16 Base Address .......................................................52
Addressing A16 Registers ................................................................................... 53
Addressing A24 Registers ................................................................................... 53
Program Example ....................................................................................................... 54
Registers in A16 Address Space................................................................................. 56
VXI ID Register .................................................................................................. 56
VXI Device Type Register .................................................................................. 56
VXI Status/Control Register ............................................................................... 57
Interrupt Selection Register .................................................................................58
Registers in A24 Address Space................................................................................. 60
Status Register ..................................................................................................... 60

Contents 3
Control Register .................................................................................................. 60
Output Register ................................................................................................... 61
Output Enable Register ....................................................................................... 61
Input Register ......................................................................................................62
Interrupt Registers .............................................................................................. 62
Compare Enable Register .................................................................................... 62
Compare Data Register ....................................................................................... 63
ID EEPROM Register ......................................................................................... 63
Appendix A
Specifications ................................................................................................................ 65
M-Module Specification Compliance.........................................................................65
Agilent E2290A Specifications ..................................................................................65

4 Contents

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: E2290A 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 inadequatemaintenance 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 actualamount 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 LOST PROFIT 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.
E2290A 16-Ch Digital I/O M-Module User's Manual and Programming Guide
Edition 1 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 AgilentTechnologiesSales 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 new Edition or Update also includes a revised copy ofthis documentation history page.
Edition 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .June 1997
Edition 1 Rev 2 . . . . . . . . . . . . . . . . . . . . . . . . . . .August 2006
Trademarks
Microsoft® is a U.S. registered trademark of Microsoft Corporation
Windows NT® is a U.S. registered trademark of Microsoft Corporation
Windows® and MS Windows® are U.S. registered trademarks of Microsoft Corporation

DECLARATION OF CONFORMITY
According to ISO/IEC Guide 22 and CEN/CENELEC EN 45014
7
Manufacturer’s Name: Agilent Technologies, Incorporated
Manufacturer’s Address: Measurement Product Generation Unit
815 14th ST. S.W.
Loveland, CO 80537 USA
Declares, that the product
Product Name: 16 Bit Digital I/O M Module
Model Number: E2290A
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
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:1997 +A1:1997 / EN 55011:1998
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 [1]
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%
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
IEC 950(1991) + A1(1992) + A2(1993) + A3(1994)
EN 60950(1992) + A1(1992) + A2(1993) + A3(1994)
CSA C22.2#950(1995)
UL 1950(1995)
Supplemental Information:
[1] The product was tested in a typical configuration with Agilent Technologies test systems.
September 5, 2000
Date Name
Quality Manager
Title
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
Getting Started
What’s in this Manual?
This manual contains a module description, configuration and wiring
information, register maps, and specifications for the Agilent E2290A
16-Bit Digital I/O M-Module.
The Agilent E2290A is intended to be installed on an M-Module Carrier.
When it is necessary to reference a particular carrier, the Agilent E2251
C-Size VXIbus M-Module Carrier will be used.
Module Description
The Agilent E2290A is a digital input/output M-Module containing 16
data/actuator lines. These data lines offer TTL compatible inputs and
open-drain outputs up to 30 volts. Each I/O line also provides active pull-up
and pull-down for actuating external devices such as:
•Relays and switches
•High frequency coax relays or microwave switches
•Programmable attenuators
•Optical Isolators
Agilent E2290A
Features •Sixteen Digital Inputs or Outputs. Data that is written (output) may
also be read back. Bits may be addressed as two 8-bit ports (Port 0 and
Port 1), one 16-bit port (Port 0), or individual bits can be accessed.
•Support of M-Module Specification Type C Interrupts for pattern
matching. An interrupt occurs (if enabled) when the incoming data
matches the pattern stored in the Compare Data Register.
•Debounce capability for data lines used as inputs. The debounce
circuitry allows incoming data to be debounced for a period of 3 mSec
before being latched into the Input Register. You can enable/disable
debounce for the Input Register, however, debounce is always active
for the input to the pattern match interrupt circuit.
•TTL compatible levels or open-drain outputs. The 16 data lines
provide for TTL compatible I/O (open-drain outputs up to 30 Volts,
requires external pull-up).
•Simplified Standard Commands forProgrammable Instruments (SCPI)
commands.
•There are no I/O handshaking lines/modes.

12 Getting Started
Output Circuitry Figure1-1 shows asimplified schematic ofone bit’s output circuitry andtwo
example applications. For the SCPI commands, sourcing a “1” means that
the output is driven high (2.9 Vdc or greater, sourcing up to 20 mA);
sourcing a“0” means the output is driven low (0.4 Vdc or less, sinking up to
200mA).
Caution Do not exceed the 30Vdc external voltage; doing so may
damage the module.
Figure 1-1. Simplified Digital Output Circuit
Data Output
High Drive
Data Output
Low Drive
+5Vdc
+5Vdc
Bit Output
Bit COM
+12 Vdc
+5Vdc

Getting Started 13
Input Circuitry Figure 1-2 shows a simplified schematic of one bit’s input circuitry and two
example applications. Because the input bit has its own pull-up resistor, the
bit can be used to detect switch closures to ground. Using external pull-ups,
it can also be used with digital logic “high” levels of up to 30 Vdc. When
used as digital inputs, a “HIGH” or “1” means a positive voltage (>1.8 Vdc)
is present and “LOW” or “0” means a voltage of <0.8 Vdc is present.
Caution Do not exceed the 30Vdc external voltage; doing so may
damage the module.
Figure 1-2. Simplified Digital Input Circuit
or or

14 Getting Started
Wiring and Configuration
This section describes how to connect user wiring to Agilent E2290A.
Note The procedures in this section assume the M-Module(s) have already been
installed into an M-Module Carrier. Since installation is dependent on the
carrier used, instructions for installing M-Modules into the carrier are not
included here. Refer to your M-Module carrier documentation for
installation instructions.
WARNING SHOCK HAZARD. Only service-trained personnel who are
aware of the hazards involved should install, remove, or
configure the modules. Before installing or removing any
module or carrier, disconnect power from the mainframe and
user wiring.
Caution MAXIMUM VOLTAGE/CURRENT. Maximum voltage that may be
applied (any I/O line to chassis) to the Agilent E2290A is 30
VDC.
Caution STATIC ELECTRICITY. Static electricity is a major cause of
component failure. To prevent damage to the electrical
components on an M-Module or the carrier, observe anti-static
techniques whenever installing, removing, or working on a
carrier or M-Module.
Wiring to the
Supplied Mating
Connector
Figure 1-3 shows the 44-pin user connector, its pinout, and a simplified
schematic for the input/output circuitry. Figure 1-4 shows how to wire and
assemble the supplied connector and hood.
Note Do not use the supplied hood if the Agilent E2290A is installed in one of
the two internal slots (M4 or M5) of the Agilent E2251A M-Module
Carrier.

Getting Started 15
Agilent E2290A Digital I/O Wiring Information
Figure 1-3. Agilent E2290A User Connector and I/O Schematic
CAUTION The maximum voltage is 30 VDC
(any I/O line to chassis or common).
+
_
TTL Vref
Data Input
Data Output
High Drive
Data Output
Low Drive
Bit Input / Output
Bit COM
+5Vdc
+5Vdc
Pin # Use Pin # Use Pin # Use
1 Bit 0 16 Bit 0 COM 31 Chassis
2 Bit 1 17 Bit 1 COM 32 Chassis
3 Bit 2 18 Bit 2 COM 33 Chassis
4 Bit 3 19 Bit 3 COM 34 Chassis
5 Bit 4 20 Bit 4 COM 35 Chassis
6 Bit 5 21 Bit 5 COM 36 Chassis
7 Bit 6 22 Bit 6 COM 37 Chassis
8 Bit 7 23 Bit 7 COM 38 Chassis
9 Bit 8 24 Bit 8 COM 39 Chassis
10 Bit 9 25 Bit 9 COM 40 Chassis
11 Bit 10 26 Bit 10 COM 41 Chassis
12 Bit 11 27 Bit 11 COM 42 Chassis
13 Bit 12 28 Bit 12 COM 43 Bit 15
14 Bit 13 29 Bit 13 COM 44 Bit 15 COM
15 Bit 14 30 Bit 14 COM
Data Port 0 Data Port 1

16 Getting Started
Note Do not use the supplied hood if the Agilent E2290A is installed in one of
the two internal slots (M4 or M5) of the Agilent E2251A M-Module
Carrier.
Figure 1-4. Assembling the Connector and Hood
1. If necessary, disassemble
the connector hood. Discard
4. Wire cable to connector.
5. Place connector and
the three self tapping screws
supplied with the hood.
3. Assemble bezel and
cable clamp before wiring
cable to connector.
6. Assemble connector, cable
strain relief, and hood.
Use the supplied M3x5
screws.
connector screws on bottom shell.
(24AWG or smaller)
2. Release the latch on the
side of the hood.

SCPI Programming 17
Chapter 2
SCPI Programming
General Information
This chapter describes how to program the Agilent E2290A Digital I/O
M-Module with the Standard Commands for Programmable Instruments
(SCPI).
Note Do not do register writes if you are controlling the module by a high level
driver such as SCPI or VXIplug&play. This is because the driver will not
know the module state and an interrupt may occur causing the driver and/or
command module to fail.
The following example programs were developed with the ANSI C
language using the Agilent VISA extensions. The programs were written
and tested in Microsoft®Visual C++ but should compile under any standard
ANSI C compiler.
To run the programs you must have the Agilent SICL Library, the Agilent
VISA extensions, and an Agilent 82340 or 82341 GPIB module installed
and properly configured in your PC. An Agilent E1406 Command Module
is required.
Example 1: Reset, Self Test, and Module ID
The following example reads the module ID string, performs module
self-test, and displays the results.
#include <visa.h>
#include <stdio.h>
#include <stdlib.h>
/* Interface address is 9, M-Module secondary address is 3*/
#define INSTR_ADDR “GPIB0::9::3::INSTR”
int main()
{ViStatus errStatus; /*Status from each VISA call*/
ViSession viRM; /*Resource mgr. session */
ViSession m_mod; /* M-module session */
char id_string[256]; /*ID string*/
char selftst_string[256]; /*self-test string*/
Table of contents
Other Agilent Technologies I/O System manuals