You are on page 1of 4

A G R E AT E R M E A S U R E O F C O N F I D E N C E

VXI, PXI, or GPIB: Figure 2: GPIB devices can be connected in a


star topology.

Which to use?
Andy Toth, Keithley Instruments, Inc.

Choosing the right platform for your ATE computer, the natural choice was to use the
can save money and work—and improve computer’s RS-232 port, but this proved in-
results. adequate for anything but the simplest tasks.

T
HP-IB, developed in the mid-’60s, quickly
HERE are several ways to put to- became the most popular instrumentation
gether an instrumentation system. bus of all time under the name GPIB (gen-
One way is to “rack and stack” eral purpose interface bus). Keithley Instru-
stand-alone boxes and connect ments’ sixth Survey of Measurement Trends
them to a computer via the well- found 53 percent of respondents currently
known GPIB. This makes it easy to swap out use GPIB and 42 percent are planning to use
instruments and create new configurations it in the future. It’s an international standard
quickly and easily. Another way is to use in- governed by IEEE-488.1 and IEEE-488.2 in
struments on VXI or PXI cards that plug into
a backplane. That seems very neat, with the
Figure 3: An alternate GPIB topology is linear.
computer and the instruments it controls all
in the same card cage, but not all instruments
are available as plug-in cards. the U.S. and IEC 60625-1 and IEC 60625-2
Experience has shown that it’s seldom internationally.
possible to put together a complete system GPIB is a byte serial, bit parallel bus (Fig-
using all bus-based or all stand-alone instru- ure 1) that uses a three-wire handshake and
ments. Generally, there will be some of both. can connect up to 15 instruments (devices) to
This article will go over the technical char- one computer (controller). It uses a 24-con-
acteristics of GPIB, VXI, and PXI-based ductor cable with up to two meters between
systems, explain their advantages and limita- devices and 20 meters overall length in star
tions, and give some pointers on where each (Figure 2), linear (Figure 3), or mixed to-
is best applied. pology. Maximum data rate is 1Mbyte/s,
although as cable length increases, this can
GPIB decrease to 250–500kbytes/s. In the end, the
There was a time when all electronic test Figure 1: GPIB is a byte serial, bit parallel devices on the bus set the overall data rate.
bus that uses a three-wire handshake and can
equipment was built in individual boxes. connect up to 15 instruments (devices) to one The programming language for GPIB
When it came time to connect them to a computer (controller). systems, called SCPI (Standards Committee

VXI, PXI, or GPIB: Which to use? April 2004 1


for Programmable Instruments), allows the
same commands to be used for any instru-
ment that can execute them. For example,
MEASURE:VOLTAGE:DC? means “read a
DC voltage” to any instrument that can make
a DC voltage reading. SCPI also includes in-
strument-specific commands that work only
on certain devices.
SCPI’s big advantage is that it allows a
great many instruments to be controlled by
the same language, and it can be used not
Figure 4: Some specialized instruments, like the Keithley Model 2800 RF Power Analyzer, are only
only with GPIB instruments, but with VXI available in GPIB-connected boxes.
as well. Its one drawback is that, because it’s
very detailed, it can take a while to learn. be accessed via Ethernet. There is also a With all this going on, GPIB’s place
The syntax is fairly straightforward, how- method of simulating GPIB on IEEE-1394 seems assured into the future.
ever, and it has great power. It’s controlled (FireWire) called IICP, which comes from
by the SCPI Consortium (www.scpiconsor- the IEEE-1394 Trade Association. There are VXI
tium.org). bridge products that make it possible to con- VXI, which stands for VME eXtensions
GPIB’s major advantages include the fact nect GPIB instruments to a computer’s USB for Instrumentation, was one of the first
that it’s supported by many vendors who pro- port, which can be useful with newer PCs. practical methods for building test instru-
vide a vast assortment of instruments that use For low cost instruments, there’s also IEEE- ments on cards that plugged into a backplane
it, and it has a huge installed base. It’s a well- 1174, which maps the GPIB protocols onto a bus. Based on VMEbus, it was developed in
known and standardized interface, it uses a serial RS-232 line. This provides connectiv- the late ‘80s with the aim of combining the
standardized programming language, and ity for one instrument, but no networking. ease of integration of GPIB with the speed of
there are no size limits on the instruments VMEbus. It’s governed by IEEE-1155. The
that can be connected to it. In addition, GPIB What’s Ahead for GPIB? Keithley Measurement Trends Survey found
is generally less expensive than VXI and PXI There are some people who insist that VXI is currently used by 16 percent of test
for the same level of functionality. IEEE-488 is passé, and will be superceded engineers, with 22 percent planning to use it
GPIB’s primary limitation is its band- by newer buses like Ethernet, USB, and per- in the future.
width. With a fair amount of overhead and a haps FireWire. Still, there is a huge installed VXIbus works with signals ranging from
maximum transfer rate of just 1Mbyte/s (and base of GPIB equipment, a great many users low-level analog to microwave, which made
even that limited to the transfer speed of the who are familiar with it, and a wide variety it necessary to add shielding to the VMEbus
slowest instrument on the bus), downloading of products available from a great many ven- backplane and in between the modules. For
large data files can take a while. For most dors. Some of the largest test and measure- this reason, VXIbus devices are mounted
applications, however, GPIB provides ample ment companies, like Keithley Instruments, on 1.2-inch centers, instead of the 0.8-inch
bandwidth. Agilent, Rohde & Schwarz, and Tektronix, centers of VMEbus (VMEbus modules will
are using GPIB as the main instrument bus fit into VXIbus systems, but not the other
Variations on GPIB and supplementing it where needed with USB way around). The extra space makes room
In recent years, there has been an effort to or Ethernet. GPIB is also used to connect for wrap-around shielding on the individual
develop a faster version of GPIB. HS488 was VXI and PXI systems to external controllers. modules. The VXI specification also covers
intended to increase the data rate of IEEE- In addition, some specialized instruments, power supply and cooling air issues for both
488 from 1Mbyte/s to 8Mbytes/s by making like the recently introduced Keithley Model mainframes and modules.
changes to the handshake protocol between 2800 RF power analyzer (Figure 4), are only The VXI specification defines four mod-
sender and receiver. Its proponents claim it is available in GPIB-connected boxes. ule sizes (Figure 5). It starts with the same
backward-compatible with GPIB, but oppo- It’s possible to get state-of-the-art per- A and B sizes used in regular VMEbus sys-
sition to it has come from a number of places, formance from a GPIB-based system by in- tems, and adds two larger sizes, as shown in
generally citing compatibility issues. HS488 creasing the level of integration within the Table 1.
was first proposed in the early ‘90s and after individual instruments. A good example of Table 1. VXIbus module sizes
bouncing around the IEEE for about a de- that is Keithley Instruments’ Integra series,
Size Height (in.) Width (in.)
cade was recently accepted as a standard. which puts a DMM, data acquisition system,
HS488 products have been available from and complete switching setup in one enclo- A 3.9 6.3 P1
several manufacturers since 1993. sure with GPIB connectivity. For applica- B 9.2 6.3 P1, P2
GPIB can be mapped onto other net- tions where longer-range communications C 9.2 13.4 P1, P2
works. For example, there are LAN/GPIB are needed, there’s a model with 10/100baseT D 14.4 13.4 P1, P2, P3
gateways that will allow GPIB devices to Ethernet. Note: P2 and P3 are optional

2 April 2004 VXI, PXI, or GPIB: Which to use?


The VXI specification defines register- tion for I/O software, called VISA (Virtual
based and message-based devices. Reg- Instrument Software Architecture), defines
ister-based devices communicate via the the API for instrument communications, al-
backplane bus, like VMEbus systems, and though there still tend to be some inter-ven-
are programmed in a low-level binary code. dor compatibility issues.
Register-based devices can move a great deal According to the SCPI Consortium
of data at high speeds but can be laborious (www.scpiconsortium.org), VXIplug&play
to program. drivers can use SCPI protocol for message-
Message-based devices communicate based VXI instruments that speak SCPI,
Figure 5: The VXI specification defines four in ASCII using a word serial protocol. The but can be adopted for register-based instru-
module sizes. It starts with the same A and B ability to do this is costly in terms of board ments as well. The same SCPI code can be
sizes used in regular VMEbus systems and adds
two larger sizes, as shown in Table 1.
real estate, and the communication speed is used on systems running different operating
similar to that of GPIB. systems (Windows and various flavors of
There are three basic arrangements for UNIX) with just a recompile.
All VXIbus modules share the 96-pin P1 controlling a VXIbus system: external con-
connector called out in the VMEbus speci- trol via GPIB, internal control with an em- PXI
fication. A second 96-pin connector, P2, is bedded computer, and external control with Just as VXI is based on VMEbus, PXI
optional on B size and larger, and a third, P3, a high speed link called MXIbus. (PCI eXtensions for Instrumentation) is
is optional on D size. External control using a GPIB controller based on CompactPCI. Intended to be mid-
The VXI specification allows as many as connected to a GPIB-VXI interface module way in complexity and cost between PC-
256 devices in a system. A single device can plugged into the VXI backplane is the most based systems using GPIB and the more elab-
share a module with another device, or it can common arrangement, according to the VX- orate VXI systems, it does 32-bit and 64-bit
spread over several modules, depending on Ibus Consortium, and also the least expen- data transfers at 33MHz for 132Mbyte/s or
its complexity. A VXI mainframe can hold sive. The external computer can be PC- or 264Mbyte/s peak data rates. It’s much used
up to 13 modules, and it’s possible to con- UNIX-based. Using an embedded VXIbus in production and factory environments.
nect up to eight VXI mainframes together controller makes for a smaller and faster PXI uses two module sizes: 3U (100mm
via the MXIbus (see below) using a bus ex- system, while using MXIbus is physically x 160mm, with two connectors) and 6U
tender module plugged into each mainframe. similar to GPIB, but is programmed like an (233.35mm x 160mm, with up to five con-
It should be noted that this will lead to in- embedded controller. nectors). PXI adds such system-level speci-
creased delays between mainframes. Message-based devices can also commu- fications to CompactPCI as timing, synchro-
The VXIbus backplane has a theoreti- nicate via IEEE-1394 (FireWire) or MXIbus nization, active cooling, temperature ratings,
cal data transfer limit of 80Mbytes/s, and by installing the appropriate device. It’s also location of the controller (on the left), en-
under the just-ratified 3.0 specification, that possible to go the other way, using an embed- vironmental testing, EMI testing, and soft-
will increase to 160Mbytes/s. VXI can use ded VXIbus computer as a GPIB controller ware.
distributed intelligence, with multiple micro- to control box-type instruments. PXI adds multiboard synchronization via
processors. It integrates well with VMEbus The advantages of VXIbus are perfor- a 10MHz reference clock distributed to all
systems and is fairly easy to upgrade. mance and ruggedness, but these come at peripheral devices to the basic CPCI design.
Synchronization is important in high- a price that may be two to three times that There are also eight bused trigger lines that
performance systems, and VXI allows for of the alternatives. In general, VXIbus is a can be used as desired. And for more precise
several different methods. good answer when extremes of ruggedness timing there’s a star trigger bus. A 13-line
There’s a trigger bus on the P2 connector, are required or when only the highest perfor- daisy-chained local bus can be used to pass
with eight TTL and two ECL trigger lines. mance level will do the job. For many other analog signals or for special high speed side-
D-size modules have four more ECL trigger applications, it’s overkill. band communications among peripherals.
lines on the P3 connector. Unlike VXI and VME, it’s possible to
C-size and larger modules can use a VXI Software use CompactPCI modules in PXI systems
10MHz ECL clock generated by the Slot The VXIplug&play Alliance (www.vxi- and vice versa, although there may be some
0 module and distributed over the back- pnp.org) was formed in an effort to provide loss of functionality. PXI allows up to seven
plane via P2. D-size modules can also use a better interchangeability among devices from peripherals per bus segment, and by using
100MHz ECL clock connecting via P3. different manufacturers. VXIplug&play PCI-PCI bridges, it’s theoretically possible
In cases where the 2ns maximum delay of uses a series of frameworks based on dif- to have up to 256 slots per bus segment.
the ECL trigger lines is excessive, VXI also ferent operating systems. The frameworks Also unlike VXI, all PXI systems are
provides (in D-size modules) a star trigger specify instrument drivers, DLLs, help files, Windows-based, and all peripherals must be
bus, which carries synchronizing signals to knowledge base files, C-function libraries, supplied with a Win32 driver. For this rea-
all modules via dedicated and equal-length I/O libraries, soft front panel executable pro- son, a great deal of software is available that
lines. grams, and more. The Alliance’s specifica- will run on PXI systems. Users can program

VXI, PXI, or GPIB: Which to use? April 2004 3


PXI systems in a wide variety of ways, in- universal telecom instrument like a RF pow-
cluding LabVIEW, LabWindows/CVI, Visu- er analyzer to make power measurements, all
al Basic, Visual C/C++, and Borland Turbo running on a GPIB backbone.
C. And finally, PXI, like VXI, uses the VISA Another example would be a functional
architecture for peripherals. test system, which may have an A/D data
PXI systems have plug-and-play capabil- acquisition card, counter/timers, and some
ity and can connect to box-type instruments DAC analog outputs in a PXI chassis while
via GPIB and to VXI systems via MXI. PXI still needing a precision DMM to switch and
specifications are controlled by the PXI Sys- make multiple precision measurements all
tems Alliance (www.pxisa.org). running on an Ethernet backbone.
PXI has some significant advantages. The sheer volume of GPIB controlled
It lets users standardize on card cages and Figure 6: Functional Diagram showing a VXI instrumentation (new and used) and the free
or PXI chassis connected to GPIB or Ethernet
cards, so they can configure systems as need- availability of Ethernet I/O on almost every
Instrument going back to a PC.
ed. It’s based on PC architecture, so software PC makes these two backbone I/O buses
is readily available, and many people are do- the mainstay of mixed systems. Other pro-
ing development work on PXI cards. It costs makes it possible to make specialized meas- prietary I/O buses may have unique perfor-
less than VXI, although it’s still not cheap. urements. When the test system requires mance capabilities, but none can compare to
And it’s fast. unique measurement there is no substitute the GPIB instrumentation availability and
PXI’s drawbacks include limited space for a specialized GPIB instrument. the free Ethernet I/O availability on most
inside the enclosure, power limitations, and Some typical applications are functional every PC sold today.
limited density for switch cards. It’s also not test systems, avionics test benches, telecom
the cheapest system, and for switching, it’s repair stations, and automatic power sup- Conclusion
only cost-competitive for mid-range channel ply test systems. Each of these applications With so many choices, it’s possible to
counts. A user often needs GPIB equipment takes advantage of the versatility of combin- put together a system to meet just about any
to complete a test setup. For example, it can ing specialized GPIB instrument with either need, and it’s nice to know the various tech-
be difficult in a PXI system to get the 240 a PXI or VXI mainframe or even both. In nologies will stick around for a good long
channels of DC-to-40GHz switching that’s some unique applications, such as mixed- time.
available in a Keithley System 41, or to put signal ATE, the integration of all three
32 channels of DC-to-40GHz switching in a hardware architectures for production test
2U cabinet like the Keithley Model S46. and verification of mixed-signal devices is a About the Author
must. Using either GPIB or Ethernet as the Andy Toth is an applications engineer
Combining Buses system I/O backbone makes it easy to inte- at Keithley Instruments, Inc. in Cleve-
As mentioned earlier, it’s possible to grate an instrument with a mainframe back land, Ohio. His responsibilities include
mix and match stand-alone boxes, VXI, to a standalone PC. It allows system test en- helping customers with measurement
and PXI. Systems can connect to each gineers to use the feature set of a specialized applications. Toth joined Keithley in
other via GPIB and to the world via Ether- instrument while keeping the space-saving 1999 after earning a Bachelor of Sci-
net (Figure 6). This gets around one of the feature of a mainframe. Ultimately, a mixed ence degree in Electrical Engineering
major drawbacks to VXI or PXI platform: system provides the best of both worlds. from Case Western Reserve University
their inability to supply or handle enough For example, a telecom repair station in Cleveland, Ohio. He can be reached
power. This is evident with DC power sup- may have a waveform digitizer, a waveform at either atoth@keithley.com. or at 440-
plies, AC/DC sources, and electronic loads generator, and some digital driver for control 248-0400.
that still utilize a GPIB interface. It also within a VXI chassis while still needing a

Specifications are subject to change without notice.


All Keithley trademarks and trade names are the property of Keithley Instruments, Inc.
All other trademarks and trade names are the property of their respective companies.

Keithley Instruments, Inc. 28775 Aurora Road • Cleveland, Ohio 44139 • 440-248-0400 • Fax: 440-248-6168
1-888-KEITHLEY (534-8453) • www.keithley.com
© Copyright 2004 Keithley Instruments, Inc. No. 2514
Printed in the U.S.A. 0304

4 April 2004 VXI, PXI, or GPIB: Which to use?

You might also like