Está en la página 1de 200

Test-System

Development Guide
A Comprehensive Handbook
for Test Engineers

Open the door to


simpler system creation
  Test System Development Guide
Contents

Introduction   6 3. Understanding Drivers and 7. Maximizing System


Section 1. Test System Design   6 Direct I/O  27 Throughput and Optimizing
Section 2. Networking Choices   6 Introduction  27 System Deployment  75
Section 3. LXI: The Future of Test   6 History  27 Introduction  75
Section 4. RF/Microwave Test Choosing and using instrument drivers  31 Upfront design decisions affect
Systems   6 Conclusion  34 throughput  76
Fine-tuning your system for speed  84
4. Choosing Your Test-System
Section 1. Software Architecture  35
Conclusion  86

Test System Design  7 Introduction  35 8. Operational


Overview  7 Gathering and documenting software Maintenance  87
requirements  36 Introduction  87
1. Introduction to Test-System Programming and controlling your Worldwide considerations  87
Design  9 instruments  38 Calibration  89
Collecting and storing the test data  38 Diagnostics and Repair  90
Introduction  9
Designing the user interface  40 Cleaning  91
Transforming test into a strategic
Choosing the development Upgrades and expansion  92
advantage  9
environment  42 Conclusion  92
Test-system considerations  10
Working with open standards  44
Planning your test system  10
Developing a test sequence  46
Control decisions  12
Planning for software reuse  47
Planning for the future  16
Conclusion  50
Conclusion  16
5. Choosing Your Test-System
2. Computer I/O
Hardware Architecture and
Considerations  19
Instrumentation  51
Introduction  19
Introduction  51
Proprietary I/O versus industry-standard
System architecture  51
I/O  19
Choosing instruments for your test
GPIB interfaces  20
system   59
USB interfaces   20
Example test system  61
LAN interfaces  21
Conclusion  64
Which I/O interface should you use?   23
Conclusion  26
6. Understanding the Effects
of Racking and System
Interconnections  65
Introduction  65
Choosing racks and accessories  65
Instrument layout  66
AC power distribution  73
Conclusion  74


Section 2. 13. Using SCPI and Direct I/O Section 3.
Networking Choices  93 vs. Drivers  117 LXI: The Future of Test 141
Introduction  117
Overview  93 Deciding how to communicate  117 Overview  141
Sketching the big picture  117
9. Using LAN in Test Systems: Achieving communication  118 16. Value, Performance and
The Basics  95 Exploring the application alternatives  120 Flexibility: The Promise of
Introduction  95 Maximizing performance and LXI  143
Coping with complexity  95 flexibility  121 Introduction  143
Setting the standard  96 Assessing I/O software alternatives  123 Why test managers are asking for a new
Using LAN in test systems  98 Conclusion  124 approach  143
Conclusion  100 Addressing the challenges with LXI  144
14. Using LAN in Test Systems: The advantages of LXI  146
10. Using LAN in Test Systems: Applications  125 A closer look at LXI  150
Network Configuration and Introduction  125 Exploring new possibilities with LXI  153
Basic Security  101 Scenario 1: Sharing instruments  125 Appendix 16A: Defining synthetic
Introduction  101 Scenario 2: Remote monitoring and data instruments  155
Creating a safe haven  101 acquisition  127 Appendix 16B: Creating cost-effective
Understanding the pitfalls  101 Scenario 3: Functional test systems   130 measurement solutions with Agilent
Designing the private, protected LAN  102 Configuring a VPN  131 Open to test your way  156
Conclusion  105 Comparing network performance  133
Conclusion  134 17. Transitioning from GPIB
11. Using LAN in Test Systems: to LXI  157
PC Configuration  107 15. Using LAN in Test Systems: Introduction  157
Introduction  107
Setting Up System I/O  135 Comparing system architectures  157
Creating the right environment  107 Introduction  135 Setting up an LXI system  159
Exploring network settings in Windows XP Simplifying LAN-based instrument Simplifying software changes  160
and Vista  107 connections  135 Conclusion  161
Using multiple network connections  108 Assessing the Agilent IO Libraries
Managing IP addresses  108 Suite  135 18. Creating Hybrid Test
Configuring LAN with Agilent IO Libraries Connecting instruments to LAN  137 Systems with PXI, VXI and
Suite   109 Conclusion  140 LXI  163
Conclusion  110 Introduction  163
Assessing modular systems  163
12. Using USB in the Exploring LAN-based hybrid systems  165
Test and Measurement Going beyond hybrid to all-LXI  167
Environment  111 Conclusion  168
Introduction  111
USB in the PC universe  111
19. Assessing Synthetic
Agilent support for USB instrument Instruments  169
connectivity  112 Introduction  169
Setting up USB instruments with the Reviewing the roots of SI  169
Agilent IO Libraries  113 Putting SIs in perspective  170
Conclusion  116 Comparing present and future
approaches  170
Exploring the initial applications  173
Utilizing current SI devices  174
Conclusion  176

 Contents
Section 4. 22. Calibrating Signal Paths
RF/Microwave Test in RF/Microwave Test
Systems  177 Systems  193
Introduction  193
Overview  177 Understanding vector and scalar
calibration  193
20. Optimizing the Elements Performing vector calibration of network-
of an RF/Microwave Test analyzer paths  195
System  179 Performing vector calibration of non-
Introduction  179 network-analyzer paths  196
Letting the DUT define “future”  179 Performing scalar calibration of non-
Reviewing some essential network-analyzer paths  197
considerations  180 Conclusion  198
Translating requirements into optimized
equipment choices  181
Glossary of Test-System
Pulling it all together  184 Development Terms  199

21. Six Hints for Enhancing


Measurement Integrity in RF/
Microwave Test Systems  185
Introduction  185
Hint 1: Prioritize performance, speed and
repeatability  185
Hint 2: Review the nature and behavior of
the DUT  187
Hint 3: Understand, characterize and
correct RF signal paths  188
Hint 4: Be aware of everything connected
to an instrument  189
Hint 5: Examine the operational attributes
of switches  191
Hint 6: Accelerate measurement set up and
execution  192
Conclusion  192

www.agilent.com/find/open

Introduction

The Agilent Test-System Section 1. Section 3.


Development Guide is a compre-
hensive handbook for test engineers Test System Design LXI: The Future of Test
who need to maximize performance
Starting with the fundamental This section offers an in-depth
and flexibility while minimizing cost
philosophies of test system design, analysis of LXI, a new measurement
and complexity. Throughout, you’ll
the eight chapters in this section platform that combines the advan-
find practical advice and real-world
cover I/O considerations, decisions tages of PC-based connectivity with
examples that illustrate the deci-
regarding software and hardware the flexibility of card-based instru-
sions involved in overall system
architectures, racking and system mentation—without the disadvan-
architecture, networking solutions,
interconnects, data throughout opti- tages of a conventional cardcage. LXI
and instrumentation hardware and
mization, test planning, and various offers greater flexibility by incorpo-
software.
deployment issues. rating a variety of current and future
The Guide is divided into four instrument form factors, lower costs
sections, beginning with the basics Section 2. and smaller footprint by eliminating
the cardcage, and increased security
of test system design, following by
networking decisions, the new LXI
Networking Choices through the use of a private LAN.
instrumentation standard, and This section explains why LXI can
These seven chapters explore the
special considerations for RF/ meet future test needs more effec-
networking choices available for
microwave tests: tively than current approaches and
today’s test systems. Local area
how to make the transition from
networking (LAN) is covered in
GPIB-based systems.
detail, including both network and
PC configuration. The Universal
Serial Bus (USB) is also covered Section 4.
as a networking option, as well as RF/Microwave Test
decisions regarding drivers and I/O
software. Systems
RF/microwave test systems present a
number of unique challenges, partic-
ularly in the face of increasingly
complex devices and test require-
ments. This section offers advice on
configuring test systems that balance
the need for performance, speed, and
repeatability.

Please visit www.agilent.com/find/open


for the latest information on the
products discussed in this handbook.

All trademarks mentioned in this


handbook are the property of their
respective owners.

 Introduction
Section 1. Test System Design

Overview 5. Choosing Your Test-System Hardware


Architecture and Instrumentation,
The eight chapters in this section explores the hardware architec-
offer a comprehensive introduction ture decisions you must make
to designing and deploying an before you begin building your
automated test system: system to ensure that it provides
you with the performance and
1. Introduction to Test System Design, flexibility you need. It also
covers test-system philosophy discusses issues you should
and planning and discusses how consider as you select instru-
test is used in three sectors: ments for your system.
R&D, design validation and
manufacturing. 6. Understanding the Effects of Racking
and System Interconnections,
2. Computer I/O Considerations, discusses the important consid-
describes the advantages of using erations for arranging your test
computer-industry standard I/O equipment in a rack, including
and explores the advantages and weight distribution, heat dissipa-
disadvantages of GPIB, USB and tion, instrument accessibility and
LAN interfaces for rack-and-stack ease of use. It also explores ways
test systems. to minimize magnetic interfer-
ence and conducted and radiated
3. Understanding Drivers and Direct noise to maximize measurement
I/O, answers common questions accuracy.
about the use of drivers and
direct I/O to send commands 7. Maximizing System Throughput
from a PC application to the test and Optimizing System Deployment,
instrument. discusses hardware and software
design decisions that affect
4. Choosing Your Test-System Software throughput, including instrument
Architecture, helps you choose and switch selection, as well as
the direction for your software test-plan optimization and I/O
based on the application you and data transfer issues. It also
have in mind and the amount of presents ways to optimize your
experience you have. It explores system as you prepare to
the entire software development deploy it.
process, from gathering and
documenting software require- 8. perational Maintenance, addresses
ments through design reuse key issues to consider once
considerations. your system is operational,
including worldwide deployment,
calibration, diagnostics and
repair, cleaning, upgrades and
expansion.


 Section 1. Test System Design
1. Introduction to Test-System Design

Introduction Test can be used simply as a gating Excel is the most common software
factor for “good” or “bad” devices, or analysis tool for the R&D engineer.
This chapter offers an overview it can be used to gain a competitive The connection is usually simple:
of the process of designing test advantage. This chapter offers an a PC connected via GPIB or USB
systems, beginning with a discussion overall view of how tests are made, to an instrument or a small set of
of how carefully designed systems techniques to optimize tests, and a instruments. Simple software, such
can transform test into a strategic number of methods you can use to as Agilent IntuiLink, finishes the
competitive advantage. The chapter your advantage. It covers the three connection.
then walks you through the key primary sectors of the product life
factors to consider when designing cycle that require test: R&D, design Once the design becomes more solid,
a test system, choosing the level of validation, and manufacturing. there is a need to find its limits and
automated control, and planning Other chapters cover such topics weaknesses. That’s where the design
for future needs. It concludes with as hardware architecture, choosing validation system comes in. To make
a comparative case study of testing instruments, software architecture, the results more repeatable and less
power supplies using manual, semi- computer I/O and connectivity, dependent upon operator expertise,
automated and automated control. assembling a test system, maximizing the test system is automated using a
throughput, and optimizing deploy- PC and some sort of graphical soft-
Transforming test into a ment and maintenance. ware such as Agilent VEE or National
Instruments LabVIEW.
strategic advantage A systematic test-system design
process as outlined in this guide Graphical software, often used for
Functional test is fundamental to will assist you to quickly design a design validation testing, gives the
the electronics world. In the past, test system that produces reliable engineer a more comprehensive set
test has been treated as a necessary and repeatable results, meets your of tools for control and analysis,
expense, but enlightened companies throughput requirements, and does while at the same time creating
have realized that test can be a signif- so within your budget. For further a more repeatable measurement
icant asset. A test system can be used information regarding test-system process that may include remote
for far more than simply verifying the design, you can refer to the book control of sources, measurements,
limits of the device under test (DUT). from which much of the informa- and system switching. The same
Consider these possibilities: tion in this chapter was derived: instruments used in the R&D bench
Test-System Design, A Systematic system are often used in design
• find the weaknesses of the device— validation. This gives continuity to
Approach by Tursky, Gordon, and
before your customers do the whole process, so that the initial
Cowie (Prentice Hall, 2001).
R&D measurements can be compared
• predict failures or out-of-spec
The earlier a product weakness is to those made for design validation.
trends in production
discovered, the less expensive the
consequences. That’s one reason Textual software generally provides
• search for the boundaries of the
why the role of test changes with an effective programming environ-
design—to stretch specifications
the stage of the product life cycle. ment for manufacturing test, as
or search for something you didn’t
When a product is first developed, it enables the engineer to extract
know the product could do
the role of test is to verify that the the highest throughput from the
• verify the long-term characteristics design concept is viable. This calls test system. In manufacturing,
of the product for quick measurements, usually with repeatability and reliability become
hands-on use of discrete test instru- paramount concerns. Again, if the
• optimize a production process ments. Sometimes there is a need to same equipment can be used for all
load measurement data into an Excel three test situations (R&D, design
• test for environmental limits validation, and manufacturing), then
spreadsheet for use in a lab report or
for further analysis. the R&D engineer can more readily
• find the weaknesses in a
assist with any problems that may
competitor’s product
arise during manufacturing test.


The process of designing and Planning your test system • physical constraints such as size,
integrating systems used for elec- environment, and available power
tronic test requires more than simply Creating a comprehensive test plan
coding instrument commands to allows you to take a big-picture • heat buildup and power dissipation
automate the measurements made view of the project and forces you to
• how the test system will be veri-
on the R&D bench. The instruments focus on meeting the objectives and
fied, maintained, and calibrated
are only one part of the complete test requirements for the test system. The
system; cables, software, test-plan result is a considerable time saving • RF environment
documentation, and fixturing are in the development process.
equally important. The latter are • accuracy and resolution
especially prevalent in a manufac- Even in the R&D environment, there requirements
turing environment. are times when it is useful to create
a test plan, so that you can docu- • throughput goals
Test-system ment and compare results after each
design cycle. You must also consider • development time constraints
considerations the future for any test system you
create today. It may be reasonable • software-development and runtime
There are many factors to consider to create a dedicated and somewhat environment
when developing a test system. The inflexible test system on some
three main driving factors are test • cost constraints
high-volume projects, but it is usually
requirements, development time, more appropriate to create a system • continuity constraints with
and test cost. The factor that is most that has the flexibility to adapt to existing legacy systems
important will drive the other two. future needs.
For example, if the test requirement Among the decisions involved in
is for a very accurate measurement, The test plan describes more than determining the design of a test
as in R&D or design validation, just the requirements of the DUT. It system, the most obvious is what it is
you must be willing to take a bit should also cover other areas of the you must test. This is usually defined
more time to achieve the required test such as the level of experience in a test specification. The test speci-
accuracy. On the other hand, the required of the test system operator, fication should include a complete
manufacturing manager would not calibration and maintenance require- list of the product functions to be
be pleased if the test system were to ments, physical limitations, and verified, operating parameters to
perform more tests than required, throughput requirements. meet, and any regulatory standards
or perform them at a higher-than to adhere to.
needed level of accuracy, due to the The first step in creating a test
obvious impacts on test-system cost system is to seek out and compile all
and throughput. the information needed to create an Accuracy
overall test plan. Important informa-
Before the process to design a test tion includes the following: System accuracy is a critical speci-
system can begin, you must have fication of any test system, and the
a good understanding of the test • functional and parametric tests to overall test plan should include both
application. This goes beyond simply be performed the accuracy requirements of the test
understanding the device you are and the recommended margin. As a
testing, as you must also be aware • DUT design validation criteria minimum, the test equipment should
of other factors such as the skill have twice the accuracy specified for
• format and usage of test results, the DUT. To maintain this margin
level of the test system operator,
including sharing data throughout requires that the operating tempera-
the operating environment, and any
the enterprise ture be maintained closely and
standards requirements.
• number of tests that calibration cycles be followed
faithfully.
• DUT pin counts

10  1. Introduction to Test-System Design


Often, it is more cost effective to buy Downtime seriously degrades Hardware/software decisions
test equipment with a 10X accuracy test-system throughput and can
margin so that calibration and have a significant impact on product Once the requirements of the test
maintenance requirements can be shipments. Predicting and preparing system have been established in the
relaxed without affecting accuracy. for wear-out mechanisms can reduce test plan, then it is time to outline
In the “10X” case, you may even downtime. Further, using diagnostics the design of the test system itself.
increase the product yield, since or built-in test can help determine The question is: What to consider
the product can come closer to its when the test system is about to first—software or hardware? In the
specification tolerance limits because fail. Such preventative maintenance past, the hardware provided the lead
you can count on the accuracy of the procedures can result in big savings in test-system development. The test
test system. Whatever the accuracy when they identify a test system instruments that met the accuracy
required, you must have confidence failure before many DUTs are errone- and throughput requirements were
that you can rely on the results. ously tested. In all cases, whether in defined first, and then software was
Obviously, a calibration and mainte- R&D, design validation, or manu- created to automate the test system.
nance plan is important for achieving facturing, you should consider how
the required test accuracy. you will handle downtime, either But today, software can often be
with spare test equipment or with a more expensive to develop than
When determining instrument known path to repair or rental. the cost of the hardware, so if test
requirements, resolution must system cost is a driving factor, it is
be specified as well as accuracy. The overall test plan is a good place important to make sure that a new
Accuracy defines how close a to describe what diagnostics the test system can use as much existing
measurement agrees with a stan- system will require. It is easy to over- software as possible.
dard value. Resolution indicates look test-system diagnostics as time
the smallest change that can be consuming and costly to develop. The choice of programming languages
measured. There may be times Diagnostics are an important tool for may be based primarily on the expe-
when the absolute accuracy over maintaining throughput by reducing rience of the programmer. Some find
an extended period is not as impor- the downtime to repair failures. On graphical languages such as Agilent
tant as the resolution to measure most systems, a well-thought-out VEE or LabVIEW easy to use. Others
small changes over the short term. diagnostics approach will shorten believe that textual languages such
Switching, fixturing, and cabling also test-system deployment time as as C++, MATLAB or Visual Basic are
add noise and crosstalk that can well. Developing and following a easier to use, especially for complex
increase uncertainties. calibration and maintenance plan test programs. If it is important to
in conjunction with the diagnostics use existing textual test code, then a
is another way to prevent system multi-language development environ-
Throughput failures that disrupt test-system ment like Microsoft® Visual Studio
throughput. .NET is a definite advantage. For a
Throughput requirements will direct thorough examination of test-system
the necessary system capacity. software options, see Chapter 4,
Throughput is normally more Results Choosing Your Test-System Software
important in the manufacturing Architecture.
environment than during design Obviously, all tests must produce
validation and rarely a concern results. Sometimes this is merely a In any case, it is critical to ensure
in R&D. However, some complex simple pass/fail indication, but often that drivers exist for the selected
designs require lengthy testing to be test results must be analyzed and equipment. If the required drivers
validated before going into produc- archived. These requirements must and support are not available, the
tion. A significant delay during R&D also be defined in the overall test anticipated advantages provided by
or design validation can cause a plan. If the test sequence is short, the selected language may not mate-
product launch to be delayed, and a few minutes or so, it is simpler rialize. Driver issues are discussed
be costly in terms of missed market to perform all data analysis after in detail in “Understanding Drivers
opportunity. the test is over. However, if the test and Direct I/O.”
sequences are lengthy, some interme-
diate data analysis is recommended
so that failing functions can be
detected early enough to halt the test
and avoid wasted time.

www.agilent.com/find/open
11
Control decisions Once the testing becomes more The type of control, either manual,
complex or repetitive, a fully auto- semi-automated, or fully automated,
A major consideration for a test mated test system is in order. A fully should be determined early as it
system is the level of automation to automated test system takes care will influence which instruments
build into the system to control the of signal switching, measurement, you select. As shown in Table 1.1,
test process. Manual control requires recording, and even analysis of the many factors influence which control
that a human operator make all of the results for pass/fail determination. method is most suitable for your
test connections, set the instruments, Once the DUT is in the test fixture, application.
and then record the data. Increasingly, the test system takes over and runs
even in simple R&D setups, most all of the tests. This is the ultimate in
engineers prefer to use instruments terms of test speed, reliability, and
under the control of a PC in order to repeatability, but it is also the most
have a record of the test. expensive and time consuming to
develop.
Table 1.1. Comparison of test system control options

Manual Semi-automated Automated


Instrument cost Varies; can be higher than Similar to manual Depends on requirements; if space is
automated, since R&D typi- paramount, cardcages can be used, but
cally needs more accuracy they are typically more expensive than
than production specs standalone rack & stack instruments.
Modular instruments may meet space
needs with full compatibility to rack and
stack instruments
Development cost Very low; just hook up and Low or high depending upon High
go how much is automated
Operator experience Very high, often experienced High as the manual portions Low
engineers of the system may require an
engineer
Development time Low Low to high High
Flexibility High; changes can be made Medium; some portions can Low; changes require significant effort
easily easily be changed.
Throughput Low Medium High
Repeatability Varies with expertise Medium High
System calibration Rare; usually only each Some system calibration may Full system calibration is possible
instrument is calibrated be possible
Self-check diagnostics Individual instruments only, Individual instruments only, Common
not system diagnostics not system diagnostics
Ease of instrument reuse High Medium Low if card cage, medium if stand alone
or modular instruments
Potential for human error High Medium Low

12  1. Introduction to Test-System Design


Manual control Manual control is often the least Repeatability is a concern with
expensive test-system control option manual test systems. There are many
A test system based on manual to set up, since it may not include opportunities for operator error to
control depends entirely on the such items as a system switch, expen- go unnoticed. These errors creep
operator for all test functions (Figure sive software, or test fixtures. Also, in when the operator is attaching
1.1). Connections between the DUT the time and cost required to set up cables, setting instruments, recording
and instruments are made manu- the test are very low. However, the results, and even when transferring
ally with test leads or cables. R&D instrument cost for manual control the results to other documents.
engineers may follow procedures that varies. Often, the R&D application
are completely undocumented, but calls for a more accurate measure- Even with these limitations, the
when using a manual control system ment than the equivalent measure- manual approach can be useful. With
for other test requirements, each ment needed in manufacturing and due diligence while conducting the
instrument is normally manually therefore requires rather expensive test and techniques such as using the
operated by following a documented instruments. same cables to increase repeatability,
procedure. The results of each test the manual approach can produce
are then manually recorded. This The cost to conduct the test is usually reasonably reliable results. Another
is a very flexible approach as it very high. Manual control generally advantage of manual control is the
allows changes to the test system to requires a skilled operator to follow ease in which the test system can be
be made very easily. On the other the labor-intensive test procedures. reconfigured or the instruments used
hand, it is a very slow method of System self-testing is almost impos- for other projects.
testing and has significant problems sible, and complex and frequent cali-
with repeatability. For example, the bration is often required due to the Additionally, a skilled engineer
engineer may make readings one time high accuracies needed. Typically, conducting the tests is constantly
with the voltmeter at full scale, while only the individual instruments are comparing the results against
the next reading might be at 1/10 calibrated and not the entire system. expectations, thereby providing a
of full scale, resulting in a slightly As a result, inexperienced engineers form of continuous verification of the
different answer. may believe that the overall system test system. An incorrectly operating
accuracy is better than it actually is. fully automated test system could
continue to test for hours, days, or
even weeks without detecting the
Figure 1.1. A test system using manual control requires a skilled operator.
problem, resulting in the shipment of
incorrectly tested products.

Use manual control when

• a small number of devices are


being tested

• cost of automation outweighs


benefits

• speed of test is not critical

• test requirements may change


regularly

• the delay to create an automated


system is unacceptable

• skilled operators are available

• the instruments need to be easily


disassembled for use elsewhere.

www.agilent.com/find/open
13
Semi-automated control A semi-automated test system might Semi-automated control is often
require the operator to manually much faster than manual control
Semi-automated control is a common connect the DUT, provide instruc- and produces a more reliable and
type of control approach used for tions to the operator for the proce- repeatable result. This method
test systems, and is useful in R&D, dural steps, and automatically record of control can take advantage of
design validation, and manufacturing the results. For example, a semi- simplified software development with
test (Figure 1.2). Test systems using automated system might have an Agilent’s VEE or Visual Studio .NET
this control approach have manual oscilloscope and an RF source that for quickly creating the required
portions for flexibility where it is are under computer control, with a automation.
needed and automation where it power supply under manual control.
makes sense. Those sections of the The engineer would vary the voltage The most common type of test equip-
test system that are expected to to the DUT via the power supply, run ment includes a fully functional front
change often or would be too expen- a set of tests at this voltage level, and panel and a computer interface that
sive to automate can be manual. then manually change the voltage allows both manual and automated
Those sections that will not change and run another set of tests. use. This is a major benefit, even
or would benefit from automatic data when automating, as you can always
recording can be automated. go back to a manual approach if you
need to measure other parameters,
troubleshoot the system, or conduct
Figure 1.2. A test system using semi-automated control often uses a an experiment. These standalone
PC for the operator interface.
instruments are beneficial when
developing a fully automated test
system for manufacturing as it is
common to start with a semi-auto-
mated system and then increase the
level of automation as experience
and production volume increases.

Use semi-automated control when

• automation benefits will outweigh


added costs

• test volume does not require full


automation

• some flexibility in the test system


is required

• reasonably repeatable results are


required

• skilled operators are available or


close by

• a move to full automation is antici-


pated but not yet required

14  1. Introduction to Test-System Design


Automated control There must be compelling reasons to • precision or repeatable tests are
justify an automated test system. Not required to test the DUT
Fully automated test systems are the only is the initial development cost
domain of complex design validation • reducing test time is critical
high, but any changes or upgrades
testing or the manufacturing test to an automated system can be • test requirements are known and
environment (Figure 1.3); they are very expensive. The compelling stable
rarely used in R&D. All of the instru- reason for the expense is usually the
ments, signal switching, and connec- • cost per test outweighs test-system
high-volume requirements of manu-
tions to the DUT are controlled by development cost
facturing test, but there are times
computer. In some automated test during R&D and design validation • time is available for development
systems, an operator may be required when the required accuracy is very
to manually install the DUT into a • skilled operators are not available
high or the test is very complex,
test fixture as a single action, but making it necessary to automate • accuracy or complexity require-
others have an automated handler to the test to remove potential human ments dictate automation
insert and remove the DUT from the errors or speed up the test process.
test fixture.
Use fully automated control when
Full automation is the most expen-
sive control method in terms of • high-volume manufacturing
software development time, but it requires automation
also results in the highest throughput
and most repeatable and reliable
measurements by nearly removing Figure 1.3. A fully automated test system requires minimal
operator interaction.
the human-error factor from the
test. The skill level required of the
operator is usually much reduced.

Full system calibration and diagnos-


tics are easier to implement in an
automated system where software
can reconfigure the test system to
allow it to test and calibrate itself
against an external traceable refer-
ence. Full system calibration can
even calibrate the cables and connec-
tions instead of just the individual
instruments.

Proper diagnostics designed into an


automated test system can test most
of the system. You can create a diag-
nostic device that plugs into the DUT
fixture. This device will connect test
stimulus signals to test measurement
instruments. Diagnostic software you
create will then configure the test
system to verify operation through
the same switches, cables, and
connectors that are used for testing.

www.agilent.com/find/open
15
Planning for the future A few moments considering the Conclusion
future can have a significant impact
When making test-system design on future options. For example, when Although test-system development is
decisions, you should keep future selecting instruments for a manual a complex task that can include many
needs in mind. Upgrades are a fact system, there is usually very little aspects of electronic and mechanical
of life for a test system. They can be added cost to select instruments design, following a systematic
very expensive and time consuming that have computer interfaces. You approach and partnering with quality
but are often unavoidable. Naturally, may not need the interface today, test equipment manufacturers will
any upgrades must justify the expense but computer control is not possible enable you to enhance your success
and effort required. Reasons for without it (and could be costly, while lowering the cost and time it
upgrades include difficult, or even impossible to add takes to create the test system.
at a later date).
• accommodate changes in design
of the DUT Using open standards will increase
Case study: testing power
the likelihood that test system supplies
• conduct additional tests components will be useable in
the future. Proprietary interfaces This case study is an example of how
• obtain higher accuracy a test system can evolve from R&D to
have a habit of disappearing or
not supplying the drivers you need design validation to manufacturing.
• obtain higher throughput Many of the same instruments are
for future software options. Using
proprietary measurements made by used in all three areas with the major
• eliminate redundant tests
specific equipment in a test system difference being the type of control
• rearrange the test sequence to from manufacturers that do not used. This is a common practice as
detect failures earlier supply future upgrade paths could the knowledge gained in each phase
make an entire test system obsolete of product development is trans-
• improve analysis if that exact instrument is no longer ferred to the next.
available.
• automate more of the test
Consider where the instrument
Manual control
• decrease the skill level required
architecture is in its lifecycle. For When developing a product such as
to operate the test system
instance, is it a cardcage design a power supply, the R&D engineer
• replace obsolete equipment based on a PC backplane that will will create a test system as required
soon be replaced? Are vendors to explore options and verify results.
• change reporting requirements designing new products to this archi- The test bench in Figure 1.1 is
tecture (or to its replacement)? typical of such use. Many instru-
• upgrade the operating system
ments are within reach and it is easy
Following proper software design
• conform to new standards to rearrange them as needed. All
techniques resulting in well-written
of the connections to the DUT are
software that is easily understood,
• add newly developed models made manually and each instrument
maintained, and modified is an
is manually operated. This is an
• repeatability is important obvious requirement for future
example of a test system with manual
upgrades. Good documentation is
control.
also critical to the future of a test
system: Chances are you will not be
the one that is tasked with future
modifications.

16  1. Introduction to Test-System Design


The flexibility to quickly move from As these measurements are made, as were made during R&D. But now,
measurement to insight to next the test system is rearranged, the more of them can be made to fully
measurement, whatever that next cables are attached as required, the validate the design. For example,
measurement might be, is obvious. instruments are manually controlled, the output accuracy of the power
Standalone test instruments readily and the results are noted. Often, the supply under test can be checked
lend themselves to this usage model. exact configuration is not recorded, at a variety of operating conditions.
The high level of skill required of the making an exact repeat of the The input voltage, load current, and
operator is also important. There is measurement difficult. The cable even the ambient temperature can be
significant opportunity for error and connections are often made with varied to ensure proper regulation
confusion with a manually controlled probes and clip leads in a manner of the output voltage and that the
system. R&D engineers are in their that is quick but not reliable. Even output noise is within requirements.
element at such a bench, but it falls so, the advantages to a skilled The same tests can be conducted on
short on reliability and repeatability operator far outweigh the problems multiple prototypes to ensure that
when compared to other control associated with manually controlling the design is consistent across units.
methods. a test bench. Further, these tests can be completed
much faster and include automated
The block diagram in Figure 1.4 data recording, enabling statistical
shows the interconnection of the Semi-automated control analysis.
instruments for some of the tests
The design is “complete.” Now it
used during the R&D phase of power The repeatability and reliability of
needs validation, so the test require-
supply development. Some of the semi-automated control along with
ments are somewhat different. In
standard tests measure output- automated data gathering are a
this case, the same instruments
voltage accuracy, output noise, load significant enhancement to manual
are used, but a computer is added
regulation, line regulation and output control. By selecting instruments
for semi-automated control. The
programming speed. that include computer interfaces,
block diagram of Figure 1.4 remains
automating portions of the test
The test system diagrammed in the same, but now a computer
system is much easier. In many cases,
Figure 1.4 is just one example of is connected to some of the
the automation is merely a matter
a manual setup for testing some instruments.
of having a computer perform the
aspects of the design. Other R&D commands and read the results that
Many of the same measurements
engineers would have other manual were done by an operator.
are made during design validation
setups on their benches to test for
other parameters. In this case, the
total R&D manual test system is Figure 1.4. Block diagram of a manually controlled test system used for R&D
actually distributed throughout the
benches of the entire design team.
Voltmeter Oscilloscope
More-specialized tests will also be
- In + In
conducted at this stage. Loop gain
(Bode plot) is used to evaluate the
stability of the control loops used DUT
to regulate the output voltage and + + DC/DC Power + +
current of the power supply. Load DC Power Current Source DC Electronic
Supply Output Shunt
Input Output Input Load
transient response is measured by - - Internal
measurement - -
point
applying a load-current step change
and monitoring the output voltage on
the scope, also giving insight into the
stability of the control loops. Voltage
and current stress on the compo- - In + - In + - In +

nents are also measured so power Voltmeter Voltmeter Voltmeter


can be calculated to ensure that no
parts are over stressed. The tempera-
ture of individual components may
also be measured.

www.agilent.com/find/open
17
Automated control The block diagram in Figure 1.5 The speed, repeatability, and reli-
includes connections to the DUT ability of the fully automated system
The move to a fully automated test and measurements that test the can be significantly better than that
system may require additional instru- power supply in the manufacturing of other test system control methods.
ments. The computer now controls environment. The number of tests Also, the skill level of the operator
all of the instruments as well as the performed may approach those can be less. But the time and expense
reconfiguration of the interconnec- conducted during R&D and design to create the system and make any
tions for various tests. The digital validation but they are normally not changes usually makes automated
multimeter, scope, and loads are still as thorough. Manufacturing tests are test systems only feasible for manu-
used, but now switches are employed often performed only at one oper- facturing uses.
to connect the DUT to the instru- ating point that is considered to be a
ments. As the tests are performed, worst-case condition. This maximizes
the computer uses the switches as the amount of information gained
required. about the DUT in the minimum time.

Figure 1.5. Block diagram of a fully automated test system.

Fixture

MUX

Switch DC/DC
matrix power
source
(DUT)

DMM

Function generator

Oscilloscope

AC source

DC source

DC loads
Power switch

18  1. Introduction to Test-System Design


2. Computer I/O Considerations

Introduction Proprietary I/O versus Proprietary interface cards, such as


MXI and MXI-Express from National
Whether you plan to use your industry-standard I/O Instruments are expensive, with
rack-and-stack test system for R&D, typical price tags starting about
Most of today’s PCs offer built-in
design validation or manufacturing, US$1,000. You have to open up your
Ethernet-based local area network
you are likely to program and control PC housing to install them. And if
(LAN)and Universal Serial Bus
your system with a PC. For decades, you don’t have an open expansion
(USB)connections. These industry-
the IEEE-488 bus, commonly known slot, you need to consider replacing
standard PC I/O technologies are
as the general-purpose instrumenta- your computer.
much faster than previous PC I/O
tion bus (GPIB), has been the stan-
technologies such as RS-232, and Because of the inherent advantages
dard interface for connecting test
therefore are much more suitable for of industry-standard I/O and
instruments to computers and for
automating and controlling test-and- customer demand for it, instrument
providing programmable instrument
measurement instruments. IEEE manufacturers are now providing
control. GPIB is still a common and
1394, or FireWire interfaces, while LAN and USB interfaces to their test
useful technology, but now other I/O
not as ubiquitous as LAN and USB equipment. For example, the Agilent
options are available. This chapter
ports on today’s computers, also are 33220A arbitrary waveform/function
explores the various I/O options and
readily available. generator, introduced in early 2003,
helps you decide which interfaces
make the most sense for your test includes LAN, USB and GPIB inter-
Using these industry-standard inter-
system. faces. With the widespread adoption
faces for communicating with your
of LXI, most new instruments are
test instruments can save you time
likely to have a LAN interface.
and money and reduce headaches
as you build your test system. Some If you want to use your existing GPIB
benefits of using industry-standard instruments in a rack-and-stack test
I/O are immediate and obvious. For system, you don’t necessarily need to
example, with USB, you don’t have use GPIB as your interface. Agilent
the additional expense of purchasing also offers converters—USB/GPIB
an I/O card, and you don’t have to and LAN/GPIB—that allow you
dismantle your PC to install the card. to use your GPIB-equipped test
The LXI standard has been adopted instruments with USB- or LAN-
by most instrumentation companies, equipped PCs, eliminating the need
facilitating the widespread use of to install a GPIB card in your PC.
LAN-based instruments. National Instruments also offers a
FireWire/ GPIB converter. The next
There are other less obvious
chapter looks at GPIB and the two
advantages to industry-standard
main industry-standard interfaces,
I/O as well. Because the computer
LAN and USB, and explores the
industry employs thousands of
applications where each is most
engineers who work on improving the
appropriate. (FireWire interfaces are
throughput rate and data integrity
used primarily for VXI test systems.
of these interfaces, they are likely
You will find more information
to continue to improve more rapidly
about VXI in Chapter 5, Choosing
than proprietary interfaces. Using
your Test-System Architecture and
industry-standard I/O also makes it
Instrumentation.
easy to interchange instruments in
your system with instruments from a
variety of manufacturers.

19
GPIB interfaces To communicate with instruments loaded, the instrument will be ready
over GPIB, you need to install an to communicate on the bus. USB
GPIB is the most common interface I/O software package. Plug and devices also are “hot swappable,”
for programmable test-and-measure- Play drivers, IVI-COM drivers, and which means you don’t have to shut
ment equipment. It is still one of the VISA (Virtual Instrument Software down your PC to plug in or unplug an
best choices if you want to maximize Architecture) are examples. These instrument.
throughput for a variety of block packages support popular languages
sizes. GPIB is a parallel bus that such as C and C++, Microsoft With USB, the computer schedules
includes control lines, handshake Visual Basic 6.0, Visual Basic .NET, and initiates all transactions. If you
lines, and 8 bi-directional data MATLAB, Agilent VEE, LabVIEW, are using a Windows NT® operating
lines—specifically designed for instru- and others. system, you will find that it does not
ment communications and control. support USB connections.
GPIB supports up to 14 devices that USB interfaces
can be connected to your PC. You
can use either a star or a daisy-chain USB was originally intended as Figure 2.1. You can configure a GPIB bus in
configuration for connecting multiple an alternative to the RS-232 serial either a daisy-chain or star topology, or you can
intermix these two configurations.
instruments (see Figure 2.1), but interface and the Centronics parallel
cable length is limited to 2 meters interface, an older standard I/O
(times the number of devices) up to a interface for connecting printers and
maximum length of 20 meters. certain other devices to computers.
USB is suitable for a range of
You can achieve data transfer rates of computer peripherals, from slow Instrument 1 Instrument 2
more than 500 KB/s on a GPIB bus if devices, such as mice and keyboards,
you limit bus cable length to 1 meter to high-performance devices such
(times the total number of devices), as scanners, printers, and cameras.
up to a maximum length of 15 Now, USB is finding its way into Instrument n
meters. Longer cable lengths reduce test-and-measurement instrumenta- Daisy chain bus configuration
the maximum data transfer rate to tion, too.
less than 500 KB/s.
USB is a serial interface bus that Instrument 1 Instrument 2
When you use GPIB, configuring the includes two power wires and a
instrument I/O bus is a relatively twisted pair to carry data. USB is
easy task. However, each instrument capable of data transfer rates of
on the bus needs to have a unique about 12 Mb/s for v1.1, and up to
address. This requirement means 480 Mb/s for v2.0. In addition, v2.0
you may have to manually change is fully backward-compatible with
an instrument’s address when you v1.1. The main difference is the data
configure your system. transfer rate. Instrument n
GPIB has other drawbacks, too. GPIB USB is capable of supporting up to
cables and connectors are rather Star bus configuration
127 devices on a given interface.
large, bulky, and relatively expensive. If you use a GPIB-based system,
And because GPIB isn’t a standard you must ensure that instrument
built-in PC interface, you have to addresses are unique, but USB
open your PC housing and install an provides this function automatically.
interface card in one of your PC’s When USB devices are manufactured,
expansion slots. they are given unique identifiers
based on the manufacturer, the
instrument serial number, and the
product number. When the device
is powered up and connected to a
controller, the controller detects
its presence automatically, and if
the host-side software drivers are

20 2. Computer I/O Considerations


Configuring USB systems Making USB connections Ethernet-based LAN devices typically
need to be configured to operate
USB cables and connectors are Connecting USB instruments to a properly on a network. However,
considerably smaller than their GPIB PC controller is also a simple task. instruments that support Dynamic
counterparts. However, device- USB is especially useful with laptops, Host Configuration Protocol (DHCP)
interconnect configurations for USB since typically they do not have the provide the capability for test
are somewhat different from those PCI slots required to install GPIB PCI instruments to configure themselves
usually seen in GPIB-based systems. cards. Virtually every PC produced automatically to operate on a
Most USB instruments are equipped within the last few years has several network—if these services are avail-
with a single USB connector, so you USB ports already built in. able on the network. To simplify the
cannot daisy-chain multiple devices configuration task, LXI instruments
together. Instead, you need to use a As with GPIB, communications are required to support DHCP.
hub to connect the devices to your with instruments via USB requires
computer, as shown in Figure 2.2. the installation of an I/O software
package. Plug and Play drivers, Figure 2.2. USB configurations with a single
Not all test-and-measurement USB
IVI-COM drivers, VISA, and IntuiLink device and with multiple devices connected
drivers are designed to work with through a huband with multiple devices
hubs, so it is a good idea to check software—supporting C/C++, Visual
connected through a hub
with the manufacturer. Basic 6.0 and Visual Basic.NET—are
available with USB support.
Hubs provide expansion capability
for USB, permitting multiple devices LAN interfaces
to be connected to a single USB port.
These hubs are transparent to a You also can connect your test-and- Instrument
controller, and you can cascade them measurement instruments to a PC
up to five deep. Using hubs in your via a LAN interface. Ethernet LANs Simply device configuration
system offers several advantages. For are almost universally available at
example, many USB hubs include industrial and commercial sites, and
LED status lights that indicate which most PCs found in these facilities are
port is connected. Also, a hardware already connected to a LAN. With
failure at the interface to one the introduction of the LXI standard,
instrument, such as a shorted line, is Ethernet-based LAN interfaces for
unlikely to cause an entire bus to fail. test equipment are becoming even
HUB
This makes troubleshooting an I/O more common than USB connections.
interface fault in a large system with Ethernet-based LANs commonly
many instruments a much easier support data rates of 100 Mb/s to
task than having to disconnect each 1Gb/s. Instrument 1 Instrument 2 HUB
device in turn, as required in a GPIB-
based system. USB and LAN interfaces share
a number of features. They both
operate in serial mode, and both Multiple device Instrument 3
use relatively small and inexpensive configuration with hubs
cables and connectors (especially
when you compare the connector
costs to those of GPIB).

You will want an Ethernet switch


or router to interconnect multiple
LAN instruments in a test system.
Ethernet switches are readily
available today—and are relatively
inexpensive. Most provide network
status, or activity indication with a
series of LEDs.

www.agilent.com/find/open
21
Connection methods Remote access Figure 2.3. Single and multiple instrument configurations
can be connected to private LANs and site LANs.
You can connect LAN-enabled instru- A site LAN has the potential for
ments several different ways. They permitting any controller on the LAN
may be connected directly to a site to access instrumentation—either
LAN (a workgroup LAN, intranet, intentionally or unintentionally. If
or enterprise LAN), or they may be the site LAN can be accessed from Crossover cable
Instrument
connected to a private LAN. physical locations outside of your
facility, then others can access your
In private-LAN configurations, your Simply connected private LAN
instrumentation. This open access
PC and your test instruments are can be a valuable asset because it lets
connected to each other via a LAN, you remotely control instruments
but they are not connected to a site and systems almost as easily as if
LAN. The simplest private-LAN To site LAN
they were next door. You can use
configuration consists of a controller Instrument
remote access capability to diagnose
and only one instrument. See the first system and instrument faults from
illustration in Figure 2.3. You also Simply connected site LAN
faraway locations. Multiple engineers
can connect multiple instruments can share the expensive test instru-
in a private LAN, as shown in the ments and systems from remote
second illustration in Figure 2.3. locations.
If you plan to use your site LAN, However, this open access also can be
rather than a private LAN, you a disadvantage. For example, if the
need to be aware of two potential site LAN is connected to the outside Switch
drawbacks: world to provide Internet access, you
face a serious risk of exposure to
1. Traffic on your site LAN can slow
undesired system accesses. Firewall Instrument 1 Instrument 2
down your measurements.
software and/or using a router which
2. If you are using a LAN interface requires specific device addressing Multiple instrument private LAN
for controlling your test system, rather than a switch or hub can
it is possible that a faulty instru- provide protection.
ment could damage or disrupt
If you want remote access to your
the network, particularly when To site LAN
test equipment, but security and
the instrument is turned on ROUTER
controlled access are a system
and tested for the first time.
requirement, then you need a lockout
Controlling your test instruments
feature. Some instruments, such as
via a private LAN is the safest
the 33220A function/arbitrary wave-
approach, since it limits the range
form generator, provide this feature Instrument 1 Instrument 2
of potential disruption and access
via an Allow List. An Allow List is
and maximizes performance.
a list of remote LAN addresses that Multiple instrument site LAN
For all setups, you can connect are permitted to communicate with
instruments to the LAN either with the instrument. Any controller that
a conventional LAN cable or through attempts to access an instrument
a wireless adapter. Wireless routers whose address is not on the Allow
and hubs also are available, as are List is rejected. This feature provides
wireless USB-to-LAN interfaces. See a level of system security for those
Application Note 1909-3, Creating instances where your system is
a Wireless LAN Connection to a connected to a site LAN and is at risk
Measurement System. for inadvertent access.

You can also use a virtual private


network (VPN) for secure, remote
access.

22 2. Computer I/O Considerations


Instrument communication and Which I/O interface
operation over LAN Gating factors on data rates
should you use?
The data rates of a test system are
Instrument communication over To decide which I/O interface or determined by the slowest device/
an Ethernet-based LAN requires interfaces you use in your test firmware/software in the system.
a software driver package if I/O is system, you will need to consider
to be performed via Plug-and-Play, many factors. These include data For example:
IVI-COM or VISA. It’s also possible transfer rates and block sizes, and
to use the TCP/IP’s sockets or telnet costs for cables, routers, hubs, and 1. A high-speed instrument with
to perform instrument I/O directly PC I/O cards. Other factors include integrated LAN controlled with an
without a host-side driver. In fact, I/O driver availability, and program- older computer will be limited by
I/O operations using sockets provide ming requirements, as well as the the computer processor speed and
the fastest data transfer rates, since need for possible remote system possibly memory depth.
the host-side driver is bypassed. access.
2. A USB2 interconnect will operate
You can operate some LAN-enabled Keep in mind that you do not have at a USB1 rate if the instrument,
test instruments via a virtual front to choose a single I/O interface. USB hub and computer do not also
panel that appears on your PC Systems incorporating multiple support USB2.
screen. Typically, the display looks interfaces are particularly useful if
and acts like the actual instrument 3. An Instrument with a data transfer
you have a mixture of older GPIB
itself (see Figure 2.4), and you use rate of 33K bytes/second will not
instruments and newer instruments
your mouse to actuate buttons as transfer data any faster with USB,
with other interfaces built in. Today’s
if you were actually pushing front- LAN or a computer that is able to
advanced software tools that include
panel buttons. The virtual instrument transfer data at 1M bytes/second
VISA technology eliminate the need
display mimics that of the actual to talk to different kinds of I/O in
instrument that may be thousands of different ways. A minor change to
miles away. Agilent LXI instruments To see an example system that
a single line of code is typically all
allow both monitoring and control of incorporates multiple interfaces
that is required. However, do not mix
instruments from your web browser. (RS-232, FireWire, USB, GPIB and
interfaces on a single instrument—the
LAN), see Chapter 5, Choosing Your
input and output must be on a single
Test-System Hardware Architecture
interface—and make sure your soft-
and Instrumentation.
ware drivers know which instrument
is using which interface.
Real data rates
Figure 2.4. Virtual front panel of the 33220A multifunction switch/measure unit You will notice that individual I/O
bus specifications for data transfer
rates usually give only the theo-
retical maximum transfer rate. The
actual data transfer rate that can
be achieved for any given system
depends on a number of factors.
These factors include PC micropro-
cessor speed, PC software and driver
overhead, I/O card hardware, and
instrument-specific hardware and
firmware.

www.agilent.com/find/open
23
These variables make it difficult The time to close the channel and Comparing costs
to predict the actual data transfer make the measurement dominates
rate that might be expected for any the total time. GPIB’s strong perfor- Today, many companies are looking
given system configuration. Table mance in this use model is one of the for ways to lower the cost of test.
2.1 shows a relative comparison of reasons it has lasted so long as an If this is true of your organization,
data transfer rates for several data interface. implementation cost will be an
block sizes among GPIB, USB v1.1, important consideration in selecting
USB v2.0, and LAN interfaces. These For a detailed look at data transfer an I/O interface for your test system.
data were compiled using the Agilent rates of two different block sizes
Model 33220A function/arbitrary over the various interfaces, see New PCs typically have a LAN and
waveform generator and a Hewlett- Application Note 1475-1, Modern several USB ports built in, but GPIB
Packard Kayak PC with an 800 MHz Connectivity—Using USB and LAN interfaces usually require a card that
processor running on a Windows XP Converters. This application note you must purchase separately. GPIB
operating system. compares the Agilent 82350B GPIB cards typically cost about US$500
PC card, the 82357A USB/GPIB and additional USB or LAN cards
For small data-block sizes of a few converter, and the E5810A LAN/ usually sell for US$10 to US$50.
hundred bytes, there is no appre- GPIB gateway in terms of controller
ciable difference in bus speed, but and operating system requirements, Also, if you plan to use USB or
the higher-performance buses (USB set-up steps, data transfer rates, LAN interfaces to connect multiple
v2.0 and LAN) demonstrate a marked allowable distances from instruments instruments in your system, you
improvement in the time required to to the PC, etc. These details will help will need switches or hubs. These
transfer large data blocks. you choose the best interconnection hubs can cost from US$25 to US$200
method for your application. One of each, depending on features and the
The differences in data transfer rates the benefits of having an instrument number of ports they support.
between small and large data blocks that supports multiple interfaces
for any given interface are largely You also need to consider the cost
is the ability to easily compare the
due to variations in the latency, or of the cables for your test system.
actual data transfer rate for each of
software overhead, required for each GPIB cables are relatively expensive,
the I/O interfaces in a given applica-
of the interfaces prior to the start of ranging in price from US$60 to
tion. This permits you to select the
the actual data transfer. US$150 each, depending on their
interface that offers the optimum
length. USB cables, on the other
performance.
If you’re looking for high throughput hand, range from US$8 to US$30.
in a test system, don’t be swayed If the application program’s LAN cables are usually the least
by the perception that high-speed I/O calls are written with a driver expensive, typically costing less than
interfaces will always get you there. interface that provides a common US$10. Some can be found for as low
In most test systems, the use model set of programming commands as US$3.
is one of “Close a channel; measure a independent of the interface, such as
point,” then “Close another channel; You can make useful cost compari-
Agilent’s VISACom, then it becomes
measure another point.” In this case, sons by assuming that all test
a simple matter to direct the I/O calls
block transfer rate is meaningless. instruments are able to support any
to any of the three interfaces.
of the three interfaces and computing
the interface cost for your proposed
test system. Today, few test instru-
Table 2.1. Relative I/O times from a PC to an Agilent 33220A (data taken with a 1-meter cable
ments actually do support all three,
on an HP Kayak XU800 with an 800 MHz processor running Windows XP)
since the industry is just beginning to
Interface Function change Frequency change 4K arb 64K arb provide instruments equipped with
multiple computer-industry-standard
LAN (socket) 100 ms 3 ms 8 ms 110 ms interfaces. However, the I/O inter-
USB 1.1 100 ms 4 ms 10 ms 185 ms face converters mentioned earlier
USB 2.0 99 ms 3 ms 8 ms 100 ms permit GPIB-only instruments to be
connected to USB- and LAN-based
GPIB 99 ms 2 ms 20 ms 340 ms interfaces. For example, the Agilent
82357B USB/GPIB interface enables
your PC to communicate with GPIB
devices via the PC’s USB port.

24 2. Computer I/O Considerations


Similarly, the Agilent E5810 LAN/ Figure 2.5. The Agilent E5810A LAN/GPIB Gateway and the 82357B USB/GPIB Converter.
GPIB gateway provides a means to
connect GPIB devices to a LAN (see
Figure 2.5.) These converters can
save you the cost of replacing your
existing GPIB test instruments if you
decide you want to use industry-stan-
dard I/O. However, these converters
are appropriate only for applications
where measurement speed is not
critical, as they do slow the data
transfer rate.

Let’s look at an example of a test


system designed to test the Agilent
33220A function/arbitrary waveform
generator. The test system consists
of a controller, a local printer, seven
rack-and-stack instruments, a fully
loaded 13-slot VXI mainframe, and
support for testing three 33220A
waveform generators.

As Table 2.2 shows, GPIB is the most


expensive scheme to implement.
Even with the added costs of USB Ease of implementation
and LAN hubs, their reduced cable
costs and higher overall speed perfor- USB is the simplest I/O to imple-
mance makes them more attractive ment, and GPIB is also relatively
alternatives. straightforward, as long as you don’t
mind the hassle of opening your PC
From a systems perspective, hubs and installing an interface card. Since
and switches also offer some I/O LAN has become common in home
interface operational feedback that is broadband applications, configura-
lacking with GPIB systems. Also, the tion is becoming much easier, but
much smaller USB and LAN cables remains the most difficult of the three
and connectors take up much less interfaces to implement. However, for
rack space, making system cabling many system developers, the advan-
easier. They also weigh less. tages of LAN far outweigh the added
development time required. Evaluate
your own situation to decide if that is
true for you.

Table 2.2. Typical costs for LAN, GPIB and USB interfaces

Interface Single instrument 12-instrument system


LAN PCI card + cable $30 PCI card + cables + 16-port switch $300
USB PCI card + cable $60 PCI card + cables + 2 hubs $225
GPIB PCI card + cable $600 PCI card + cables $1600

www.agilent.com/find/open
25
Conclusion For design verification and manufac-
turing, USB and Ethernet-based LAN Get help configuring your
With the new generation of test are good choices, although LAN is I/O interfaces
instruments offering a choice of typically the better of the two alter-
interfaces, you need to decide which natives for larger systems because Configuring an interface to connect
interface is best suited for your of its data-throughput performance, your PC to an instrument or system
test system. Comparing costs, data cost, remote access, and ease of
can be a daunting task for someone
transfer rates and ease of imple- system assembly.
mentation will help you choose the who is not well versed in the
interface most appropriate for your The added flexibility, remote system intricacies of PCs, I/O technologies,
application (see Table 2.3). For R&D access and control, performance on a and I/O inter-face configuration.
applications, where the number of par with USB, captive cable connec-
In the past, this was especially so
instruments in a system is usually tors (which aren’t found on USB),
and the capability for wireless opera- for LAN-based I/O that required a
small and a quick and easy interface
tion offered by the LAN approach can system to be connected to a site
set-up is desired, USB is usually the
best choice. make LAN the most attractive choice LAN. Fortunately, step-by-step guides
for many systems applications. such as Agilent’s USB/LAN/GPIB
Interface Connectivity Guide are now
Table 2.3. Advantages and disadvantages of GPIB, USB, and LAN interfaces available to help you to configure
your I/O interfaces. The Connectivity
Interface Advantages Disadvantages Guide describes in detail how to
LAN • Good data-throughput performance • Requires LAN knowledge to
connect instruments to various
• Low cost set up
interfaces, and how to configure your
• Remote access makes it easy to PC. It also includes programming
control system from remote location
examples and interface trouble-
USB • Quick, easy setup • Does not work with Windows
shooting tips. You can view the
• Low cost NT
guide at http://cp.literature.agilent.
• Good data-throughput performance
com/litweb/pdf/E2094-90009.pdf
GPIB • Ubiquitous interface on test • PC expansion slot required
instruments • Must open PC housing to install
• Maximizes throughput for all block card
sizes • Relatively expensive
• Limited cable lengths permitted
between computer and
instruments

26 2. Computer I/O Considerations


3. Understanding Drivers and Direct I/O

Introduction and various trade groups have been History


working on driver standards for
This chapter answers common some time, in an attempt to alleviate The history of automated measure-
questions about the use of drivers the frustrations of engineers who ments dates back to at least 1970,
and direct I/O to send commands need to automate measurements and when instruments began to be
from a PC application to the test create test systems on a deadline. connected via imaginative schemes
instrument. It discusses how the As a result of these efforts, we might to devices resembling computers.
driver came about, what the different expect finding and using appropriate One popular I/O format involved
software layers do in a system to drivers to be dramatically easier, connecting a large cable to the
help the instrument communicate to but at the moment, complexities instrument (Figure 3.1). Each line
the PC, which drivers are compatible and incompatibilities are still on the cable represented a function
with various software languages troublesome. or range, and the line was simply
and I/O software, and references for grounded at the proper time. The
further study. This chapter answers common device, say a voltmeter, would return
questions about the use of drivers a value using binary coded decimal
For the purposes of this discussion, and direct I/O to send commands (BCD) 1-2-4-8 format, or a quainter
a driver is a piece of software from a PC application to the test 1-2-2-4 format. Needless to say, the
intended to simplify programming instrument. It discusses how the programming syntax of instruments
and accelerate test-system develop- driver came about, what the different at this time was anything but stan-
ment by facilitating communication software layers do in a system to dardized. However, since everything
with an instrument. In contrast, help the instrument communicate to was hardwired, the process was
direct I/O involves embedding the PC, which drivers are compatible straightforward and immediate.
specific instrument commands with various software languages
(typically called SCPI commands) in and I/O software, and references for
your test software and managing all further study. GPIB
of the input/output communication
With new insight into these topics, In 1971, development began on
yourself.
you should be able to choose, install a standard hardware interface.
Even if you have never programmed and use drivers more easily and The idea was to be able to trigger
an instrument in a test system, you reduce the amount of time you multiple instruments at once and still
have used drivers on your PC. Digital spend getting your instruments and allow both slow and fast instruments
cameras, printers and other periph- computer applications to talk to each to “talk” on the same bus without
erals all require a driver to talk to a other.
PC. Moreover, if you’ve ever upgraded
a PC, you may have found that the Figure 3.1. Early instrument control utilized hard-wired commands.
old printer driver no longer worked
with the new operating system, and
you need to go online to find a new Your computer
one. Or you may have found that the
printer didn’t work exactly the same
way it did under the old operating Digital lines
system. Similar issues exist with test
and measurement equipment. 64-pin connector,
data & control lines
In a September 2001 survey, Test Direct interface
& Measurement World published a Your instrument
summary of engineers’ worst head-
aches. Instrument drivers topped
the list. Instrument manufacturers

27
conflict. The first products to use to generate a universal approach to One advantage of SCPI is that the
this bus were released in 1972. The instrument control, using TMSL as list of commands typically covers
same year this new bus was dubbed the basis. The outcome was Standard 100 percent of the instrument’s
Hewlett-Packard Interface Bus (HP- Commands for Programmable programmable functions, no matter
IB). In 1975, IEEE adopted it as a Instruments (SCPI) (Figure 3.2). how arcane. For a friendly tutorial on
standard with little modification, and SCPI, go to ftp://ftp.agilent.com/pub/
IEEE-488 was born. A variant of the Today, SCPI is still the most-used mpusup/pc/iop/hpibtut/ib5_scp.html.
original interface is now popularly form of instrument control. In
known as General Purpose Interface SCPI, the instrument programming
Bus (GPIB). syntax became much more robust The I/O software: SICL and
and predictable. SCPI defined a VISA
With GPIB and a desktop computer strict hierarchy, and every command
(actually at the time it was called was associated with a concomitant Instrument commands aren’t the
a “desktop calculator”), the need response. These were defined for whole story. It takes more “layers”
arose for a common communication source, sense and switch devices. of software to communicate with
language. Limited processing power Here’s an example of SCPI code: a computer. Before you send the
in the ‘calculators’ demanded a instrument a command, you need
simple syntax, so ASCII commands CONF:VOLT:DC 0.3,0.003 to define the I/O path, route the
were chosen. A DMM might be sent information through the proper I/O
This command tells the instrument card, find out where the instrument
what was affectionately termed
to configure itself to get ready to read is on the bus and speak to the instru-
“R2D2 code.” Here’s an example:
a 0.3 volt dc signal with 3-millivolt ment in the syntax of the I/O you’re
“F1R2T1” resolution. It should be obvious from using. Assuming the GPIB I/O card in
this statement that SCPI commands the computer is at address 7 and the
The command means “Go to the require some intelligence on the DMM is at address 22 on the bus, the
dc volts Function, the 1 volt Range other end of the wire, as not every simple BASIC command might be:
and Trigger a reading.” Different voltmeter has a 0.3 V range. The
manufacturers had unique ways to commands need to be parsed by ASSIGN @Dvm to 722 !
interpret the command strings, based the voltmeter and this parsing adds
on their instruments’ capabilities. a small layer of delay time to the
If you had to replace a product with system.
one from another manufacturer, or
even a new-generation product from Figure 3.2. Compared to “R2D2” code, SCPI commands standard-
the same manufacturer, it could ize programming and make life easier for the programmer. SCPI
mean completely rewriting the entire commands can access virtually any programming function in the
program. Later versions of IEEE 488 instrument, but the parser does add small delays to the process.
elevated the standard from being a
hardware-only standard to one that PC application software
also specified protocol.

SCPI Direct I/O


Your computer
(native
In 1989, seeing a need for more instrument
clarity and interchangeability that commands like
SCPI, ASCII)
was available with simple ASCII,
Hewlett-Packard introduced a
programming language known as Test
& Measurement Systems Language
(TMSL). Within less than a year, I/O software
nine T&M manufacturers had met Physical interface
GPIB
Physical interface
SCPI parser
Your instrument

28 3. Understanding Drivers and Direct I/O


This tells the computer where to SICL is not the only I/O software standard. Largely derived from the
send the command. available today. AGILENT VISA, SICL library, the VISA syntax was
NI-VISA and NI-488 and VISA-COM born.
OUTPUT @Dvm; (from Agilent) perform similar
“TRIG:SOURCE:INT” ! functions. That’s a dizzying array of Virtual Instrument Software
choices, so for now let’s concentrate Architecture (VISA) was created
This sets the trigger source to by the VXIplug&play Foundation
on VISA. While SICL software was
internal. to standardize I/O software across
created to communicate with Agilent
interfaces only, VISA was created to physical interfaces and between
The above will work with a GPIB
work industry-wide and is now the various vendors (Figure 3.4). In most
interface, but if you try the same
preferred programming interface. cases, test systems are not solely VXI,
thing using RS-232, the syntax is very
but rather hybrids of VXI and “rack
different. Switching between GPIB
and RS-232 would require rewriting
VISA and stack” architectures, so it was
In the late 1980’s, there was a not enough to create I/O software
some code.
move to build standardized card exclusively for VXI. For that reason,
SICL cage instruments. This movement the VXIplug&play specifications
Standard Instrument Control led to a software and hardware were extended to include traditional
Library (SICL) I/O software was standard known as VME Extensions standalone instruments as well as
subsequently developed to address for Instrumentation (VXI). Based both types of VXI instruments.
the challenges of updating or reusing on the VME standard, VXI made
code. SICL was developed by HP to special modifications for software,
 VXI has two types of instruments,
make software as I/O-independent as shielding, triggering, power supplies
distinguished mostly by their local
possible. It adds a layer on top of the and analog performance. VXI was intelligence. “Message-based” cards”
instrument code; this layer checks adopted by hundreds of instrument can react to a high-level message,
to see what I/O is used and alters manufacturers who produced a and usually have on-card parsing.
the syntax accordingly (Figure 3.3). wide variety of plug-in cards. VXI’s “Register-based” cards are just what
The code looks the same, regardless interchangeability at the card level the name implies: cards that have
brought about the need for common directly programmable registers.
of I/O type. All you have to do is use
I/O software, similar to HP’s SICL, Message-based cards can do more, but
one line of code to declare the I/O
but implemented as an industry-wide are inherently slower, since they must
type at the beginning of the program. interpret complex commands.

Figure 3.3. SICL I/O software reduces a test engineer’s programming Figure 3.4. VISA is the most popular form of I/O software.
burden by making it easier to change I/O types (USB, LAN, GPIB, USB, Drawing heavily on the work done for SICL, VISA was created to
VXI, RS-232, etc) without recoding the program. SICL adds a software serve multiple T&M suppliers and be a universal standard. VISA-
layer, which has a small effect on system speed. COM is a new variant of VISA.

PC application software PC application software

Direct I/O Your computer Direct I/O Your computer


(native (native
instrument instrument
commands like commands like
SCPI, ASCII) SCPI, ASCII)
Commands sent over Commands sent over
GPIB, RS-232, GPIB, RS-232,
USB, LAN, etc. USB, LAN, etc.
I/O software
I/O software (SICL)
(VISA,SICL, VISA-COM)
Physical interface Physical interface

Physical interface Physical interface


Internal processor
Your instrument Your instrument

www.agilent.com/find/open
29
Today’s two main suppliers of PC industry adds language The benefits of these PC software
VISA are Agilent Technologies and independence technologies are compelling, but
National Instruments. (In 1999, As I/O development was proceeding should the test and measurement
the engineers from HP Test & in the T&M industry, the PC industry industry embrace PC operating
Measurement who were involved in was making big strides in I/O-inde- systems?
instrumentation were split from HP pendence and language-indepen-
in the new venture now known as dence. In 1994, Microsoft stated: “The Detractors point out the frequent
Agilent Technologies.) Component Object Model (COM) is operating system upgrades in the PC
a software architecture that allows industry relative to T&M languages.
VISA I/O software uses common components made by different soft- However, as Figure 3.5 indicates,
terminology and syntax to connect ware vendors to be combined into a COM—which is integral to .NET
to and control instruments. A VISA variety of applications. COM defines components—has been around longer
library supports complete control a standard for component interoper- than most T&M standards. It seems
of instrument across the physical ability, is not dependent on any only logical to take advantage of the
interfaces GPIB, RS-232, USB, LAN particular programming language, is investments Microsoft has made to
and VXI. available on multiple platforms, and create this paradigm shift. With 3,000
is extensible.” engineers working for three years on
The VISA library provides the the first version of .NET, Microsoft’s
capability of SICL, in a way that In February, 2001, Microsoft intro- investment is twenty times that of
conforms to industry standards. duced .NET, its 3rd generation of the leading T&M language. Similar
A program written to work with component technology. .NET has correlations apply to software. Visual
Agilent’s VISA library will work with been applied to Microsoft’s inte- Basic has over 6,000,000 users, and
implementations of VISA from other grated development environment, C/Visual C++ has 1,000,000 users
vendors. For those accustomed to Visual Studio®.NET, as well as MS worldwide. This will result in an
using SICL, Agilent’s implementation Office, other applications, operating unprecedented body of software
of VISA is provided along with its systems and web services. the average engineer will be able to
SICL libraries. (Since the introduc- leverage.
tion of VISA, programming based on
the SICL library has gradually been
phased out in favor of the industry-  Dr. Dobb’s Journal, Microsoft Corp.
standard VISA library.) December, 1994.

To program a new test system, the


test engineer installs the appropriate Figure 3.5. PC Software Overtakes T&M Software in interchangeability. The millions of people us-
I/O library along with the application ing Visual Studio software will afford the engineer an unprecedented pool of available intellectual
property.
programming language. VISA was
originally developed to be used with
C and C++, but can also be called PC software
from any language that can call arbi- industry
trary Windows dynamic-link libraries
(DLLs), including Microsoft® Visual
Increasing software

Basic. Agilent provides header files Microsoft:


T&M
interchangeability

.NET components
to facilitate the use of VISA in Visual industry Microsoft:
Basic.NET and C#. These can be ActiveX
downloaded from http://www.agilent. Microsoft:
COM IVI-COM
com/find/iolib. VISA-COM (components)
VISA
VXIplug&play IVI-C
SICL
1980's 1990's 2000's 2010's

30 3. Understanding Drivers and Direct I/O


VISA-COM Choosing and using requires you to know a specialized
To incorporate this programming computer programming language and
language independence, Agilent instrument drivers its programming environment and
initiated a VISA-COM standard as a to be familiar with proper command
By managing both the overall
companion to the VISA specification. sequences and interrelationships
communication between the PC
VISA-COM software makes VISA between commands. You also need
and the instrument as well as all
services available in a language-inde- to know how to load and configure
the details of command syntax and
pendent COM component architec- various I/O libraries and parse
instrument functionality, drivers
ture. As a result, you are free to pick instrument responses that may be
are clearly essential considerations
from popular I/O configurations, in the form of binary data or screen
in test-system development (Figure
but now you also have the freedom graphics. Whether you have these
3.6). Without drivers, you’re forced
to choose from a list of software competencies or not, when today’s
to either memorize or look up the
languages, including C++, C# and product design cycles are measured
direct I/O SCPI commands related
VB.NET. in months rather than years, it
to the particular instrument being
doesn’t make sense to spend several
When using Agilent VISA-COM, you programmed. If you intend to code
of those months coding a new test
also need to install Agilent VISA. in a proprietary language, then you
system, unless very high volume
Agilent IO libraries are shipped along need to know how those commands
production is the goal.
with Agilent instruments, software fit. For simple applications, this
and I/O products. approach works well, but as applica- However, even will all these potential
tion complexity increases, using disadvantages, there are times when
direct I/O can become difficult and using direct I/O can be a better
time consuming. Programming a choice than using a driver; see “When
direct communication path usually should I use a driver?” on page 33.

Figure 3.6. The driver is, among other things, a programming aid that works
between the PC application and the I/O software. It can save enormous
amounts of development time and prevent coding mistakes.

PC application software

Your computer

Driver

I/O software (VISA)


Physical interface
GPIB, RS-232, etc.
Physical interface
Parser
Your instrument

www.agilent.com/find/open
31
Drivers come in many forms and Figure 3.7. Agilent’s T&M Programmers Toolkit using a VXIplug&play WIN32 power supply driver in
offer various levels of functionality. VB.NET.
A driver can be as simple as a list
that pops up when you hit the next
“dot” in Visual Basic, or it could be
as elaborate as a “panel driver” that
displays a virtual front panel on the
screen of your computer to help you
set up the instrument (Figures 3.7
and 3.8).

Driver coverage
A simple DMM may have only 25
commands, whereas a more complex
instrument may have hundreds.
You can imagine how expensive it
is to write an intelligent driver that
anticipates all the possible permuta-
tions of instrument setup, triggering,
sourcing and measurement. And
that’s why you’ll seldom see a driver
that covers every command in the
instrument.
Figure 3.8. A tiny but interesting program, written in VEE. With its intuitive interface, VEE is the
Instrument manufacturers take their fastest T&M graphical language to learn. Fill in the boxes, and the VEE panel driver generates code
for you. See http://www.agilent.com/find/vee.
best guess at the commands you are
likely to use and craft the driver
accordingly. A typical IVI driver (see
“IVI drivers”) covers about 40-60
percent of the instrument’s command
list. This may sound like a small
number, but consider this: Agilent
surveyed customers who used the
3852A Data Acquisition/Switch Unit,
a complex instrument with over
300 distinct commands. By poring
over customers’ code, we found they
rarely used more than 5 percent of
the available commands. This is an
extreme case, but it tells you that Figure 3.9. If you are using
40-60 percent coverage is a good a driver and need to access PC application software
start. And even if a driver doesn’t instrument functions the
driver doesn’t have, you can
incorporate a particular command,
send direct SCPI or ASCII
there are ways to send commands Direct I/O
commands, or go through Driver
directly yourself (Figure 3.9). the driver with pass-through
(native instrument
commands) Your
commands to control the computer
instrument directly. This 60% ent
um
gives you the convenience of 100% ent instr ability
um cap
drivers, with the 100 percent instr ability
coverage of direct I/O. To cap
avoid command conflicts, this
technique requires in-depth I/O software (VISA)
knowledge on the part of the Physical interface
programmer. Commands sent over GPIB,
RS-232, USB, LAN, VXI or
other physical interface
Physical interface

100%ility Your instrument


c apab
32 3. Understanding Drivers and Direct I/O
Driver evolution When you need to accelerate test IVI drivers
system design and deployment, In 1998, test and measure-
There are three basic generations of Agilent recommends the new IVI- ment companies formed the
drivers: proprietary T&M drivers, COM driver and the VXIplug&play Interchangeable Virtual Instrument
traditional T&M drivers and compo- WIN32 driver for instrument control. (IVI) Foundation to address the high
nent PC drivers (Figure 3.10). These IVI-COM is the only component PC cost of developing and maintaining
represent the past, present, and driver built on the PC standard COM test system software and the need
future of driver technology. In the architecture; the IVI-COM standard is to evolve technology more rapidly
past, instrument drivers were custom- being led by Agilent and other instru- through the use of better drivers. The
designed to function with a vendor’s ment companies. A component driver foundation comprises end-user test
own application development envi- built on COM works in all popular PC engineers, equipment manufacturers
ronment (ADE). A considerable body languages and most T&M languages, and system integrators with many
of legacy application programs uses uses the most popular types of I/O years of experience building test
these proprietary drivers, but for can be used in the latest .NET tech- systems.
new development, engineers today nologies and is backward-compatible.
have better choices. IVI classes
The goal of hardware interchange-
ability led IVI to the concept of
When should I use a driver? instrument classes. The idea is
simple: If you use a spectrum
Use an instrument driver if Use direct I/O if analyzer, it certainly would save time
• You have instrument programming if you could program every instru-
• A driver is available that works with
experience or access to programming ment in the spectrum analyzer class
your development environment and
experts. the same way, no matter who built
I/O software, and supports the
it. Both the specification and any
majority of instrument features you • You need to use instrument features specific driver that implements it
want to use. not supported by the available drivers are called an IVI Class Driver (IVI-C
• You want easy access to commonly (the other 40–80 percent of the Class or IVI-COM Class).
used instrument functions because instrument capability).
the instrument commands are As of this writing, the IVI Foundation
• You need the absolute maximum in
typically organized in a hierarchical has defined the following instru-
system throughput speed.
structure. ment classes: DC Power Supply,
• You need to control the exact Digital Multimeter (DMM), Function
• You want to simplify the process of configuration of the instruments in Generator/Arbitrary Waveform
developing and maintaining your code your system. Generator, Oscilloscope, Power Meter,
over time, because there is a single RF Signal Generator, Spectrum
point of interface to update or change. • You have a large volume of legacy
Analyzer and Switch. Others are
SCPI-based code.
• Software interchangeability is under development.
important to you.
This work makes it much simpler for
• You need to simplify maintaining the the engineer to program instruments
system when instruments need to be from separate suppliers whenever
exchanged. those instruments conform to a
particular class.

Figure 3.10. The three generations of drivers represent varying degrees of language independence.
IVI-COM is the newest and the one supporting the widest variety of software environments.  For additional information, you can
visit the IVI Foundation website at:
www.ivifoundation.org.
Instrument driver families
Component PC Traditional T&M Proprietary T&M
(based on (based on T&M standards) (specific to one language)
PC standards)

IVI-C WIN LabWindows/ VEE LabVIEW


IVI-COM (via NI) VXIplug&play CVI Plug&Play Panel Plug&Play
Drivers (VXIplug&play
GWN)

www.agilent.com/find/open
33
Finding drivers and technical Conclusion
advice
If the project you are pursuing is not
Instrument vendors typically provide complex, there are often situations
drivers on a CD with new products where you don’t even know you are
and offer their most up-to-date using a driver. Indeed, the ultimate
instrument drivers on their Web goal of T&M companies is to keep this
pages. For downloads or more process entirely transparent. In the
information on Agilent drivers, I/O meantime, if you do get embroiled
software, connectivity and applica- with issues of driver selection, note
tion software, join us at the Agilent there can be tradeoffs between speed
Developer Network: www.agilent. of development and speed of execu-
com/find/adn. Note that we do not tion. The industry is working through
post drivers written by other parties. these issues by instituting faster I/O
Because you are at the mercy of and software aids, such as tools to
whoever created the driver, it is a keep track of instrument states. The
good idea to use a driver supplied whole idea is to give you both fast
by the same vendor who made the programming and fast throughput.
equipment.
If you choose to use a driver,
Third-party software and systems computer industry-standard IVI COM
integration companies that support drivers and a Visual Studio .NET-
the test-and-measurement industry compliant development program such
can provide driver development tools as the Agilent T&M Programmers
and services. Two such companies Toolkit give you significant leverage.
are Pacific Mindworks (www.pacific- The T&M applications you develop
mindworks.com) and Vektrex (www. will show significant hardware and
vektrex.com). software interchangeability, while
being easily maintainable and exten-
For advice on mixing I/O hardware sible. Plus, the intellectual property
and I/O software from different you create during the development
suppliers, see ftp://ftp.agilent.com/ process will be widely transferable to
pub/mpusup/pc/binfiles/iop/m0101/ other projects.
readme/trouble/niinfo.htm.

34 3. Understanding Drivers and Direct I/O


4. Choosing Your Test-System Software Architecture

Introduction affects the hardware that connects and maintenance costs. Over the
the PC to the instrument as well life of a test system, software
This chapter will help you under- as the software and drivers that support and maintenance costs
stand the tools required to design, control the instrument. alone can exceed hardware costs.
develop and deploy the software
component of your test system • Collecting and storing test data. • Working with open standards. Today,
(see Figure 4.1). The information Data collection is the science of the industry trend is to move away
presented here will help you choose obtaining, moving and formatting from closed, proprietary develop-
the direction for your software based data. The integrity of your test ment environments. More and
on the application you have in mind system depends on obtaining the more people are embracing open,
and the amount of experience you right data at the right time. industry-standard development
have. We will explore the entire environments as their platform of
• Designing the user interface. One of choice for test-system development
software development process, from
the most important (and easily projects. Making the right choice
gathering and documenting software
overlooked) aspects of test systems now will give you the flexibility and
requirements through design reuse
is the graphical user interface capabilities you need in the future.
considerations.
(GUI). This is what the test engi-
• Gathering and documenting software neers, operators and technicians • Developing a test sequence. Test
requirements. Before gathering see when they interact with your executives are applications
and documenting your software software. designed to run a series of tests
requirements, finalize your test quickly and consistently in a pre-
• Choosing the development environ- defined order. Of the 93 percent
system hardware design. Once
ment. The software environment of test-system developers who use
finalized, start working with your
and tools you choose will have a test equipment, approximately
R&D and manufacturing teams to
significant impact on the overall 37 percent use a commercial test
collect the information you need
cost of your test system. When executive for test sequencing, while
to create software requirements
choosing your software environ- the remaining 56 percent use a
specifications (SRS).
ment, consider more than just the “homegrown” test executive.
• Programming and controlling your purchase price of the software.
instruments. The control of instru- Also, consider how easy it is to • Planning for software reuse.
ments is rapidly evolving from learn and use the software, how Designing for code reuse means
proprietary test and measurement hard it is to connect to other you and your co-workers won’t
standards to open, computer-based languages, devices or enterprise have to re-create your software
industry standards. This trend applications, as well as support components every time you start a
new project. Instead, you can build
Figure 4.1. Test-system software development process overview up a company knowledge base
of best ideas, best practices, and
Time
software components. This knowl-
edge base will bring uniformity
and consistency to your company’s
Gather Open standards? product testing functions.
manufacturing Data
requirements collection
Graphical or This chapter will provide you with a
Performance textual? solid overview of the test system soft-
ware architecture as outlined above.
Gather Software Test executive? For more in-depth information, refer
R&D Requirements to the sources listed throughout this
requirements Specifiaction (SRS) document. Now, let’s get started with
Design operator interface the first phase of choosing your test-
Test
system software architecture—gath-
specification
Finalize Prepare data collection strategy ering and documenting your software
test system requirements.
User interface
hardware Design for reuse

35
Gathering and documenting • External interfaces. How does the A good SRS answers the following
software interact with people, the questions:
software requirements system’s hardware, other hardware
and other software? 1. What measurements and tests are
The Software Requirements required to exercise the device
Specifications (SRS) is a prioritized • Performance. What is the speed, under test (DUT)?
list of required test-system software availability, response time and
capabilities and information on recovery time of various software 2. How will the measurements
the software’s external interfaces, functions? and tests be performed given
performance requirements, system the available instruments and
attributes and design constraints. • Attributes. What are the portability, devices?
Typically, some requirements “musts” correctness, maintainability and
are essential and others “wants” can security considerations? 3. What types of data need to be
be traded for time (e.g., to meet a collected?
project deadline). • Design constraints. What industry
standards need to be followed? 4. Where will the data be stored?
The IEEE identifies the following Does a specific language need to be
areas you should address in your 5. What are the external constraints
used? What about internal policies
SRS: (e.g., performance and time
for database integrity, resource
specifications)?
limits and operating environments?
• Functionality. What is the software
supposed to do? 6. How will the operators, test engi-
Ideally, the SRS will describe WHAT
neers and technicians interact
you need the software to do, not
with the software?
HOW the software will do it. In other
words, you can look at the software Within the product development
 May be referred to as an ERS or as a “black box” that controls a set of lifecycle, the R&D department should
simply as “the requirements.” external resources such as instru- provide a formal list of testing
 For more information, refer to ments, a computer monitor and other requirements to the test-develop-
the IEEE Standard 830-1998 components (see Figure 4.2). ment department. The System
“Recommended Practice for Software Requirements Specifications, also
Requirements Specifications” and the The SRS will include implementation
referred to as a Project Requirements
IEEE Standard 1233-1998 “Guide for details only if those requirements
Specification, refers to the system
Developing of System Requirements are imposed externally. For example,
Specifications” located on the IEEE as a whole and therefore is different
your company may require that
web site (http://standards.ieee.org). from the Software Requirements
a portion of the system be imple-
Specifications. Furthermore, the
mented in a specific programming
manufacturing department will have
language.
its own requirements, such as safety
standards. It is the combination of
Figure 4.2. Scope of the SRS R&D and manufacturing specifica-
tions that determine the hardware
requirements of a test system and
Instruments Results Other Operator
database resources interface provide the basis for the Software
Requirements Specifications.

It’s important to note that trying


to build or design software while
SRS the test system hardware is still in
a state of flux typically results in
additional software re-work and re-
design. This is one of the challenges
you will face in the real world of
Test system hardware test-system development!

36 4. Choosing Your Test-System Software Architecture


Figure 4.3 provides an SRS template The IEEE says that requirements constraints and, most importantly,
and a requirements example. As must be correct, unambiguous, the specific DUT test requirements.
shown in the template, SRS is more complete, consistent, ranked for For example, if you need to perform
than requirements. Document within importance, verifiable, modifiable a specific resistance measurement
the SRS what the software is meant and traceable. You can see that the and you know you have an Agilent
to do and provide definitions for above format meets a number of 34401A multimeter, the SRS would
the terms you are using. Document those goals, but some additional specify a single-sample 4-wire
the external constraints imposed practices are necessary to meet them measurement including a description
upon you and the external resources all. If you refer to requirements in of the proper switching path, thus
you have available. Describe your more than one place, you will need to ensuring access to the pins on the
users in detail and the modes of cross-reference them using a unique DUT.
operation for each user class. Finally, number (3.4.3, for example) so that
include appendices and an index. if a requirement changes, you will In order to accurately describe the
Once you’ve completed these tasks, know where to fix it elsewhere in the test-system software user interface
you’re ready to describe the specific document. requirements, you should develop
requirements. The requirements specific use cases for the different
example (user interface of a test Each written requirement needs to users of the test system (e.g., opera-
sequencer) is a snippet from a larger be verifiable and unambiguous to tors, test engineers, managers, etc.).
set of requirements divided by func- ensure the test program behaves Use cases are scenarios describing
tion. The words “MUST” and “HIGH as expected. As you write the SRS, the users’ interactions with the
WANT” are a way of ranking the rela- refer to the System Requirements software. Taking the time to develop
tive importance of the requirements. Specifications whenever possible. well-written requirements specifica-
You can break up requirements into This is called backward-traceability, tions up front will save you time later
more manageable hierarchies based helping to explain why certain in the development process. The SRS
on function, program mode, or some requirements are included and not process forces you to think about
other classification system that will just an arbitrary restriction. the scope of your project and helps
make the requirements section easier to identify poorly understood areas
The SRS must describe what testing of your software. This means you
to navigate.
resources (instruments) are required will spend less time re-writing and
(e.g., the type of voltmeter, switches, re-testing software due to confusion
Figure4.3. SRS template and requirements
computer monitor, etc.) and whether over what was truly required in the
any factory resources are needed first place. A well-written SRS will
Example SRS template (e.g., a results database). In addition, help ensure that the project portion
Table of contents you need to define within the SRS you want to contract out or redis-
1 Introduction the data collection method, user tribute will not require re-work on
1.1 Purpose interface requirements, performance your part.
1.2 Scope
1.3 Definitions, acronyms and
abbreviations Example requirements
1.4 References 3.4 User interface functionality:
1.5 Overview 3.4.1 (MUST) The UI allows the user to create, modify, run and
2 Overall description debug sequences.
2.1 Product perspective 3.4.2 (MUST) The UI allows users to view and export, load and store
2.2 Product functions sequence run result data.
2.3 User characteristics 3.4.3 (MUST) The UI represents sequences in a hierarchical
2.4 Constraints manner, which may be expanded or collapsed to view or
2.5 Assumptions and dependencies hide internal details of the sequence.
3 Specific requirements 3.4.4 (HIGH WANT) The UI can represent shared (used several places)
sequences separate from the main sequence hierarchy.
Appendices
3.4.5 (HIGH WANT) The UI will use graphical icons to denote
Index variations in state of sequence items.

www.agilent.com/find/open
37
Programming and control- In addition to external data require- debug. For example, in one particular
manufacturing test situation, a DUT
ling your instruments ments, recorded data can be used
to debug a test sequence in ways would fail in the afternoon. The
debugging runs cannot. Debugging test engineer was able to correlate
When designing your test-system
means slowing down and subtly the time of day to the time of the
architecture, you need to think about failure and use that information to
changing the behavior of your test
how your PC will communicate with look more closely at a photoelectric
sequence. This means a defect
different instruments. The two most you see in a normal run may not component of the DUT. It turned
important factors are deciding how show up in a debugging run (and out that sunlight would strike that
to physically connect the PC to other vice-versa). One way to reduce the component directly at certain times
instruments and deciding what burden of diagnosing test software, of the day, causing the component
software will you use to control and and its associated DUT, is to always to charge a capacitor and cause the
collect the data you need to debug a test to fail. A DUT may fail due to the
communicate with other instru-
problem. You will need to balance the temperature variations or relative
ments. Refer to Chapter 2 for advice
benefits of collecting extra data with humidity. Capturing contextual infor-
on choosing an I/O option and to mation and measurement conditions
the costs in performance and time for
Chapter 3 for advice on choosing and your test software. can save days of effort.
using drivers and other instrument
communication software. Just as important as the standard You want to ensure the writing or
types of data (e.g., test limits, formatting of your data does not
Collecting and storing the measured values and pass-fail affect the behavior of your test
system. Today’s PCs use a variety of
judgments) are the contextual
test data data. Contextual data are used to caching techniques that can dramati-
communicate everything relevant to cally affect how long it takes for a
Data collection is the science of the DUT’s testing environment. This given file or network I/O command.
identifying, collecting, formatting includes the test-system configu- If the time it takes to cache your data
and distributing important informa- ration, software version, driver varies between each test run, you will
tion about the behavior of your test versions and other factors. get inconsistent test results. For that
system and the devices it tests (see reason, it’s a good idea to keep your
The more variables you record, the data in RAM until the end of your
Figure 4.4). Quality data collection
more correlation points you and DUT testing and then do your format-
and analysis is the foundation for ting and data transmission.
your colleagues can analyze during
controlling your manufacturing and
test processes—the ultimate goal of a
Figure 4.4. Overview of the data collection process
manufacturing test engineer. Quality
data also can be used to support
many functions throughout your Loaded battery XML
organization and support products response data file
(volts)
throughout their development
lifecycle. Results
database
Response
Communicating results of a test voltage limits
[12,100]
sequence is one use of test data. Test Report ticket
data also may be used to ensure regu- Data printer
latory standards are met, document Model 320a
SN:00010145 Fail!
performance standards, or provide
traceability for the DUT. Given these Operator
interface
applications and others, you may 12:03 pm
Dec. 14, 2004 Fail!
want to collect more data than your
R&D or manufacturing colleagues
request.

38 4. Choosing Your Test-System Software Architecture


Data is useless unless it can be manufacturing information, you Comma-separated value (dot-csv) text
understood. Good data is may want to consider a database formats are a good choice since they
solution. This decision depends are easy to import into Microsoft
• Identifiable. Information identifies on your company’s data storage Excel. With Microsoft Excel, it’s easy
the circumstances surrounding the policies, practices and budget. to make a table of results with the
data and the condition in which it rows containing the results and each
was collected. Table 4.1 lists some common data file column containing a unique descrip-
formats and relevant characteristics. tion. Another advantage is most data
• Searchable. The data posses
analysis software can easily read this
regular structure or fields that are Binary formats have the fundamental format. The downside of this format
uniquely identifiable, making it issue of not being self-describing. In is that it cannot store hierarchical
easy for a script or software tool addition, you need to acquire a sepa- data or easily parse data sets. You
to identify and compare across rate software application to interpret must decide up front as to the
multiple records or datasets. the data. Depending on the software number and types of columns, with
application you use for interpreting each column containing one unique
• Transformable. Raw data must be the data, you also may be limited
interpreted and displayed (insight data field.
in the number of transformation
is the goal). This means that functions. XML is self-describing, very trans-
software algorithms can perform
formable, and has excellent search
operations on some or all of the Text files are hard to search and trans- characteristics. There is an XML
fields of your data and create a form, and are not very identifiable. language called Extensible Stylesheet
new data format or data visualiza- Since plain text files do not have Transforms (XSLT) that can apply
tion based on your original data. regular fields, a text search for the arbitrary algorithms to convert your
number 12, for example, could return XML data into new XML formats,
• Permanent. Data must remain the hour twelve, the limit value 12, or
available and comprehensible. HTML, or simple text formats. A
the DMM measurement 12. number of data analysis programs,
Relational databases tend to be the
best choice for long-term storage of including Microsoft Excel 2003,
data as these databases are highly can import XML data. If you fail to
searchable. If your company does output your data in the right XML
 Tufte, Edward R. “The Visual Display
not already have a database for of Quantitative Information.” format for an analysis tool, you
Graphics Press, 2001. can write a relatively small XSLT
that will convert all your XML data
into the desired format. XSLT also
provides a powerful search feature,
Table 4.1. File data format comparisons
making it much easier to identify
Binary Unformatted Comma-separated XML (Extensible data values or data structures.
text variables (.csv) Markup Language)
Identifiable Only with Only for small Needs good column No major issues
special tools data sets format design  Extensible Markup Language:
Searchable Only with Difficult and No major issues Excellent, but http://w3.org/xml.
special tools error-prone requires XML  Holzner, Steve. “Inside XML.” New
expertise Riders, 2000.
Transformable Only with Difficult and No major issues Excellent, but
 XML in Microsoft Office: http://www.
special tools error-prone requires XML
microsoft.com/ presspass/press/2002/
expertise
Oct02/10-25XMLArchitectMA.asp.
Permanent Only with Only for small No major issues No major issues
special tools data sets
Example: Only with Not importable Supported by Excel 2003 format
spreadsheet special tools Excel, others available
analysis

www.agilent.com/find/open
39
The manufacturing test industry has Designing the user 1. Customize its behavior based on
already begun adopting XML. Some the user class.
test executive applications support interface
XML data logging. There is a stan- 2. Provide or allow input of detailed
When a user displays generated by information about the DUT.
dard called IPC 2547 that defines an
a test system should vary according
XML format for communication of
to the class of user, such as operator, 3. Provide information about the
manufacturing test data.
test engineer, technician, or service state of the system.
Figure 4.5 is an example of a and calibration engineer. A well-
written SRS defines the commands 4. Provide operations for controlling
standard test run in XML format.
and/or menu selections available the system’s state and potentially
You will still want to know the test
to each user class. You will want to its configuration.
sequence ID, the variant of the test,
if the test limits are modifiable on provide each user class with only the
capabilities and information those 5. Display the DUT testing results.
the “PowerTest” and the hardware
configuration of the test system. people need to do their jobs. The For an operator, the interface you
more choices you provide, the greater design should always show the state
If this were a .csv file, we would have the possibility for confusion and of the test system (e.g., running
to create a field for every record to mistakes. a test, paused or stopped). For
answer those questions. Using XML, example, you could use a large color-
we can insert a record type called To ensure security, you can create
a unique login for each of the users. coded graphic on the PC monitor in
<TestSequence ID=”32”> and fully conjunction with lights mounted on
describe the current test sequence Each user login should be linked to
the appropriate class. the test system. The operator also
in that record. We can then add an will need a way to control the state
XML attribute called “IDREF” to refer of the test system as well as a way to
You can verify that your GUI meets
to that test sequence record in our input DUT information (unless this
the users’ needs with a methodology
<TestRun> records. is done automatically via a bar code
called “User-Centered Design,” or
UCD, which consists of prototyping scanner).
In summary, the data format you
choose will have a large impact on its and storyboarding., In general, a
test system’s GUI should be able to As a general rule, test program
value over time. You need to consider should have the following features:
how easy or difficult it will be for
someone else to read and interpret 1. Commands for starting and stop-
 Vredenburg, Karel, et al, “User-
the data once you are no longer Centered Design, an Integrated ping the test sequence.
involved in the project. Approach.” Prentice Hall PTR, 2002.
2. Commands for sending test
 Norman, Donald A., “The Design of results to various kinds of
Everyday Things.” Basic Books, 2002. printers (defect report ticket,
 IPC 2547: http://webstds.ipc.
org/2547/2547.htm etc.).

Figure 4.5. XML report file

40 4. Choosing Your Test-System Software Architecture


3. Control of the behavior of the Figure 4.6. Low-mix, high-volume user interface
test sequence (i.e., picking a DUT
variant from a drop-down list).

4. A way to display a more detailed


description of test results. The
quality of a test results message
can help in providing a quick
diagnosis of a user error or a
recurring hardware problem and
may ultimately eliminate the need
for a test engineer to visit the
factory floor.

The user interface shown in Figure


4.6 was designed for an operator in
a low-to-mid-mix/high-volume test
application. The operator starts by
logging into the test system, selecting
the name and version of the test plan
and entering the DUT information.
The test status portion of the display
is a little less prominent and visible
than recommended for a manufac-
turing test environment, which may
necessitate the addition of test status
lights to the test system.

The system message field displays


the test result information as well
as instructs the user on what to do
next. To help the test engineer during Figure 4.7. Software developer’s interface
the debugging process, the system
message field also can display error
messages.

The user interface shown in Figure


4.7 was designed for a high-mix, very
low volume testing situation (e.g., cell
phone base stations). It also can be
used for test sequence development
or debugging. The class of user for
this interface is highly skilled and
possesses detailed knowledge of the
purpose and function of the available
tests, the DUT, and the test system
configuration. An unskilled test
operator would not be able to use
this interface effectively.

The two GUIs were created with


the same test software, though they
vary considerably in complexity.
The operator GUI in Figure 4.6 hides
unnecessary choices and information
critical to the software developer.

www.agilent.com/find/open
41
Choosing the development environment. In addition, it is easier Graphical or textual
environment
to modify small to medium size
programming?
graphical programs versus textual
programming languages. Historically, Before you can decide on which
The next step in choosing your test
textual programming languages ran development environment is best for
system software architecture is
faster in the manufacturing environ- your application, it’s important to
to select a software development
ment and yielded higher throughput. understand the use model of each in
environment. The software environ-
Today, there is less difference greater detail.
ment and tools you choose will have
between the runtime speeds of a
a significant impact on the overall
graphical environment and a textual Graphical programming is accomplished
cost of your test system. When
environment.. by manipulating images, called icons
choosing your software environment,
or objects, and the lines that connect
consider more than just the purchase Even though graphical environ- these images. The images represent
price of the software. You need to ments are easier to use than textual pre-made commands while the lines
consider how easy it is to learn and environments, textual environments represent the program flow, control
use the software, how hard it is to are used more commonly in manu- points, and /or how data are gener-
connect to other languages, devices facturing test systems. Only about 22 ated and consumed. The icons and
or enterprise applications, as well as percent of the half million-plus users interconnecting lines are contained
support and maintenance costs. Over who write code for test and measure- within the integrated development
the life of a test system, just software ment equipment use a graphical environment (e.g., the software
support and maintenance costs can programming language. program).
exceed hardware costs.

You have a number of options when Figure 4.8. Agilent VEE Pro graphical programming environment
it comes to software development
environments, from writing every-
thing yourself in a language such
as C, C++, C#, VB, VB .NET, Agilent
VEE, MATLAB or LabVIEW, to using
an off-the-shelf test executive with
pre-written third party tests. The
software environment you choose
needs to accomplish two goals:
1) meeting your time-to-first test
requirements and 2) meeting your
test-throughput requirements. How
fast can you get your test system up
and running, and how can you get
the greatest throughput?

Software development environments


can be grouped into two categories:
graphical or textual. Graphical
environments, such as Agilent’s VEE
Pro 7.5 (see Figure 4.8) or LabVIEW,
are considered easy for engineers
to learn and use, largely because of
engineers comfort with the schematic

42 4. Choosing Your Test-System Software Architecture


Many graphical programming useful when dealing with a large Textual programming languages
environments provide the ability test system, but prototyping can use special words and syntax to
to create compiled or packaged aid development of systems of represent the program’s operations
programs that do not need the any size.10 and flow. Most, but not all textual
programming environment to run. programming languages are based
There are several graphical program- 5. Ability to share and learn existing on open standards. This means you
ming environments targeted at test programs easily. Using real-life will have a choice of vendors when it
and measurement engineers. These metaphors as visual cues can comes to your programming environ-
programs tend to have extensive make it easier to share and learn ment and software tools. Textual
I/O and instrument drivers, and existing programs and increase programming languages have a much
T&M-specific math and graphing productivity.11 larger set of third-party drivers,
operations. tools, and add-ins because they are
based on open standards and are
Some of the advantages of graphical 10 Rahman, Jamal and Lothar, Wenzel, more widely used than graphical
programming languages over textual “The Applicability of Visual languages. This benefits the test
languages are as follows: Programming to Large Real-World engineer.
Applications,” 1995, http://www.
1. No complex syntax. The program computer.org/conferences/vl95/html- Some of the advantages of textual
instructions, typically presented papers/wenzel/paper.html. programming languages over graph-
as a group of icons connected 11 Blackwell, Alan F. and Green, ical languages are as follows:
by lines, are more immediately T.R.G., “Does Metaphor Increase
understandable. Visual Language Usability?,” IEEE 1. Ability to handle large programs.
Symposium on Visual Languages Textual programming languages
2. Easier visualization of the paths of VL’99, 1999, pp. 246-253. are better suited for creating
execution and interaction. Multiple larger, more comprehensive
concurrent activities rely on programs.
what is called a data-flow model,
where a command needs to have
all its data available before it will
Agilent VEE Pro and T&M Programmers Toolkit
execute. This is easier than using
multithreaded programming tech- Agilent VEE Pro
niques in textual programming
• Description: Easy to use, powerful graphical instrument programming
languages such as C++ or Java.
environment
3. Real-life metaphors. The icons • Applications: Data acquisition, design, low volume manufacturing test
representing the commands can • Purpose: Graphical program creation to acquire and analyze instrument data
use metaphors (images) that
• Features: Easy test-system control, sequencing, support of Microsoft .NET
represent real-world equivalents
framework, MATLAB® analysis and visualization, full support of ActiveX
of the actions carried out by the
icon. Most test engineers find Agilent T&M Programmers Toolkit
graphical programming to be
• Description: Test code development (in VB .NET, C++ or C#) integrated into Visual
more intuitive and user-friendly
Studio .NET
than textual programming.
• Applications: Design characterization, design validation, manufacturing
4. Rapid prototyping. With the • Purpose: Writing complex programs with a variety of drivers in a PC standard
intuitive nature of a graphical environment
programming language, it can
• Features: Instrument I/O and communication, test code debug, data collection,
be easier to quickly build a
display and analysis, support for IVI-C, IVI-COM, VXIplug&play drivers
prototype of your system. The
prototyping capability is less

www.agilent.com/find/open
43
2. Simpler navigation of large programs. 4. Greater choice of development Choosing between proprietary
environments. For example, there
For larger programs, textual
and open standards
programming languages are are few graphical programming
easier to navigate and compre- languages that have develop- Several factors to consider when
hend. A person can observe only ment environments provided by deciding between an industry stan-
about 50 graphical objects at multiple vendors. This means that dard and a proprietary development
a time before the information today’s graphical languages are environment are 1) cost, 2) industry
becomes too complex or too small less likely to have the advantages support, 3) upgradeability, and 4)
to see.12 If a user is forced to move created by competition between extensibility.
around in a program to see all its vendors.
objects, he or she can lose track Development environments for open
of the control and data lines and Graphical programming tends to standard programming languages
find it difficult to understand be easier to learn and comprehend have a greater feature set and are
the overall flow of the program. while textual programming is more less expensive than their proprietary
With that said, you can improve pervasive and open. Table 4.2 counterparts. Simply stated, an
the understandability of large summarizes the differences between open standard environment tends to
graphical programs by breaking the two programming environments. create greater competition, which in
up the program’s large operations turn tends to drive down prices and
into smaller suboperations. This Working with open create innovation.
is called functional decomposi-
tion and is achieved by putting a
standards Open-standard languages generate a
series of commands into a “black lot of interest from both software tool
In addition to choosing between
box”. You then send commands to vendors and open-source developers.
graphical and textual programming,
the functional block and receive Both of these groups spend consider-
you need to consider whether the
its output as appropriate. Make able time understanding the needs of
environment you choose will be
sure the graphical program you the test-system programmer and, as a
based on industry standards or
use supports this functional result, develop both free and for-pay
propriety, vendor specific technology.
decomposition13 if you plan on tools and applications to meet those
C++, Visual Basic, and C# are all
working with larger programs in a needs. A good example is the tremen-
examples of industry standard
graphical environment. dous number of C and C++ libraries
programming environments. Agilent
available on the market, both from
VEE Pro and NI LabVIEW are
3. Higher system throughput. The vendors and from end-users. These
examples of proprietary development
faster runtime speeds of a libraries save development time and
environments although Agilent VEE
textual programming language money given that it is faster and less
Pro 7.0 does allow for access into
can improve overall system expensive for a developer to buy the
industry standard technologies such
throughput. However, be aware domain-specific software (such as
as .NET.
that the time spent during instru- mathematical analysis libraries) than
ment operations will often have create it from scratch.
a greater impact on throughput
than the choice of programming Table 4.2. Graphical versus textual programming
environment. For example, time
lost through inefficient signal Graphical Textual
switching between the test system Free and open Few open standards, less Dominated by open standards,
and the DUT can far outweigh extensible very extensible
any time savings earned through
Rapid prototyping Excellent T&M prototyping Some code wizards, (T&M
choice of programming language.
features Programmers Toolkit, for
example) but slower
12 Begel, Andrew, “LogoBlocks: A T&M support Several graphical environments Several T&M-specific 3rd-party
Graphical Programming Language targeted at T&M, many drivers tools available, many drivers
for Interacting with the World,” 1996,
3rd-party tools Hundreds Tens of thousands
http://www.cs.berkeley.edu/~abegel/
mit/begel-aup.pdf. Learnable and Easy to pick up and use programs Only small or very-well-designed
shareable programs are easy to share
13 Glinert, E. P., “Visual Programming
Environments,” IEEE Computer
Society Press, 1990.

44 4. Choosing Your Test-System Software Architecture


Open standard environments also While there is some additional ment with support for the .NET
have a time-to-market advantage, overhead required to load the .NET technologies. As shown in Figure 4.9,
as most proprietary environments framework runtime, programs there are multiple .NET development
cannot quickly take advantage of written with .NET are comparable, or environments and programming
emerging technologies. Emerging run faster, than their C/C++ counter- languages available from a number of
programming technologies are devel- parts.14 The reason programs can run different vendors and supported on
oped with the most common open faster in the .NET environment is due multiple platforms.
standard programming languages in to the inefficiencies inherent in the
mind. It takes longer for a vendor to linker operation of older languages.15 The best-known .NET languages are
release a new version of proprietary C# and Visual Basic (VB) .NET. C#
software that takes advantage of new A survey of programmers and a is a lot like Java in structure and
technology. number of case studies have shown features, but its syntax is meant
significant improvements in produc- to be an evolution of C++. A C++
tivity via the .NET environment over programmer familiar with object
The .NET framework the programmers’ old environment.16 orientation and exception handling
could easily move to the C# program-
The .NET framework is an open, The .NET Framework (the collection ming environment.
multi-platform, multi-vendor set of of API services and helper code used
software technologies for program- by the .NET languages) is not the VB .NET is an upgrade to Visual
ming computers. The C# language same thing as Visual Studio .NET. Basic 6. Engineers with existing VB
has been submitted to a standards Visual Studio .NET is Microsoft’s 6 applications must use an upgrade
body as an open language. The development programming environ- wizard to migrate to VB .NET. Once
underlying .NET “Common Language the upgrade process is complete,
Infrastructure” technology, also access to .NET applications and
an open standard, is available in 14 Wilson, Matthew, “Does C# Measure the additional power and flexibility
multiple operating systems, including Up?” Windows Developer, Volume 2, provided by .NET can be achieved.
Microsoft’s Windows and Linux. Issue 13, Fall 2003, http://www.wd-
mag.com/wdn/webextra/2003/0313 Microsoft’s C++ language also
The .NET technology has excellent has been enhanced to include a
15 Johnson, Mark S. and Miller
support and applicability to both new version called Managed C++.
Terrence C., “Effectiveness of a
web development and PC software machine-level, global optimizer,” Managed C++ makes it easier to
development environments. The 1986, http://portal.acm.org/citation. execute calls within the .NET soft-
.NET technology has many of the cfm?id=13321&dl=ACM&coll=portal ware. Microsoft provides the original
advantages of Java language without unmanaged C++ in Visual Studio
16 http://www.microsoft.com/net/
many of Java’s drawbacks. For .NET as well.
casestudies
example, the .NET technology elimi-
nates programmer memory leaks,
makes software deployment easier, Figure 4.9. Programming languages within the .NET framework
and provides a rich Application
Programming Interface (API) for
system and GUI development. The
.NET technology is fully compiled via C/C++ Managed
a Just-In-Time (JIT) compiler. The JIT C++
compiler takes the operating system
(OS) and platform independent code Visual Studio .NET VB .NET, ASP .NET
and creates optimized, machine-level
Visual designers,
code for the target platform. editor, debugger
Open standa
.NET rds
.NET class
C# library API
C.L.I.,
common language .NET
infrastructure SDK

www.agilent.com/find/open
45
One significant advantage of .NET Developing a test sequence and allow the user to create addi-
over older programming technologies tional test modules from scratch
is its extensibility. Microsoft engi- In a survey of more than 2,500 test (as well as customize existing test
neered .NET so that it avoids a lot and measurement equipment users, modules). Test executives control
of the DLL installation frustrations 93 percent of the respondents said the data to and from the test module
Windows programmers experienced they use multiple test instruments and, after collecting and analyzing
in the past. There are already a and /or are connecting their test all of the data, determine if the DUT
large number of third-party tools instruments to a PC. Of that, 37 passed or failed.
for .NET. Many of these third-party percent said they use a commercial
controls (i.e., advanced graphing test executive for test sequencing. One reason for using a test executive
visual controls) are useful to test- The remaining 56 percent of these is it provides a structured framework
system programmers. Additionally, respondents use internal or “home for manufacturing test systems. Test
several test and measurement grown” software for test sequencing. executives work best in medium- to
vendors, including Agilent low-mix, and medium- to high-volume
Technologies, National Instruments, A test executive is a software manufacturing test environments.
and Measurement Computing, have application designed to run a series
of tests quickly and consistently in Test executives are written so that
released .NET-compatible tools. For
a predefined sequence. If any of the sequence design, individual test
a complete list of released .NET-
tests within the test sequence fail, design, and test limits and configu-
compatible tools, refer to Microsoft’s
then the DUT fails. Over the years, ration management are treated as
.NET partner web site at www.
test executives have improved consid- separate tasks. Keeping the three
vsippartners.com.
erably both in terms of flexibility tasks separate results in greater
Agilent Technologies’ first add-in and capabilities. First-generation flexibility, higher quality, and an
for Visual Studio .NET is called the test executives were language- increased opportunity for code reuse.
Test and Measurement Programmers specific and not powerful enough It is the test executive that provides
Toolkit (see the sidebar on page for a mission critical manufacturing the infrastructure and helper
43). The T&M Programmers Toolkit environment. Second-generation services required to connect each of
provides I/O tools, graphing and test executives, such as Agilent’s the separate tasks into a complete
mathematical libraries, T&M specific TxSL and NI’s TestStand are more program.
help and example generators, and powerful but more expensive. They
One of the most important features of
.NET wrappers for instrument also lack the flexibility required for a
a test executive is its test sequencer.
drivers and other software. The T&M low-volume, high-mix manufacturing
As shown on the left side of Figure
Programmers Toolkit is fully inte- environment.
4.10, the test sequencer is a sequence
grated into the Visual Studio envi-
Each of the tests within the test of tests that can be manipulated in
ronment. For more information on
sequence is a separate module. design mode. Various test executives
Agilent’s solutions, go to http://www.
Commercial test executives come provide different levels of flexibility
agilent.com/find/toolkit or http://www.
with a standard set of test modules in this sequence, such as “test
agilent.com/find/iolib. To download
looping.”
.NET-related I/O source files, which
also work with the Agilent I/O
Figure 4.10. The test executive test sequencer
Libraries, go to the Agilent Developer
Network (ADN) web site at http://
www.agilent.com/find/adn.

46 4. Choosing Your Test-System Software Architecture


At a minimum, test executives should Planning for software reuse Professional test executive
perform the following tasks.
Aside from the use of standard or custom software?
1. Capture the results (and any libraries and operating system
extra data) using their own data API’s, most software reuse tends How do you decide if you should
collection model. to be opportunistic. A typical reuse create your own test executive or buy
scenario is when a programmer an off-the- shelf version? Here are a
2. Keep track of the test limits few factors you will need to consider.
encounters a problem and remem-
and test setup data, passing the
bers a similar problem handled
setups to the tests at execution 1. The first thing to look at is
by a co-worker. The programmer
time. whether you need a test executive
searches through the old source code
of previous programs to find the at all. If you don’t have a relatively
3. Provide limit checkers. fixed sequence of tests, test
desired code. If the code is found,
4. Provide run-time analysis of the programmer decides how and executives are probably not right
the test results (pass or fail if the software can be adapted to for you.
reporting). the current test situation. After
2. If your company has an internal
modifications are made, the software
Additionally, test executives may test executive, or more likely,
must then to be re-verified. Most of
include a software repository for several internal test executives,
the time, adapting software in these
maintaining the test modules (and you’ll need to investigate their
situations is faster than creating
for encouraging the reuse of tests). quality, features, availability of
software from scratch.
With a software repository, the test support, and the collection of
engineer can look for a specific test The scenario above could have been tests or other auxiliary software
by doing a search within the test improved with a systematic software available for them.
module repository. If all the engi- reuse approach. The advantages
3. If you find a reasonable choice, it
neers in a company settle on one test of a systematic approach is in the
doesn’t hurt to look at the cost of
executive, it then becomes possible to reduced time it takes to search, find,
porting existing code over to use a
share test modules between different verify, and adapt test code for new
professional test executive.
product and manufacturing groups. test situations. A systematic reuse
approach requires following specific 4. You may decide to use a profes-
Test executives may use a switching coding and architectural styles, as sional test executive because of
model that makes it possible to well as adherence to standardized its support, quality or features.
map the physical layout of the test company policies and practices.
system’s control and data lines (and 5. A professional test executive most
any switch boxes) to the DUT and Discussing all of the considerations likely will have better outsourcing
instrument’s I/O pins. This allows for implementing a complete compa- characteristics. Third-party soft-
the test engineer to think in terms of nywide systematic reuse program ware contractors and consultants
logical connections between instru- is outside the scope of this chapter, may already have experience with
ments and the DUT, rather than but there are decisions you can make such a test executive, and third-
worry about how the system is wired. to help achieve a more systematic party libraries may be available.
approach for yourself, your team,
Finally, some test executives include and even your company. Reuse 6. A professional test executive
tools for building the operator considerations should begin after should include a complete set of
interface. While this feature tends to you’ve gathered system requirements documentation.
be less flexible than using one of the and before you begin the software
development environments discussed development. If you choose to go with a profes-
earlier, it does provide a fast and sional test executive, make sure
simple alternative. it’s from a company that provides
high-quality service and support.

www.agilent.com/find/open
47
The design reuse process A design reuse example You can achieve similar reuse success
in your own code with good archi-
The first step in the design reuse A good model for design reuse of tecture influenced by the natural
process is to complete a domain individual test modules is the test boundaries of your software’s func-
analysis. This is accomplished by 1) executive—here’s why. tions, types and data. To accomplish
systematically analyzing the func- this, put information that changes
tions and parts of your software 1. Some test executives break test
frequently, such as the limits for a
domain, and 2) using this informa- software up into swappable tests,
test, into a Data File. Put less flexible
tion to develop a software architec- sequencers, limit checkers, test
elements, such as a test class, into
ture with well-defined component sequence and test limit data.18
Types or “classes.” Functions, or
types and algorithms. 2. Test executives rely on the “procedures,” should be reserved for
concept of modules. For example, the least flexible elements.
Next, you will want to look for
natural boundaries in your software. you can have a module that
One software design practice of provides the ability to perform Design reuse and .NET
finding and documenting the natural a single pass or fail judgment,
boundaries is known as Design including the sequencer data While the definitions of the bound-
Patterns.17 To find the natural bound- type, the sequence execution aries of your software domain are
aries, look to those areas where one operation, and the test types. not specifically influenced by the
type of activity or data set links with programming language or software
3. Test executives allow reuse of environment, some environments
another type of activity or data set. tests in different test sequences
These areas can then be grouped into are better than others in helping to
with no change to the test code. keep your software modular and
separate modules and documented The sequencer provides the
accordingly. Once documented, swappable.
necessary data to the tests to
the same type modules can then be customize their operation for the .NET provides software tools that
swapped for one another. current test sequence. make it easier to develop a formal
Once you have identified, collected software reuse program within
4. Test executives keep the tests in your department or company. Since
and documented your modules, separate modules or files from
components and /or individual parts, .NET is object-oriented, it’s good at
the test sequencer or test execu- representing boundaries between
you will need to thoroughly test them tive application. This allows you
before they go into the repository (or different types of objects, such as
to easily swap tests in and out tests or sequencers. Nonobject-based
are passed on to your co-workers). without recompilation.
This will save you and your co- languages, such as C, require you to
workers from problems later in the keep track of which functions apply
5. Some test executives allow you
process. to which objects, without much
to write your own custom limits
context-sensitive help or compile-
checkers or sequencers.
Finally, reusable components are time error checking.
reusable only if your co-workers All of these modules are able to
know they exist. You need a reposi- .NET also includes improved
interoperate because test execu-
tory (such as a relational database) versioning and deployment features.
tives use well-defined application
for your modules where anyone in In addition, .NET has the ability
programming interfaces (APIs) for
your team, division, or company (if to tell Windows that you will only
each module. The modules are placed
appropriate) can browse and search accept a certain version of an
on natural boundaries between
for them based on what the compo- external library. This eliminates one
different types of data and functions
nents are and what they do. of the common frustrations with
within the test executives.
earlier versions of Windows where
you rely on an external library
17 Shalloway, Alan and Trott, James 18 This is a good example of a design (DLL), but then the DLL changes and
R., “Design Patterns Explained: A pattern specific to the test and your software no longer functions
New Perspective on Object-Oriented measurement domain. correctly.
Design,” Addison-Wesley Pub Co,
2001.

48 4. Choosing Your Test-System Software Architecture


Design reuse benefits Design reuse takes advantage of an Design reuse summary
organization’s expert knowledge.
In summary, the reasons for imple- For example, most software devel- Systematic design reuse across your
menting a design reuse program opers spend time specializing on company requires that your manage-
include improved software quality, a particular set of skills and will ment value the extra efforts required
increased software development write components based on those by designing for reuse. Failure to
efficiency, and better use of expert skills. With time, the set of available invest and do the job right the first
knowledge. components for reuse becomes the time will lead to frustration and
set of the best knowledge of your wasted time down the road. One or
Design reuse improves quality in organization. The company’s expert more repositories of software compo-
a couple of different ways. First, skills and deep knowledge will be nents must be made available to all
software errors are reduced as a evident in a rich set of reusable the engineers who will need them.
result of the extra architectural software components. You also need to be aware of any
analysis, improved system design, copyright or patent limitations of the
and flexibility and transparency. These benefits are not theoretical. code you plan to reuse. For example,
With good reuse policies imple- The Software Engineering Laboratory if your software is written under
mented throughout the organization, at the National Aeronautics and contract with another company, they
you have access to thoroughly tested Space Administration’s (NASA) may have exclusive rights to that
and verified components, reducing Goddard Flight Center achieved code.20
the opportunities for creating new significant benefits by implementing
defects. software reuse in the development
of software products in its Flight 20 Defter, Frank W, et al, “Software
Design reuse increases software Dynamics Division. According to Reuse: Major Issues Need to Be
development efficiency by reducing Resolved Before Benefits Can Be
the software engineering lab, NASA
duplication of effort. Components Achieved,” United States General
realized a 35 percent reduction in
need to be designed, implemented Accounting Office, 1993, http://www.
the effort needed to deliver a line defenselink.mil/nii/bpr/bprcd/vol2/
and tested only once. Good reuse of code, a 53 percent increase in 272c.pdf.
practices make it easier to reuse an daily productivity, and an 87 percent
existing component as opposed to increase in code quality.19
re-writing or even re-creating a new
component.
19 Proceedings of the Sixteenth Annual
NASA/Goddard Software Engineering
Workshop: Experiments in Software
Engineering Technology, Software
Engineering Laboratory, December
1991.

www.agilent.com/find/open
49
Conclusion Whether you choose a graphical or
textual environment will depend
Before you begin writing code for on the size and complexity of your
your test system, you need to make a system, your skill set, your company
number of important decisions about standards, and the size of your
the system’s software architecture. programming team. The decision
You will want to start by creating usually comes down to which envi-
a detailed software requirements ronment—graphical or textual— will
specification that defines what you make you more productive. Textual
want the system to do and how it environments are almost always
should operate. The SRS should the best choice for creating code for
include an outline of how you will large, high-throughput manufacturing
gather, store, analyze and present test systems because they offer the
your data as well as how end users most power and flexibility, and they
will interact with your system. allow faster throughput.

Another important decision you need Finally, you need to decide whether
to make upfront is which program- to use an off-the-shelf test executive
ming environment and language or write your own test routines. Test
you will use for writing your code. executives can speed up your test
Using a standards-based environ- system development and lower your
ment such as Visual Studio .NET costs but will require an up-front
maximizes your flexibility and helps training investment. If you are only
you prolong the useful life of your performing a few tests, you may want
software. By combining Microsoft’s to consider writing your own code.
Visual Studio .NET with Agilent’s
T&M Programmers Toolkit, you can
wrap objects written in a variety of
languages such as Agilent VEE Pro.
This allows you to pull them forward
into your new programming environ-
ment, making the most of your legacy
code investment.

50 4. Choosing Your Test-System Software Architecture


5. Choosing Your Test-System Hardware Architecture
and Instrumentation

Introduction System architecture you will need to make decisions


about six major subsystems (see
This chapter explores the hardware The architecture you choose for your Figure 5.1):
architecture decisions and design test system will depend on whether
choices you must make before you plan to use it for R&D, design • Instrumentation (measuring and
you begin building your system to validation, or manufacturing test. In stimulus instruments)
ensure that it provides you with the R&D, for example, you are probably
• Computing (computer, software
performance and flexibility you need. performing parametric tests that
and I/O)
It also discusses issues you should will not be repeated on hundreds of
consider as you select instruments devices under test (DUTs). In design • Switching (relays that interconnect
for your system. validation, you need to be able to system instrumentation and loads
adapt to pinouts that are changing to the device under test, or DUT)
A test system is essentially a group often, but the speed of each indi-
of subsystems that work together to vidual test is not particularly critical. • Mass interconnects (DUT-to-system
test a particular device or range of In high-volume manufacturing, wiring interface)
devices. You need to make important you’ve got hundreds to thousands of
decisions about each of the subsys- DUTs to test, and you want to test • Power sources (power to the DUT)
tems before you begin ordering them as fast and as inexpensively
test instruments or building your as you can. The architecture of • DUT-specific connections (loads,
system. The way these subsystems your test system will be different in serial interfaces, etc.)
communicate and interrelate has a each of these situations. In an R&D
huge effect on the cost, performance, The test engineer’s challenge is to
environment, you might not use all of
maintainability and usability of your choose these subsystems carefully
the subsystems listed below, but for
system. The time you spend upfront and put them together efficiently.
design validation, production valida-
defining the architecture of your Let’s look at each of the subsystems
tion or manufacturing test, typically
system is likely to save you time individually.
later that you might spend debugging
software and tracing down the cause Figure 5.1. A generic test-system architecture
of faulty measurements. Ultimately,
careful planning will help you ensure
accurate testing of your DUT. System controller

When you design a test system, you


need to consider many of the same
issues that architects consider when Power sources
they design buildings: esthetics,
safety, heat, size, cost, future expan- Analog Digital Power
sion, optimal location of parts, and
so on. Once you have decided how Measuring/stimulus
to approach these high-level issues, Interfaces: instrumentation
your test requirements will guide LXI, VXI,
you in designing a system for the FireWire, MXI,
USB, LAN, PXI
range of devices you expect to test. DUT-specific
connections
This chapter explores the system
architecture decisions and design
choices you must make to ensure
Switching
your test system provides you with
the performance and flexibility you
need. It also discusses issues you
should consider as you select instru- Mass interconnect Device under test (DUT)
ments for your system.

51
Instrumentation type: rack- Another cardcage architecture is Another cardcage architecture is
and-stack or cardcage? called PXI (PCIbus eXtensions for compact PCI (CPCI). CPCI technology
Instrumentation). While PXI cards is the basis for PXI, although PXI
There are two major types of instru- are very small, they typically lack the adds triggering options not available
ments for test systems, rack-and- accuracy and performance of VXI or in PCI. CPCI and PXI cards can be
stack and cardcage. Rack-and-stack rack-and-stack instruments. If you interchanged to some extent. CPCI
instruments are standalone test are considering using a PXI system, cards tend to be used in industrial
instruments that can be used inde- be sure to investigate whether you PCs, because they are rack mount-
pendently. For test systems, they are will need to purchase additional able and more rugged than other
frequently stacked in a rack (hence signal-conditioning equipment. Also, card types.
the name) to save floor space, and PXI is based on a PC backplane with
typically, engineers use external PCs no electromagnetic interference
to control them. Newer LXI instru- (EMI) or cooling specs, and therefore
ments often come in both traditional it is not as well suited to be a quiet
rack and stack formats as well as in measurement environment. Note
smaller modular formats. that PXI is also transitioning to PXI
Express, so be sure to look at your
Cardcage instruments needs in the future to determine
Cardcage instruments, as their name if you should purchase a hybrid
implies, are modular test instru- PXI/PXI Express cardcage. See
ments on plug-in cards. You insert the sidebar on page 54 to compare
the cards in a cardcage, or main- attributes of PXI, VXI and rack-and-
frame, and control them either with stack systems.
an embedded controller (a plug-in
card that is a PC) or an external PC. Figure 5.2. VXI mainframe with modular test instruments on plug-in cards
Card-cage systems are often mixed
with rack-and-stack instruments to
provide all the functions needed in a
test system.

VXI is a standard, open architecture


for cardcage systems that allows
instruments from different manu-
facturers to operate in the same
mainframe (see Figure 5.2). The
VXIbus (VMEbus eXtensions for
Instrumentation) was developed by
a consortium of test-and-measure-
ment companies to meet the needs
of the modular instrument market.
The VXI standard was patterned
after the VMEbus standard, but it
was defined specifically as a new
platform because VME did not meet
the needs of the instrument commu- Slot 0 interface Instrument Mainframe provides
and control modules communication,
nity, particularly with respect to power and cooling
noise rejection and triggering. VXI
instruments typically offer more
performance and speed than other
instrument types.

52 5. Choosing Your Test-System Hardware Architecture and Instrumentation


Racked instruments In some organizations, using a Making a choice
Racked instruments can take up standard set of racked instruments
more space than cardcage instru- throughout the product lifecycle The decision you make about which
ments, but typically they are less can lower the barriers to effective instrument architecture to use will
expensive because they are produced communication and cooperation be influenced by several factors.
in higher volumes. It is easy to among organizations with different If you are building a system from
find high-quality, high-reliability responsibilities. For example, R&D scratch, you will want to look at
standalone instruments that are engineers may use benchtop instru- overall system performance and
suitable for use in systems. Lately, ments as they develop and fine-tune cost. However, if you already have a
test-equipment manufacturers have product designs. When they turn to collection of either rack-and-stack or
been putting more thought into how design validation testing—or in the cardcage instruments, reusing them
their standalone test instruments case of larger organizations, when and adding to your collection may
work in a system environment, they turn their pre-production proto- be more cost effective than starting
making rack-and-stack architecture types over to the design validation over. Also important is whether you
easier to implement. Agilent, for department— it is helpful to use the have access to rack-and-stack or
example, offers “system-ready” same instruments, even though the cardcage systems-building expertise.
test instruments that incorporate tests are more likely to be automated If all the expertise in your company
standard protocols and optimized or semi-automated at the design is with cardcage architecture, it may
features like shielding, filtering, validation stage. If it is the same not make sense to switch to rack-
high-speed I/O and on-board intel- engineer doing the validation testing, and-stack, even if the equipment
ligence and memory. Also with the he or she is already familiar with cost is less. If you decide to stay with
large percentage of hybrid (cardcage instrument operation and already an existing cardcage setup for your
plus rack-and-stack systems) and the trusts the test results the instru- system, you may want to consider
introduction of LXI modular rack ment generates. If R&D and design migrating to a hybrid system, adding
and stack instruments, there are validation are handled by different rack-and-stack instruments to gain
more choices to optimize space vs. engineers or different organizations, the capabilities or performance you
usability. using the same test instruments can need. You will need to evaluate the
facilitate effective communication specific circumstances to make the
There are many benefits of using and shared problem solving. You get best decision.
system-ready rack-and-stack the same benefits if you use the same
instruments in your test system. test system architecture when the Another factor to consider is the cost
For example, they can reduce your product moves to manufacturing. of maintaining your system. Look
system development time because into typical repair costs and the cost
troubleshooting a system is easier of keeping spare parts and extra
when you use instruments that are instruments/cards on hand.
capable of standalone operation. You
can use an instrument in standalone “Choosing instruments for your
mode to run preliminary checks system” on page 59 offers more
to ensure you are getting good test detailed information about choosing
results before you have the entire the right instruments for your
system set up. You cannot do the system.
same with cardcage instruments, so
it is more difficult to differentiate
between hardware and software
problems.

www.agilent.com/find/open
53
Comparison of instrumentation types
time update capability. This is especially
Rack and VXI CPCI PXI See notes:
stack true with an oscilloscope, where lack of
immediate feedback can be annoying.
Standalone use Yes No No No 1
Accuracy 2 7. Footprint
**** *** ** **
Price $$ $$$$ $$$ $$$ 3 PXI and CPCI systems have the smallest
Burst speed 4 footprints. However, many instrument
** to **** **** **** **** functions are not fully realizable in PXI,
Single-point ** *** ** ** 5 so engineers typically adopt a hybrid
measurement speed
approach of rack-and-stack plus PXI
GUI response time **** ** ** ** 6 instruments. Once you have a rack for
Footprint 7 part of your system, you use the same
** ** **** ****
amount of floor space as you would for
Ease of use and **** * * * 8
integration a full rack-and-stack system, so you lose
the space-saving advantage offered by
Shielding **** *** * * 9 the small form factor of the PXI cards
1. Standalone use rack-mounted, system cost depends on 8. Ease of use and integration
the configuration of the rack.
With an internal PC, a cardcage can If a racked system has been designed
operate standalone, but you need a 4. Burst speed to accommodate a reasonable amount
monitor if you require an operator GUI. of expansion space (a good idea to plan
Cost of an embedded PC is several times Burst speed is the speed at which the
for unforeseen future needs), adding
that of a standard PC. In any case, card instrument can move a large amount of
instruments to a rack is not a lot more
cages generally require some form of data from a single channel across some
complicated than adding an instrument
computer communication in order to be bus or I/O port to the computer. Burst
to a cardcage. A more important consid-
useful, while rack-and-stack instruments communication is used in data acquisi-
eration is the ease of adding additional
can be used to check out the system tion more than it is used in functional
cables to an existing architecture. For
without a computer present. test. Cardcages typically shine in this
example, whether you use a cardcage or
arena, although recent improvements
several racked instruments, their inputs
2. Accuracy in I/O speed, such as the adoption of
and outputs are usually connected into
fast LAN, have blurred the distinction
Cardcages have power supplies that a switching system or a mass intercon-
between backplane and external I/O.
must be shared among several subsys- nect. If the system has been designed to
tems. Rack-and-stack instruments 5. Single-point measurements handle such new instruments, integra-
are optimized to one use, so they are tion will only take a few minutes. If the
designed to have the right power supply Single-point measurement speed is the system has to be redesigned to handle
for the job at hand, and analog circuitry time it takes to make a single measure- the new instrument, it can take days.
that is not subject to cage-imposed ment, switch channels and then make
restrictions. Rack-and-stack instruments another measurement. This is the 9. Shielding
are designed to minimize magnetic inter- predominant mode used in functional
Dedicated rack-and-stack instruments
ference so they are less likely to induce test. You’ll find more information
are typically well shielded. Since they
currents that would disrupt sensitive about test-execution speeds in the
are designed for a specific purpose, they
instruments. As a result, rack-and-stack “Measurement speed” section on
are frequently more noise-free than their
systems typically outperform cardcage page 60.
card-cage counterparts. VXI has specific
systems in terms of accuracy, crosstalk, 6. GUI response time shielding specifications, and these are
noise, and other factors. lacking in PXI and CPCI. While it is
When a cardcage communicates to possible to shield PXI, the implementa-
3. Price the PC, the PC must often do double tion is left up to the vendor, so placing
Cost of a bench-top system is usually duty as it processes the data and also a new vendor’s product in a slot may
lower when instruments are not updates the GUI. In some rack-and-stack result in unwanted interference with
rack-mounted. When instruments are instruments, these operations happen in nearby instruments.
parallel, giving the operator more real-

54 5. Choosing Your Test-System Hardware Architecture and Instrumentation


The computing subsystem test instruments that support these excellent choices to connect measure-
interfaces, or shorten setup time ment instruments and low-current
Before you consider the ques- by using USB/GPIB or LAN/GPIB stimulus to the DUT. They are very
tions surrounding the computing converters. This topic is covered in fast (typically about 0.5 to 1.0 ms),
subsystem, you need to decide detail in Chapter 2, Computer I/O although they can have a higher
whether you will control your system Considerations. thermal offset voltage than armature
manually, semiautomatically or with relays. Use armature relays (which
a fully automated control system. In manufacturing environments, cost typically switch in 10-20 ms) for
These issues are addressed in is typically a critical concern, espe- higher-current loads. When you use
Chapter 1, Introduction to Test- cially when you are implementing armature relays, group your tests so
System Design. The information in hundreds of identical test systems. the relays stay connected to perform
this computing subsystem section is The lower initial cost of external PCs as many readings as possible at one
for test engineers who have decided typically makes them a better choice time. Because armature relays are
to use either automated or semi-auto- for manufacturing test systems, and relatively slow, you will want to avoid
mated control. the fact that they are typically less connecting and disconnecting them
expensive to service than embedded multiple times.
For systems that use rack-and-stack controllers adds to their appeal. 1U
test instruments, you will most likely or 2U rack-mountable PC controllers Switching topologies can be divided
use an external or racked PC that is are now available that can be a good into three categories based on their
cabled to the instrumentation. For trade of size and cost. complexity: simple relay configura-
test systems that use card-based tions, multiplexers and matrices.
instruments, you need to decide Another major computing consid- The best one to use depends on the
whether to use an embedded PC eration is the choice of software number of instruments and test
(one that fits inside an instrumenta- and application-development and points, whether connections must be
tion cardcage) or an external PC. At runtime environments. Computing simultaneous or not, required test
first glance, the embedded PC may subsystem decisions related to speed, cost considerations and other
seem like a good choice. It fits inside software are covered in Chapter 4, factors.
an existing cage, so it uses rack Choosing the Test-System Software
space efficiently, and it is directly Architecture. A matrix arrangement of reed relays
connected to the backplane, so provides an excellent way to allow
any instrument to be connected to
data transfer speeds are excellent.
Switching any pin on your DUT, and it permits
Unfortunately, embedded PCs cost
a lot more than external ones, and Switches, or relays that interconnect easy expansion as you add new
typically they do not have room to system instrumentation and loads instruments to your system or more
hold many modern peripherals. to your DUT, are an integral part pins appear on your DUT. Matrices
The technology used in embedded of most automated test systems. use more relays than multiplexers, so
PCs tends to lag the technology of Choosing the proper switch type they tend to cost more. If you don’t
the general computer industry, so and topology will impact the cost, need to connect multiple instru-
embedded PCs often are at least a speed, longevity, safety and overall ments to any pin, a multiplexer is a
generation behind in processor type functionality of your test system. For suitable solution. If you have a 1 x
and speed. a thorough examination of switching 20 multiplexer for example, you can
in test systems, see Application connect a test instrument to 20 pins,
If you use an external PC, you will but you can’t hook anything else to
Note 1441-1, Test System Signal
get more computing power for your those 20 pins. With those same 20
Switching.
money. In addition, most external relays in a matrix, you can connect
PCs come with industry-standard The types of relays you choose four instruments to five pins in any
interfaces like LAN, USB and for your low-frequency switching combination.
FireWire built-in. If you use a PC subsystem are important, as they
with these interfaces, you can lower affect the type of circuits and
the cost of your test system by using systems you can test. Reed relays
and FETs are the best choice for
high-speed systems, and of the
two, reeds have higher voltage and
current ratings. Reed relays are

www.agilent.com/find/open
55
In manufacturing test and design of high-speed instruments, not and mass interconnect are in the
validation systems you often need simple relays. If you place relays in same plane, and 2) it reduces wire
banks of general-purpose relays a separate box that is tuned for that length from the switching to the DUT.
of varying current capability. You purpose, it will be easier to expand If the box you choose has cards in the
can use such relays to connect DUT the high-performance instrumenta- rear, reverse-mount the switchbox
inputs to ground or to a supply, or tion while allowing room separately using the rails on the rear of the
through resistors to simulate dirty for denser relay cards, more relay rack, as shown in Figure 5.4. There
switches. You also can use them to cards or a bigger switchbox. It are two negatives to this approach:
provide ways to disconnect output also makes a clearer delineation the front panel of the switching
loads in order to allow parametric between the instrumentation and instrument is not accessible from
tests on output transistors, as shown the switching subsystems, which the front of the system, and it can be
in Figure 5.3. makes it easier to keep your system harder to reach the plug-in cards for
organized. service. However, once a system is
You also need to think about where operational, it is seldom necessary
to place and how to arrange your Placing the DUT interface panel to operate a switchbox from its front
switches. While relay cards can be (mass interconnect or feedthrough panel, and cards can be accessed by
placed in a cardcage that is intended panels) in front of a switching pulling the instrument out the back
for high-performance instruments, it subsystem that has the plug-in cards or by removing the side panel of the
is a waste of valuable real estate. The facing the interface panel accom- system.
high-speed backplane in a modular plishes two goals: 1) It minimizes
cage is more suited to the control rack space, because the switchbox
Figure 5.4. Rear-mounting the switching
subsystem reduces rack space and minimizes
Figure 5.3. Switched loads allow parametric measurements cable lengths

Switch in load
for powered test
Typical DUT
outlet driver Load 12v
MOSFET with
zener protection

DVM
Measure protection
zener using current source
Current sense
resistor

R
+
Measure leakage
current using DVM V
voltage source

56 5. Choosing Your Test-System Hardware Architecture and Instrumentation


Mass interconnects For design validation, production
Tips for successful validation and manufacturing test,
switching A mass interconnect panel is a mass interconnects are typically well
DUT-to-system wiring interface that worth the investment. They provide
1. Place system switching in a box allows you to use fixtures instead of a fast and robust means of changing
dedicated for that use, such as the wiring each connection separately. connections to different DUTs using
Agilent 34980A switch/measure When you are designing a functional the same system.
unit or the 34970A data acquisi- test system for a design lab, it is
tion/switch unit. Placing all system tempting to leave out a mass inter- You can obtain more information
switching in one place minimizes connect, since the product design about mass interconnects from the
cost and helps to keep your system changes so much and the extra time three major manufacturers: Virginia
organized. Allow enough room to to rewire a fixture is not productive. Panel, MAC Panel and Everett
expand the switchbox to a larger size It also is not as likely that you will Charles Technologies/TTI Testron.
or to provide room for another one as make identical measurements on
your needs grow. large numbers of devices. Simple clip
Power sources
leads may suffice, especially for small
2. Inside the switchbox, create an DUTs. Interface panels are relatively DUT power is an integral component
instrumentation matrix. For example, expensive—using one can easily of a test system, whether it is a
create a 16 x N switch matrix, double the cost of a system— but simple bias supply or an advanced
connecting instruments to the 16 there are a couple good reasons for system power source. Depending
“rows”, and your DUT to the “N” adding one to your design-validation, on your application, your DUTs can
(column) side, allowing one matrix production-verification or manufac- require anything from a few milli-
column per DUT pin. By making N turing test system: watts to many kilowatts. There are
an expandable number, in incre- many power supplies available for
ments of, say, 16 or 32, you can • A mass interconnect provides a
providing power to a DUT. Choosing
handle modules that are close to physical location for mounting
the right one is more complicated
your immediate needs with a way interface components such as
than simply picking the right voltage
to easily expand to higher-pin-count terminal blocks, fuses, custom elec-
and current level.
modules in the future. When you tronics/interfaces/conditioning,
need new instruments, simply etc., between the system and the Testing your DUT will be a lot less
connect them to a new set of rows. DUT. You can mount these compo- frustrating if you choose a reliable
No additional wiring is needed. nents either to the interface frame system power source that provides
Since most instrumentation is low or to a shelf attached to the frame. a stable voltage source to power
current and must be scanned across the DUT and built-in measurement
multiple points quickly, choose fast • Device measurements are less
capability to verify DUT performance
reed relays or FET switches for this likely to change due to random
under various operating conditions.
architecture. movements of wires.
When you select your DUT power
3. Also inside the switchbox, allocate • Using terminal blocks on the inter-
source, consider the following:
a set of general-purpose relays for face makes it easy to make wiring
power supply and load connections. changes as the DUT changes, • Number of outputs needed
These relays are generally too big allows easy connection of multiple
to allow economical creation of resources to common points, and • Settling time
a high-current matrix that could provides easy test connections for
debugging the system. • Output noise
programmatically assign any DUT
pin to any load. Therefore, bring • Fast transient response
such relay connections out directly
to an interface panel where they • Fast programming, especially
can be connected to the appropriate down-programming response
pins. When you are designing the
switching for your test system, you • Remote sensing—compensate for
may want to build in some safety voltage drop in wiring
features. Particularly if you are
working with high voltages or high
currents, you might want to include
a switch to disconnect all signals, to
minimize the chance for potentially
serious accidents.
www.agilent.com/find/open
57
• Built-in, accurate, voltage and DC Other architectural your measurement results can be
current measurement or waveform
considerations jeopardized. Temperature gradients
digitization are also something to consider. If one
In addition to the foregoing deci- end of the rack is ten degrees hotter
• Small size—it’s possible to get than the other end, even if the overall
sions, make sure your planning also
linear performance (low noise) out temperature is within instrument
takes into account AC power distri-
of a switched power supply to free specifications, the resulting gradient
bution, cooling, ergonomics, safety,
up rack space can cause some unwanted thermo-
and future expansion.
couple effects or slow drift errors.
• Triggering options
AC power diistribution
If you are designing a system that You can use extractor fans to draw
• Programmable output impedance
you expect to replicate and ship to air through your system to remove
• Multiple outputs and sequencing of areas of the world that have different heat. If you cannot create enough
outputs power requirements, you will prob- airflow to remove the heat with a
ably want to include a power distri- fan, you may need to consider air
• Over-voltage protection bution unit in your system to make it conditioning your rack. There are
easier to convert to the appropriate standard NEMA enclosures that can
• Over-current protection be used for this purpose.
scheme. Power distribution units
• Lead lengths give you a way to route power, detect
If you are using rack-and-stack test
power line problems, and filter the
instruments, it is important to think
• Safety due to exposed voltages input, and they provide the potential
through how you place the instru-
for adding uninterruptible power
ments in the rack. Test instruments
Your choice of supply can dramati- supplies and an emergency off (EMO)
typically pull air in on one side or
cally impact system throughput, switch input.
through the bottom and exhaust
since waiting for power supplies to
Cooling hot air out the other side or the
settle can be one of the most time-
If you do not pay attention to cooling, top. Be careful not to position an
consuming elements in a typical test
temperatures in a rack can easily instrument’s air intake adjacent to
plan.
exceed environmental conditions another instrument’s exhaust vent.
specified for your test instruments. You will find more information about
DUT-specific connections When this happens, your instru- racking test instruments in Chapter
ments can fail prematurely and 6, Understanding the Effects of
Many DUTs require components to be Racking and System Interconnections
connected to their outputs in order
to adequately stress the unit (Figure
5.5). These can take the form of resis- Figure 5.5. Simplified diagram showing ways you can connect loads in various configurations. A
“bridge load” connects a load between two pins on the DUT, rather than between an output and
tive or reactive output loads such as
ground or an output and power.
resistors, light bulbs or motors, or
complicated, simulated loads such as
DUT pins Terminal block connections Current
the dynamically varying current in sense
a camera battery. In most cases, it is Load resistor Power supply +
wise to provide a place to put such
loads in a system, such as a slide-out Load Power supply –
tray on which small, discrete loads
can be mounted. Some DC-program- Load
mable loads (the size and shape of a
power supply) can be rack mounted.
Such loads are often connected to Example of multiplexing a load
the DUT through relays to allow the
DUT to be completely disconnected
Load
from all test system resources. If you
decide to use relays, locate the loads Example of a bridge load
Load
close to the switching subsystem to
minimize cable lengths.

58 5. Choosing Your Test-System Hardware Architecture and Instrumentation


Ergonomics Choosing instruments for 3. Measurements. What types of
As you make decisions about your measurements do you need to
system architecture, keep in mind the your test system make, and how many simultane-
operator’s comfort and convenience. ously? If minimizing instrumenta-
The measurement and stimulus
Provide adequate work space at the tion costs is essential, look for
instruments you choose for your
correct height, depending on whether ways to minimize the number
system—whether they are rack-and-
the operator will be sitting or of instruments you need by
stack instruments or instruments on
standing. Put displays at a comfort- paying attention to the ancillary
a card—will be driven largely by the
able height and if appropriate, functions of instrument that
functional and parametric tests you
provide the ability to tilt the display might perform double duty.
need to perform, and whether you
to reduce glare and eyestrain. Make For example, you can perform
are using manual, semi-automated or
sure illumination is adequate for RF power measurement with a
fully automated control for your test
the tasks that need to be performed. spectrum analyzer if accuracy
system.
Provide for left-handed and right- and speed are not critical to your
handed operators by allowing a application. If you only need to
mouse to be placed on either side of Identify your needs know the power supply voltage
the keyboard. within 0.5 percent, you might be
In all cases, it is wise to start by able to use the internal voltmeter
Safety making a thorough list of the inputs inside your power supply, using
If you are working with high voltages, and outputs of each of the devices the read-back mechanism to read
consider using interlocks to prevent you plan to test and the parameters voltage on terminals.
accidents. Take precautions to deal you will measure. Note the accuracy
with static electricity. For moving and resolution you need for each 4. Protocols. Do you use any special
parts that could cause bodily harm, measurement as well. Once the list serial data protocols? This deter-
consider using deadman switches is complete, check to make sure mines the need for instruments
(two switches, both of which must be it does not contain redundant or to handle things such as CAN,
engaged for the equipment to run) unnecessary tests. Then identify ISO-9141, J1850 and many more.
and EMO switches (a single switch possible test instruments for the
to turn off the entire system in an required measurements and look Once you have made your measure-
emergency). Position heavy equip- for opportunities to use the same ments list and answered these initial
ment low in the rack and watch how piece of test equipment for multiple questions, you can refine your list of
you distribute weight in the rack to measurements. instrument possibilities by looking at
prevent it from tipping over. Also your budget and time constraints and
consider how weight distribution The types of instruments you need your requirements around measure-
would change if you were to remove will vary depending on your appli- ment speed.
an instrument for maintenance. cation. However, there are several
universal questions that you must
Development time
Future expansion answer in order to select measure-
To maximize the re-usability of a ment and stimulus instrumentation When you are choosing instru-
functional test system, you need to properly: ments for your test system, look for
design it in such a way that in the instruments that will minimize your
future it will be able to accommodate 1. AC stimulus. How many dynamic
development time. You can save time
more instruments, more switches (AC) signals do you need to apply
by using rack-and-stack system-ready
and bigger DUTs that require more simultaneously? This determines
instruments that incorporate a high
power, without a complete re-design. the number of channels of arbi-
percentage of the measurement
To maximize your long-term flex- trary waveform or function/signal
solution you need. For example, if
ibility, use open standards whenever generator you require.
you use a source with modulation
possible. Make sure to allow 20 2. DC stimulus. How many static capability, you don’t have to develop
percent to 30 percent extra room (DC) signals to you need to apply your own algorithm or integrate
in a cardcage, or 20 percent extra simultaneously? This determines additional hardware to generate the
room in your rack to accommodate the number of channels of DAC required modulation.
instrument additions. See Chapter 1, (digital-to-analog converter) you
Introduction to Test-System Design, will require.
for more ideas about planning for
future expansion.

www.agilent.com/find/open
59
If you want to minimize hardware You typically spend a large it takes extra effort to create and
costs, you can investigate auxiliary percentage of total development time download a decision algorithm into
capabilities. However, if your goal on debugging your system, particu- an instrument, which may increase
is to minimize development time, larly if you are building a new test development time as well as “first-
buy instruments that are specifically system. You can reduce your debug run” time of the test program. Also,
designed to do the jobs you need time significantly by writing a diag- inside an instrument the readings
done. Using instruments with IVI- nostic test routine that loops outputs will be analyzed by a much slower
COM drivers can save you develop- back to inputs through a large part of processor than the one in the PC, so
ment time. If the instrument has an the switching path. This exercise will this must be factored in as well.
IVI-COM driver, you can interchange help you quickly identify the cause of
hardware without rewriting your problems— whether it is a source, a Simply reading the data sheet does
software, as long as you adhere to measurement instrument or a switch not tell the whole story. Maximum
the functionality that is specific to path. reading rate specifications are
the instrument class. See Chapter 3, usually related to burst speed (see
Understanding Drivers and Direct For more ideas on minimizing your Figure 5.6); that is, the speed which
I/O, for to learn how decisions about development time, see Chapter 4, you can sample the signal on a
drivers affect development time. Choosing Your Test-System Software single channel. But that is not the
Architecture. typical mode for functional test. In
Test instruments with download- functional test, the system normally
able personalities also can save you makes a single measurement, then
development time. You download
Measurement speed changes a parameter like range or
the measurement personalities for a If you are building a manufacturing function or channel, and then makes
specific application directly into the test system (and to a lesser extent in another measurement. In this case,
test instrument’s internal memory. design validation applications), the the burst rate is meaningless. Take
Then you can simply choose from a time it takes to execute each test can for example, two multimeters—one
menu of tests, and the personality’s be critical. But figuring out how fast LXI and one PXI. Note that both
“intelligence” automatically performs your system will perform measure- multimeters can perform up to
the tests, from capturing signals ments is harder than it appears. For 10,000 measurements/second
to displaying results. Agilent spec- example, a digitizer may be able to or more in burst mode, but their
trum analyzers, for example, have sample 1000 readings very fast, but single-sample measurement speed
measurement personalities for if those readings are transferred to is much slower due to the transac-
testing cable TV, phase noise, cable the PC over GPIB, it could take a long tion overheads of controlling each
fault, Bluetooth™, cdmaOne, GSM/ time. A digitizer that can have a deci- measurement. Even a high-speed bus
GPRS, as well as a variety of other sion-making algorithm downloaded such as PXI makes little difference
wireless protocols and modulation. into it could allow a simple go/no-go to the readings/second because the
result to be sent back to the PC, total time is dominated by the setup
New LXI instruments from Agilent and measurement time.
which would make GPIB a reasonable
allow instrument monitoring from
option and may save money over a
the instrument web page. This allows
cardcage-based solution. However,
monitoring of the instrument state
from the same computer screen as
your test program. The web page is Figure 5.6. Burst speed can be misleading; since single-sample measurement speeds are usually
also a useful debugging tool. significantly lower.

A. DMM multi-sample measurement speed A. DMM single-sample measurement speed


4.5 digits, no switching (readings/sec.) 4.5 digits, no switching (readings/sec.)

30,000 350
25,000 300
20,000 250
200
15,000
150
10,000
100
5,000
50
0 0
LXI DMM PXI DMM LXI DMM PXI DMM

60 5. Choosing Your Test-System Hardware Architecture and Instrumentation


At higher resolutions, burst rate Calibration can be an expensive and
again becomes moot, since actual time-consuming part of building a
reading rates are a function not only system. Make sure you don’t have to
of DMM sampling times, but also of ship your system halfway across the
relay switching times. Since such world to get it calibrated. Calibration
reading times can be generally less is especially important in the world
than 10/s, these readings tend to be of RF and microwave, so make sure
done only when the extra resolution your vendor’s support organization
is absolutely necessary. can handle your needs.

For a discussion of how data transfer


rates over different interfaces affect
Example test system
your system’s overall measurement To illustrate the concepts and issues
speed, see pages 23-24 in Chapter 2, discussed in this chapter, we will
Computer I/O Considerations. For design a test system (see Figure 5.7)
a detailed look at ways to maximize from scratch that can be used to test
your system throughput, see Chapter low-frequency, low/medium-pin-
7, Maximizing System Throughput count, low/medium power electronic
and Optimizing System Deployment. modules. These devices are typical
of the automotive and aerospace/
Choosing a vendor defense industries.

The proper design of instrumenta-


Figure 5.7. Functional test system
tion requires attention to minutiae.
Choose an instrument manufacturer
who has been through the learning PC (can behind PC)
process and knows how to minimize Optional 2nd DMM
system noise and maximize accuracy
Function generator
and throughput.
Scope with
Simple systems are one thing, but CAN trigger module
when you put several instruments
Switchbox located
together, strange things sometimes directly behind
happen. That’s when it’s nice to have interface panel
local support and service. Choose a
VXI cage with
vendor who can help you with issues
FireWire, digitizer,
like repeatability, system noise, DAC, and DMM
calibration and drift.
Room for expansion
If your vendor can supply Power supply
specifications that apply to a whole
subsystem—like a central switch— it
will save you the time and trouble of
trying to add all the specifications of
a multitude of vendors together to
divine what the true accuracy of your
system might be.

www.agilent.com/find/open
61
Make architectural choices • Low current DC voltage source Our system uses many I/O interfaces:
(0-5 VDC) LXI (LAN), RS-232C, FireWire and
Table 5.1 shows the architectural GPIB. Using Visual Studio.NET with
choices we made for this test system. • Waveform analyzer
IVI-COM and VXIplug&play instru-
• CAN interface ment drivers along with VISA I/O
libraries, the control program can
Design the system • Simulated or actual stepper motor
communicate easily with instruments
load
Now, we will apply the architectural on all of these interfaces. In fact,
decisions to a system for testing an The DUT has 14 pins total on 3 should an instrument’s I/O interface
electronic throttle module for an connectors. Looking at various ever change (say from FireWire to
automotive throttle body. According catalogs, and adopting the architec- LAN), all that will have to change
to the test specification, the following ture specified earlier, we chose the in the program is the initialization
equipment is required to run the tests: instruments shown in Figure 5.7. string. It is also possible to specify
use of an aliased name to eliminate
• Programmable volt/ohm/ammeter There are three LXI instruments— the hard-coding of I/O addresses.
the power supply, switchbox, and
• Programmable power supply— Figure 5.8 shows how the instru-
oscilloscope. We will use an 8-port
0-13.5 V/0-10 A ments will be connected to the
LAN hub providing extra ports, thus
• Waveform generator capable of “future-proofing” the system. Table switching subsystem. We are using
pulse-width modulation, 0-10 VDC, 5.2 lists the instrumentation used in a matrix, so any instrument can be
0-3 KHz this sytem. connected to any DUT pin, and we

Table 5.1. Architectural decisions for sample test system

Subsystem Decision Reason


Instrumentation (measuring Mix card-based and rack-and-stack instrumentation Most cost-effective solution; helps optimize system
and stimulus instruments)
• Use VXI for higher-speed DMM, multi-channel Maximize system speed; digitizer not available as
DACs, and digitizer rack-and-stack instrument
• Use rack-and-stack for other test instruments Accuracy, ability to prototype system before writing code
Allow about 20%-30% extra rack space for Allow for future expansion
rack-and-stack instruments
For card-based instruments, leave either 20% Allow for future expansion (expected need for bigger
expansion room in the cage, or room in the rack switchbox and/or more power supplies)
for a bigger cage
Use a rack with a top-exhaust cooling fan Hot air rises, and top fan does not interfere with
access anywhere in rack
Computing Use an external PC, not an embedded PC Lower cost, standard interfaces
(computer, software and I/O) Use only industry-standard interfaces Easier support
Use FireWire interface to control VXI instruments For speed
Use Microsoft Visual Studio.NET software Rapid development
Switching Place switching into a separate subsystem Separate cardcage-based switchbox houses
(relays that interconnect system low-data-rate instruments more cost effectively
instrumentation and loads to the Use a matrix switching architecture for measurement Ease of expandability, more flexibility in where
device under test, or DUT) instruments and low-current stimulus instruments can be connected
Mass interconnect Place the DUT interface panel (mass interconnect Minimize cable length, save rack space
(DUT-to-system wiring interface) or feedthrough panels) in front of the switching
subsystem
Power sources (power to the DUT) Use high-current power supply and allow room for DUT requires high current. Bigger DUTs are
more than one in the rack expected from R&D in the future
Consider a modular power source Greater flexibility
DUT-specific connections Connect high-current DUT pins to general-purpose Ability to disconnect loads from DUT to allow other
(loads, serial interfaces, etc.) relays that can be wired to power supplies and loads measurements to be made on those pins

62 5. Choosing Your Test-System Hardware Architecture and Instrumentation


can add new instruments easily by When you use a matrix, you can If you need to power up and run the
expanding the number of rows and connect multiple signal sources to DUT in full-functional mode, you may
columns. All connections to the DUT the same pin. It is important not need to modify the test system either
except for the CAN bus are switched, to accidentally short such sources with more instrument busses or with
making it possible to measure conti- together. Switching routines should more devices connected directly to
nuity from pin to pin. We are using a be carefully written to either the DUT. You must carefully analyze
star ground to avoid ground loops. eliminate this possibility or to offer the type of testing that is required
warnings when improper conditions and plan accordingly.
A mass interconnect is an option for occur.
this system. This particular DUT only
has 14 pins, so in an R&D or design Figure 5.8. Block diagram of system
validation environment you may not
require the flexibility provided by
(CAN trigger module) 1
such an interface. If the number of Pot2 Wiper

CAN H/L
pins is small, simply bringing them CAN CTM Pot2 Vref
2 Pot2 Gnd
directly out of the switchbox to DUT
Fgen Pot1 Wiper
connectors may be sufficient. In the Pot1 Vref
future, if the modules you are testing Pot1 Gnd
have more pins, or if you need a Mixed Sig
Scope Brake
place to put other things between Accel
the system and the DUT, you may
need a commercial mass interconnect DAC Mot –
solution. Therefore, we will provide a DMM Mot +
space directly in front of the switch- Digitizer
box for such an interface. VXI Pwr Gnd
1a 1b
VBatt
We chose a 5-wire measurement bus 2a 2b
because it allows all four leads of the Load tray 3a 3b DUT - electronic
DMM to be connected to different – 4a 4b throttle module
pins on the DUT, making 4-wire ohms – Sense 5a 5b
measurements possible. We routed PS + 6a 6b
two matrix points to the same pin + Sense 7a 7b Mass
on the DUT (as shown in Figure 5.8 interconnect
on the Pot1 and Pot2 Gnd pins), to
make the resistance measurement Table 5.2. Instrumentation decisions for sample test system
very accurate, since the remote sense
location is made right at the DUT. If Instrument Reason
you don’t use two wires, you can still Rack-mountable arbitrary waveform/ Need to generate PWM signals inexpensively
make a 4-wire ohms measurement function generator
inside the relay matrix, which in Heavy-duty power supply Module requires 10A of inrush current
some cases may be good enough. The Optional DMM Debug
fifth bus wire is connected perma- Oscilloscope with CAN trigger module Monitors signals including CAN traffic
nently to the star ground, and so it
Dedicated switching cardcage (“switchbox”) Separate cardcage-based switchbox houses
serves as a common reference for low-data-rate instruments more cost effectively
any single-ended devices, such as the
4-slot VXI cage containing: Provides the most channels in a reasonable form
oscilloscope, or for floating devices factor; space for future expansion
that can be connected to ground,
• Digitizer For high-resolution sampling
such as the function generator,
• 16-channel DAC Need a DAC for generation of a brake signal
digitizer, DAC and DMM.
• High-speed DMM Actual measurements are fastest with this one
• An RS- 232C-based CAN interface Module requires CAN interface for putting module
is located on a shelf behind the PC in test mode

www.agilent.com/find/open
63
It is helpful to make a wiring map resources in the columns. Since Conclusion
that shows how the DUT will connect star ground is physically located
to your system. Table 5.3 shows how outside of both the system and the Before you begin choosing test
to make one using a spreadsheet. DUT, it shows up in both a row and instruments for your test system, you
In the future, when it becomes a column. Wires are connected from need to make a series of high-level
necessary to test a different DUT, the DUT pin number to the relevant decisions about your system archi-
all you need to do is to create a new system resource. For example, the tecture. The architecture you choose
spreadsheet and wire the new DUT battery input, Vbatt (J1-1), has for your test system will depend on
accordingly. two wires attached to it—one to whether you plan to use it for R&D,
general-purpose relay 7b and one to design validation, or manufacturing
Since the system has many resources general-purpose relay 6b, which puts test and on your budget and develop-
available and they can be expanded remote sense of the power supply ment-time constraints, your existing
without changing the basic system right at the DUT. In addition to DUT expertise and your measurement
architecture, new DUTs are easily pins, there are other internal system throughput requirements.
accommodated. The spreadsheet is connections that must be made, and
constructed with DUT pin names they are shown in a separate section Important questions to consider
and numbers in the rows and system of the spreadsheet. include the following:
1. Should you use a rack-and-stack,
Table 5.3. DUT wiring spreadsheet cardcage or hybrid (combination)
System Resource Name architecture?
DUT Pin Name Pin Nr Matrix Col GP Relay CAN H CAN L Star Ground 2. If you decide on card-based
Vbatt J1-1 7b (PS+sense), instruments, should you use an
6b (PS+) embedded PC (one that fits inside
Power Gnd J1-2 X an instrumentation cardcage) or an
Brake J1-3 9 external PC?
Accelerator J1-4 10
CAN H J1-5 X 3. Which switch topology—simple
CAN L J1-6 X relay configurations, multiplexers
Pot1 Vref J2-1 6
or matrices—and which switch
Pot1 Wiper J2-2 5
types (reed relays, FETS or arma-
ture relays) should you use?
Pot1 Ground J2-3 7,8
Pot2 Vref J3-1 2 4. Does a mass interconnect make
Pot2 Wiper J3-2 1 sense for your system?
Pot2 Ground J3-3 3,4
5. Which power supplies and loads
Motor + J3-4 12 3b (load 1)
should you choose?
Motor – J3-5 11 2b (load 2)
Other connections 6. Which measurement and stimulus
PS+Sense 7a instruments should you choose?
PS+ 6a
7. What should you do to minimize
PS-Sense 5a
your hardware costs?
PS – 4a
Motor Load + 3a 8. What should you do to minimize
Motor Load – 2a development time?
Earth Ground 1a 9. What should you do to maximize
Switched Earth Ground 1b X system throughput?
DUT Common X
Star Ground 5b (PS-sense), 10. Which hardware vendor should
13,14 4b (PS-) X X you use?

If you answer these questions care-


fully, you will help you ensure that
your test system produces reliable
results, meets your throughput
requirements, and does so within
your budget.

64 5. Choosing Your Test-System Hardware Architecture and Instrumentation


6. Understanding the Effects of Racking and System
Interconnections

Introduction Choosing racks and To facilitate racking, most test


equipment manufacturers build test
This chapter walks you through accessories equipment according to size stan-
important considerations for dards established by the Electronic
Before you choose your rack cabinet
arranging your test equipment in a Industries Alliance (EIA). The stan-
and accessories, you need to clearly
rack, including weight distribution, dard heights, widths and depths are
define the quantity and size of the
heat dissipation, instrument accessi- illustrated in Figure 6.1. Instrument
components your rack will house.
bility and operator ease of use. It also widths are usually specified as
It is also important to be aware of
explores ways to minimize magnetic full module width (MW) or half or
how users will interact with the
interference and conducted and radi- quarter MW.
equipment, how the equipment will
ated noise to maximize measurement
be maintained and any special needs
accuracy.
such as environmental or security
How you arrange test-system considerations or the need to trans-
components can affect measurement port your system after it is built.
accuracy, equipment longevity and
operator ease of use and safety. This Figure 6.1. Most test instruments are a whole number of standard rack units (RUs) high and
chapter focuses on the important either a full, half or quarter module wide. A full module is typically 482.6 cm (19 inches) wide.
decisions you’ll make if you are
building a system from rack-and- Height
stack test instruments or a mixture Height
7 EIA RU 310.4 mm (12.25 in) H
of rack-and-stack instruments and 6 EIA RU 265.9 mm (10.5 in) H
cardcage components, and you are
5 EIA RU 221.5 mm (8.75 in) H
using a racking cabinet to hold
your system components. However, 4 EIA RU 177.0 mm (7 in) H

many of the concepts we discuss are 3 EIA RU 1322.6 mm (5.25 in) H


applicable to bench-top systems that 88.1 mm (3.5 in) H
2 EIA RU
are not racked.
1 EIA RU 44.1 mm (1.75 in) H

Width Depth
Full Module

1 MW 269.2 mm
(11 in) D
345.4 mm (14 in) D
Half Module Half Module 421.6 mm (17 in) D
497.8 mm (20 in) D
574.0 mm (23 in) D
1/2 MW 1/2 MW

Quarter Quarter Quarter Quarter


Module Module Module Module

3/4 MW 1/4
MW

65
When you calculate rack size, you To maximize the re-usability of your Instrument layout
need to decide whether the system test system, keep your future needs
controller (typically a computer) in mind when you choose your rack. When you plan the layout of equip-
and monitor also will be installed in In the future, you may want to add ment in your rack, you will attempt
the rack to display test procedures more instruments and more switches to achieve a number of objectives
and results. If you are incorporating and accommodate bigger devices simultaneously:
a computer and monitor, will you under test (DUTs) that require more
also need a keyboard or mouse for power. To maximize your long-term • Ensure rack stability by carefully
operator inputs? If so, be sure to add flexibility, allow at least 20 percent distributing the weight of system
space for these items into your calcu- extra room in your rack to accommo- components in the cabinet
lations, along with space for a work date instrument additions.
• Make it easy for operators to use
surface. If there is a work surface,
Other questions to consider: the system and be productive
consider the fact that it may prevent
the user from easily accessing any • Minimize magnetic interference
• What are the physical constraints
instrument in the space directly
of the location where your rack will
below the surface. • Provide adequate power and heat
be situated? Will the floor support
dissipation
You may also want to consider your system’s weight? Are door-
including space for accessory ways into the facility tall and wide • Route power and measurement and
drawers to provide convenient enough for the rack you are consid- stimulus signals to the right place
storage for manuals, spare connec- ering? Is there adequate power, as efficiently as possible
tors and other small accessories (see and does the room have adequate
Figure 6.2). Slide-out shelves are cooling to support the additional • Minimize conducted and radiated
useful for attaching loads and other heat created by the system? noise
custom equipment, and they make
• Will your system need to be moved • Ensure operator safety
access easy.
to its final destination? If so
consider using multiple smaller Plan your instrument layout on paper
Figure 6.2. Adding an accessory drawer to your
racks and limiting total rack before you start installing instru-
rack provides convenient storage for manuals,
spare connectors and other small accessories. weight. If you need to ship the ments in your rack, since you will
system to another location, also probably change your layout multiple
consider using ruggedized rack times before you determine the
furniture with strain relief fittings optimal layout.
and keep shipping concerns in
mind (shipping company or airline
size and weight requirements, etc.).

• Do you need to be able to prevent


or limit access to your system? If
so, consider a rack with lockable
doors.

• Will you need rear access to your


equipment? If the only way to gain
rear access to your equipment is to
move your rack, you may want to
consider installing sliding shelves
instead. A sliding shelf allows you
to pull the instrument out of the
front of the rack for easier access
to the backside of equipment.

66 6. Understanding the Effects of Racking and System Interconnections


Proper weight distribution Figure 6.3. Well balanced and poorly balanced test systems

It is important to minimize the risk


of your rack tipping over to prevent Top heavy,
injury to operators and damage to poorly balanced
expensive equipment. To achieve test system
the greatest stability for your rack,
keep the center of gravity low by
placing the heaviest objects—typically
power supplies and signal genera-
tors—near the bottom of the rack (see
Figure 6.3). You will have to balance Well balanced test
this need with the need to make system with low
frequently adjusted equipment easily center of gravity
accessible to operators.

In addition to keeping the center of


gravity low, make sure the weight of
your system is centered (front-to-back Keeping the center of gravity low is Figure 6.4. This rack cabinet features a
and side-to-side) as much as possible. especially important if you will be retractable anti-tip foot that improves the rack’s
You may need to mount some system moving the rack to another location stability when it is loaded.
components in the back of the rack, after it is assembled, because the risk
rather than the front, to achieve this of tipping increases when you move
balance. it. Of course, the forces acting on
your system’s center of gravity will
When you calculate your system’s change if the system is tilted, so be
center of gravity, be sure to factor in sure to take this into consideration
the weight of the heaviest DUT you if you intend to move your system
will be testing. Your system needs up a ramp as you move it to its final
to be stable with and without the location. When you design your
DUT in place. Also consider how rack, keep in mind that ramps in
weight distribution would change if industrial facilities can be angled at
you were to remove an instrument up to 15 degrees, so make sure the
from the rack for maintenance, if the rack cannot tip over at that angle.
operator were to lean on the work When you push the rack up the ramp,
surface or place heavy manuals on it, turn the rack so the heaviest part
or if heavy instruments on slide-out (typically the front if your equipment
rails were fully extended. is front-mounted) faces uphill, if
possible.
If you have allowed room in the rack
for future expansion, you will have Once your system is in its final
empty spaces in the rack. To improve location, you can improve its stability
weight distribution, leave some several ways. You can bolt it to the
empty spaces near the top of the rack floor, to a wall or to another test
for future addition of lightweight rack. If you bolt it to another rack
instruments and some at the bottom or to a wall, make sure you do not
to allow for future addition of heavy disturb the airflow and cooling and
instruments. Use a filler panel to that you leave enough room at the
cover the front of the rack to keep back of the rack for servicing equip-
dust out of your system and help ment. Some racks are equipped with
manage airflow. Filler panels come retractable stabilization feet that you
in the same standard heights as test can pull out of the bottom front of
instruments (see Figure 6.1). the cabinet to prevent it from tipping
forward (see Figure 6.4).

www.agilent.com/find/open
67
You also can use ballast, or weights In some situations, reverse-mounting Instrument access and ease of use
that fasten to the bottom of the (or rear-mounting) instruments in a during testing
rack, to improve rack stability. Most rack makes sense. For example, if you If you are designing a manual or
racking systems offer ballast as an place the DUT interface panel (mass semi-automated system, you need to
option. Ballast mounted at the back interconnect or feedthrough panels) ensure that the operator can reach
of the rack cabinet helps keep the in front of a switching subsystem the necessary equipment controls
cabinet from tipping forward if you that has the plug-in cards facing the and connectors/patch panels without
extend heavy, slide-mounted devices interface panel, you minimize rack straining. Decide whether operators
from the rack or if you place a heavy space, because the switchbox and will sit or stand during testing and
object on a work surface that extends mass interconnect are in the same position the work-surface height
from the rack. plane, and you reduce wire length accordingly. If a test instrument has
from the switching to the DUT. If a display the operator needs to see,
Adding ballast, using retractable the switch box you choose has cards place it at eye level or above, and if
stabilization feet and bolting rack in the rear, you can simply reverse- appropriate, provide the ability to
cabinets to the wall or floor provide an mount the switchbox using the rails tilt the display to reduce glare and
extra margin of safety, but you should on the rear of the rack, as illustrated eyestrain.
not rely on these measures to compen- in Figure 6.5. If you choose to mount
sate for poor weight balance in your an instrument in a non-standard If the operator will interact with a
rack. Always make sure the center manner, be sure the cooling airflow is computer, place the monitor where
of gravity of your system is as low as not disturbed. the operator can see it easily. If the
possible and the weight of your system operator needs to use a mouse or
is centered as much as possible. You may be able to rear mount keyboard, avoid placing these items
shallow instruments behind front- on the same work surface as the
mounted instruments to save rack DUT. Provide for left-handed and
Instrument accessibility and space. This space-saving technique right-handed operators by allowing a
operator ease of use can be a practical way to reduce rack mouse to be placed on either side of
height if you have a problem with low the keyboard.
If your system is fully automated, you doors or you need to meet airline size
may be concerned about instrument requirements. However, mounting When you are planning the operator
accessibility only during system instruments in both the front and work surface, make sure operators
development or troubleshooting. If back of a rack can make servicing sit or stand far enough away from the
your system is operated manually the instruments in your rack more rack that they do not inadvertently
or semi-automatically, an operator’s difficult. hit controls with their feet.
ability to access instruments and use
them easily during testing will be If you plan to ship the rack to
Figure 6.5. Rear-mounting the switching
an important consideration as you another country, consider operator
subsystem reduces rack space and minimizes
decide how to rack your equipment. cable lengths. height and local safety rules, and
make sure adequate preparations are
Instrument access during develop- made for power, cooling and so on
ment and/or troubleshooting before the rack is shipped. Obviously,
When they are low on rack space, local-language instructions may be
system designers sometimes “bury” necessary in some cases. Inadequate
instruments inside the rack behind preparation can sometimes cause
other instruments or mount them long delays in system deployment.
backwards or sideways in the
rack. Before you choose this tactic,
determine if you will need to access
the instrument during system
development to verify operation or
for troubleshooting, repair or calibra-
tion. If you perform periodic system
self tests to verify operation, you may
need access to the front panel of an
instrument, making “buried” installa-
tion impractical.

68 6. Understanding the Effects of Racking and System Interconnections


Minimizing magnetic Vibration, especially in the presence your instruments can fail prema-
interference of a magnetic field, is a difficult turely and your measurement results
problem for system designers to may be jeopardized. Temperature
Magnetic fields generated by test- solve. Cables moving in a magnetic gradients are also an issue. If one
equipment transformers can inter- field can generate current, and end of the rack is ten degrees hotter
fere with the cathode ray tube (CRT) charge-related noise can be caused by than the other end, even if the overall
displays found in many computers internal stresses in vibrating cables temperature is within instrument
and oscilloscopes (newer display connected to a charge amplifier or specifications, the resulting gradient
types such as LCDs are far less DMM. This issue is one of the big can cause unwanted thermocouple
susceptible to magnetic interference). reasons for installing a mass inter- effects or slow drift errors.
If you put a power supply directly connect in the system. It minimizes
the relative motion between cables, The best way to dissipate the heat
below a scope, the magnetic field
and the chance of charge movement inside a rack is to increase airflow.
from the transformer in the power
due to pinched cables. Installing extractor fans in the top
supply can cause the scope CRT to
of the rack, as shown in Figure
waver to the point where it may not
6.6, improves natural convection
be usable. To alleviate the problem, Power dissipation and thermal cooling by increasing the airflow
move the receiving instrument away
from the transmitting instrument. management in the rack. The fan moves warm
air from the bottom of the rack up
The intensity of the magnetic field
All test instruments produce heat and out through the vented top cap,
decreases as the distance from
during operation. If you have providing cooling to the entire length
the source of the field increases;
multiple instruments producing heat of the rack. It is a good idea to use a
the amount by which it decreases
in an enclosed rack, the temperature fan when internal rack temperatures
depends upon the configuration of
can easily exceed environmental are 15°C (27°F) above ambient
the source of the field and the prox-
conditions specified for your test temperature.
imity to the source, but clearly, the
instruments. When this happens,
greater the separation between the
source and the receiving instrument,
the lesser the effect. Figure 6.6. Extractor fan installed in rack

In some cases, magnetic fields also


can affect performance and accuracy
of instruments that don’t have CRTs.
For example, a voltmeter’s circuitry
could be susceptible to a large
magnetic field produced by a trans-
former. If you are having measure-
ment problems with an instrument,
keep in mind that magnetic interfer-
ence could be one of the causes.
Try moving the affected instrument
away from likely sources of magnetic
fields. Power supplies, fans and high-
power-consuming instruments have a
higher potential for producing large
magnetic fields.

If moving the instruments is not an


option, try adding magnetic shielding
between the different rack layers
or between the instruments. High-
permeability metal (Mu metal) is sold
for this purpose.

www.agilent.com/find/open
69
If you cannot create enough airflow Many test instruments draw a fixed Wiring your system
to remove the heat with a fan, you amount of current. However, a Power wires radiate electronic noise
may need to consider air condi- power supply draws variable current and both stimulus and measurement
tioning your rack. There are standard depending on how much power it is signal-carrying wires are suscep-
NEMA enclosures that can be used providing to the device it is powering. tible to this noise, so to minimize
for this purpose. When you calculate heat dissipation interference, separate power wires
requirements, plan around a power from signal-carrying cables. Proper
When you install equipment in your supply’s maximum draw. shielding and grounding techniques
rack, do not block instrument fans or can help alleviate noise problems
side air holes and be sure to follow (see “Grounding and shielding”
instrument manufacturers’ recommen- Routing power and signals on page 72). Selecting the proper
dations regarding air flow and clear- type of cable is also important. A
Once you have resolved the weight
ance around instruments. In general, double-shielded or triaxial cable with
and balance issues, calculated your
place your deepest instruments at insulation between the two shields
airflow and power needs and planned
the bottom of your rack. If you place provides the maximum protection
for operator accessibility, you are
a full-depth, full-width instrument against noise coupling.
ready to turn your attention to how
in the middle of the rack, you block
you will get power and signals to
airflow to the instruments below it. In some cases, you may need to
your instruments and your DUT. Your
separate signal measurement cables
Typical top-mounted extractor fans goal is to route power and measure-
(which can be sensitive to noise)
will move about 200 CFM (cubic feet ment and stimulus signals to the
from signal stimulus cables (which
per minute) of air, which is sufficient right place as efficiently as possible
can generate noise). For example,
for dissipating up to 2500 W of power while keeping noise to a minimum.
if your stimulus signal is a high-
inside a rack. If your system uses frequency square wave with rapidly
more than 2500 W, you could install Multiplexing and matrix switching
changing transitions (fast edges)
additional top-mounted fans or use a Switches, or relays that route power
produced by a function generator,
600 CFM fan in the rear rack door to and interconnect system instrumen-
it will radiate more noise than a
increase air flow. tation and loads to your DUT, are an
square wave with slow edges or a
integral part of most automated and
high-frequency sine wave, and it
If your system includes high-power semi-automated test systems and
would be more likely to interfere
instruments like AC sources or elec- some manually operated systems.
with the accuracy of a low-level
tronic loads with their own fans, use Multiplexers and matrix switches
measurement signal. If possible, keep
ductwork to vent them directly out make it possible to minimize the
wires carrying high-frequency square
the back of the rack. You can make number of test instruments in your
waves and other noise-generating
the ductwork out of sheet metal. system instead of using separate
signals away from your measurement
instruments for each test point.
The amount of power an instrument paths to minimize interference.
Switches deliver power and stimulus
dissipates typically is specified by signals to the DUT when they are For a detailed discussion of ways
the instrument manufacturer. If that needed and route the measurement to reduce noise in switch systems,
specification is not available, you can signals back to your test instruments. see the Application Note 1441-2,
estimate power dissipation require-
Reducing Noise in Switching for Test
ments from the maximum current Choosing the proper switch type and
Systems.
specification using the equation topology will impact the cost, speed,
safety and overall functionality of Wiring dress and termination—Good-
Worst case power (VA) = your test system. For a thorough quality cabling is expensive, but you
Voltage x Amperage examination of switching in test will get the best results if you buy
systems, see Application Note 1441-1, the best cabling your budget will
This calculation provides a conserva- Test System Signal Switching.
tive estimate of power dissipation allow. Make sure the cable you select
requirements because power in is designed for the task you have in
watts, the true source of heat, is mind and be careful not to exceed
always less than or equal to power in the manufacturer’s ampacity rating
VA. It is a good idea to use conserva- of the wires you choose.
tive figures to safeguard against
worst-case situations.

70 6. Understanding the Effects of Racking and System Interconnections


It is a good idea to adopt a system- For RF applications, typically you Minimizing noise
atic approach to arranging and will use coaxial cable (to match the
managing your system’s cables. For characteristic impedance of the We have already discussed some
a large system, you may want to application and to minimize radiated design considerations for reducing
consider using cable harnesses or noise) and terminate the cables with noise, but an understanding of where
looms. For a smaller system, cable coaxial connectors (to maintain the noise might originate is also helpful.
ties may be adequate for bundling integrity of the connection between In systems designed for testing
cables. Be sure not to wrap power the inside of the rack and the outside electronic modules, the most signifi-
cables in the same bundle as signal of the rack). Of course, the coaxial cant causes of noise are conductive
cables. For all systems, decide on a signal path should also be terminated coupling, common-impedance
consistent method for labeling cables, with the proper characteristic imped- coupling, and electric and magnetic
as it will simplify troubleshooting, ance to minimize signal reflections. fields. In addition, some systems
maintenance and future replace- are sensitive to noise from galvanic
ments. On the label, include either a Strain relief—When you wire your action, thermocouple noise, electro-
reference to a look-up table or a full system, be sure to protect your lytic action, triboelectric effect, and
description of the cable’s signal type, investment and minimize system conductor motion.
connectors and purpose. It is also a downtime by minimizing sources
good idea to document the type and of cable stress and damage, such Conducted and radiated noise
supplier for each cable you use and as vibration, extreme bending and One of the easiest paths for noise to
retain copies of datasheets for all cutting and fraying caused by sharp couple into a circuit is a conductor
cables and connectors. edges. If your cable needs to pass leading into it, resulting in conduc-
through the rack cabinet wall, use a tively coupled noise. A wire running
Keep your cabling as short as gasket in the hole and support the through a noisy environment has
possible to minimize voltage drop wire adequately along its path. an excellent chance of picking up
and interference, leaving just enough unwanted noise via radiation and
slack to allow you to keep it out of If you bend a wire back and forth then conducting it directly into
the way. If your instruments are repeatedly, it will eventually break. another circuit. The power-supply
mounted on sliding shelves or rack For wires in your system that need leads connected to a circuit are
slides, make sure you allow enough to be able to move, it is important often the cause of conductively
slack to allow the equipment to slide to minimize the strain on the wires. coupled noise. Common-impedance
all the way out. For example, fixturing wires tend coupling occurs when currents
to move often as you connect and from two different circuits flow
Wire termination devices may be disconnect your DUT. If your system through a common impedance. The
already mounted on the wires you is designed for high-throughput ground voltage of each is affected
purchase, or you may build your own manufacturing test, you will need to by the other. As far as each circuit
wire terminations. If you build your replace the fixturing wires regularly is concerned, its ground potential
own, use gold-plated pins and match and pay careful attention to strain is modulated by the ground current
the current rating of the pins to your relief. Building strain relief into flowing from the other circuit in the
application. Gold-plated pins cost your system cabling helps protect common ground impedance, leading
more, but they last longer because both the cables and the connectors to noise coupling.
they do not oxidize. Ensure that the on the test equipment. Make sure
pin and the wire both can withstand that you support cables at regular
the maximum current you plan to use intervals inside the rack cabinet, so
on that signal path or power path. the connectors do not bear the full
weight of the cable.

www.agilent.com/find/open
71
Radiated magnetic and electric fields Grounding and shielding For a detailed discussion of
occur whenever an electric charge Grounding and shielding are the grounding and shielding issues, see
is moved or a potential difference two primary methods for reducing Application Note 1441-2, Reducing
exists, and can also be a cause of unwanted noise in a test system. Noise in Switching for Test Systems
noise coupling. In a circuit, high- They often work together, such as and the white paper Considerations
frequency interference may be unin- when the shielding of a cable is for Instrument Grounding.
tentionally rectified and appear as a connected to ground. In such cases
DC error. Switch-system circuitry is it is important to understand where In high-frequency systems, radio
also susceptible to electromagnetic to ground the cable shield in order to frequency interference (RFI ) also
radiation from radio, TV, and other maximize the shield’s effectiveness. can cause problems. To minimize
wireless broadcasts, and it is impor- In some cases, the solution to one RFI, make sure your cable diameter
tant to shield sensitive circuitry from noise problem may reduce the effec- is suitable for the signal wavelengths
these fields. If you want to make tiveness of the solution to a different you are transmitting, terminate all
accurate measurements of low-level noise problem, making it imperative cables in their characteristic imped-
signals in a test-system environment, that you thoroughly understand the ances, keep cable lengths as short as
you need to pay careful attention noise source, method of coupling, possible and use only high-quality
to the details of grounding and and noise receiver so you can make cables and connectors. For more
shielding. the appropriate tradeoffs. information, see the white paper
Proper Cable Shielding Avoids RF
It is always a good idea to have a line When you design a grounding system, Interference Problems in Precision
filter and surge protector in the main your goal is to minimize the noise Data Acquisition Systems.
power distribution unit (PDU) of the voltage generated by currents from
rack. Also, each instrument usually two or more circuits flowing through
has its own line filter, to reduce a common ground impedance, and
Safety and interlocks
conducted interference from the to avoid creating ground loops that It is important to protect the safety
instrument and reduce conducted are susceptible to magnetic fields and of test-system operators, as well
susceptibility to the instrument. But differences in ground potential. as safeguarding your DUT and the
remember, there is still some residual equipment in the rack itself. You
noise that each instrument can inject To accomplish these goals, instru-
need to plan for system safety as part
into the power grid. Sometimes it ment, power and safety grounds
of your overall system design, and
becomes necessary to put an addi- should all be connected as close as
you need to comply with company,
tional power filter on an individual possible to the DUT’s power ground
local, national and international
instrument to reduce its conducted via a “star” mechanism as shown in
safety standards and regulations that
noise. Figure 6.7. This eliminates ground
may apply.
loops and contributes to quiet
readings. Install a system cutoff mechanism
that is activated by any action that
Figure 6.7. A star ground minimizes noise and eliminates ground loops. exposes the operator to potential
harm. Make sure you document
Star ground safety procedures and thoroughly
train operators to use them.
Test system DUT
Mechanical safety
Fans are a potential source of danger
Instrument commons Analog ground
in a test system. Make sure that any
fans you use are covered with fan
PS- Digital ground
guards that make them inaccessible
PS-Rem sense RF ground to human fingers. Positioning fans on
top of rack cabinets, instead of in the
Earth ground Power ground cabinet wall, reduces the chance that
someone’s long hair could get sucked
Other commons in unintentionally.

72 6. Understanding the Effects of Racking and System Interconnections


If the rack is only waist high, be AC power distribution If you use 3-phase equipment in your
careful to consider what might system, make sure the instruments
happen if a liquid is spilled on top In a big system with 10 to 14 instru- in your rack share power evenly
of the rack. To safeguard against a ments, you typically plug each of across all three phases. For line-to-
rack tipping over, use the guidelines the instruments into terminal strips neutral loads, you can accomplish
discussed in the “Proper weight inside the rack itself. The terminal that by designing the rack with three
distribution” section of this paper strips may get their power from a terminal strips, such that each strip
(see page 67). large power distribution unit (PDU), runs off one of the three phases.
which is usually located in the Connect your test instruments so
Electrical safety bottom of the rack. The PDU typically they draw current fairly equally from
Install a system cutoff switch (often has a single line that exits the rack the three strips. To make this task
called an emergency off switch, or and connects to a power source on easier, create a list of the instru-
EMO) where operators can reach it the wall, floor or ceiling. When you ments in the rack and the current
easily. The switch should cut power plan your system, check the AC input they draw, keeping in mind which
to the entire system, not just the current rating of individual instru- instruments consume fixed power
DUT. If the cutoff switch is used, ments and make sure the total does and which draw variable current.
make sure operating conditions are not exceed the maximum current For variable-draw instruments,
safe before you restart the system. you can draw from the terminal use the maximum current for your
Label all high-voltage, high-current strips or from your AC mains supply. calculation.
and high-power devices in red, and Using maximum current figures
make it clear they are hazardous. for each instrument will help you To calculate power draw for line-to-
Devices carrying more than 42 volts plan for a worst-case situation and line loading in a perfectly balanced
AC or 60 volts DC are hazardous. avoid tripping circuit breakers. The system, take the sum of the loads and
After a power outage, latching relays disadvantage of planning around divide by the square root of three to
may or may not return to a safe state. maximum current draws is that you determine the current that is actually
Consider what they will be control- have the potential for overdesigning being drawn by the phase feeding the
ling and what equipment they will be your system and wasting capacity. system.
connecting.
If a single-phase power line cannot If you have no 3-phase equipment in
One key to electrical safety is handle your needs, you will need to your system, you do not necessarily
making high voltages inaccessible to move to a 3-phase AC input scheme. need to balance power evenly across
operators. If your DUT requires high If you do not know what power all three phases. You can just size
voltages or high-bias current, use an types are available at your site, get your cabling for the largest phase
interlock mechanism to cut power to that information from your facility load. You also will want to know the
the DUT when the operator is able to engineers. actual current draw on each phase
contact it. For example, you can use (even if they are not balanced) so
a special fixture with a see-through you can balance correctly in your
cover fitted with an interlock mecha- facility. You could find this number
nism that cuts power to the device by measuring the current on each AC
when the cover is opened. Look for a line with a true RMS meter.
power supply with a “remote inhibit”
feature that lets you remotely inhibit It’s a good idea to assess the quality
the output by simply making the of the mains power before installing
connection between two points. any system. Use a power line monitor
to check for voltage spikes (surge
conditions) caused by motors, RF
spikes, dropouts and brownout
conditions (sag conditions). This
simple test can save you headaches
from non-repeatable results and also
save damage to the test equipment
itself.

www.agilent.com/find/open
73
Conclusion
It’s one thing to connect a PC to one
instrument, but when a rack might
contain $100,000 or more worth of
equipment, it pays to do some plan-
ning. Arranging your test equipment
in a rack to maximize measurement
accuracy, equipment longevity and
operator ease of use and safety also
takes careful planning. Whether you
are using your test system for R&D,
design verification or manufacturing
test, you need to consider a variety of
issues, including weight distribution,
heat dissipation, instrument acces-
sibility and operator ease of use, and
you need to pay close attention to
minimizing magnetic interference
and conducted and radiated noise.

74 6. Understanding the Effects of Racking and System Interconnections


7. Maximizing System Throughput and Optimizing
System Deployment

Introduction validate your designs, the faster you and program it for optimum speed.
can get your new products to market. After you’ve built your system, you
This chapter discusses hardware In R&D, throughput is seldom an can tweak instrument setups and
and software design decisions that issue because you are not likely to operating procedures to further
affect throughput, including instru- repeat tests on large numbers of optimize its speed.
ment and switch selection, as well as devices or to perform the same test
test-plan optimization and I/O and repeatedly on a single device. In general, your system first needs to
data transfer issues. It also discusses set up a test or configure the proper
ways to optimize your system as you Taking the time to optimize system stimulus and send it to your device
prepare to deploy it. throughput may require some under test (DUT). Then your system
additional investment up front, but needs to actually make the measure-
Throughput is a measure of the time the payoff in lower costs and faster ment on the DUT and transfer the
it takes to test a device or product. time to market makes the investment measurement data back to the
Maximizing throughput is most worthwhile. computer. Figure 7.1 shows typical
critical in high-volume manufac- steps a computer-controlled system
turing, where you have thousands of As Chapter 5, Choosing Your Test- would take to make a measure-
products to test and you want to test System Hardware Architecture ment. (The steps do not necessarily
them as fast as possible. In high- and Instrumentation, pointed out, have to be executed in the order
volume manufacturing, you measure a test system is essentially a group presented.) Each of these steps takes
throughput in terms of devices per of subsystems that work together. some amount of time to execute.
unit time. The faster you test your The hardware you choose for these To optimize throughput, you need
devices, the lower your manufac- subsystems and the software you to analyze how long the steps take
turing costs. In design validation write to make these subsystems in your system and decide which
testing, the speed of each individual communicate and interact have steps you can speed up. Depending
test is not as critical, but test setup a huge effect on your system on your application and budget, you
time is important because you need throughput. If throughput is critical may decide to work only on the steps
to be able to adapt to pinouts that in your test application, you need that have the biggest impact on your
change often. In design validation, to choose equipment with the throughput, or you may decide to
you measure throughput in terms of performance and features required invest the time and money to elimi-
tests per unit time. The faster you can for fast testing and then configure it nate every unnecessary millisecond
in the entire process.
Figure 7.1. Steps involved in making measurements with a typical computer-controlled system

Power DUT Measurement


supply Switch Switch instrument
Stimulus Meas
matrix point 1 point 1 matrix
Stimulus Meas
Stimulus point 2 point 2 Measurement
device Stimulus Meas instrument
point 3 point 3

3 8
4 1 6 12 10
BUS
Control commands Computer
Measurement data 2, 5, 7, 9, 11

Steps
1. Tell system where to connect the stimulus 7. Wait for switch to settle
2. Wait for switch to settle 8. Tell measurement instrument what parameter to measure and the
3. Tell stimulus instrument what signal to send to DUT range in which that parameter falls
(parameter, range) 9. Wait for instrument to process command and complete configuration
4. Tell stimulus instrument to send signal 10. Tell instrument to make the measurement
5. Wait for stimulus to settle 11. Wait for instrument to process command and make the measurement
6. Tell switch to send DUT signal to measurement instrument 12. Transfer measurement information to computer

75
In a typical test system, the steps • Perform regular maintenance on Upfront design decisions
with the biggest negative impact your system and its components.
on throughput include instrument Clean fan filters regularly to avoid affect throughput
resets, delays (wait statements) heat build up (high temperatures
If you are designing a new system,
programmed into the system soft- contribute to failures). For
rather than optimizing an existing
ware and waveform downloads. more information on this topic,
system, you will have a greater
Power supply settling time, voltmeter see Chapter 8, Operational
opportunity to maximize your system
measurements and switching also Maintenance.
speed. The system hardware and
play a role. Figure 7.2 shows the
This chapter focuses on improving software architectures, instruments,
hierarchy of delays in a typical test
throughput for systems designed switches, and I/O interfaces you
plan.
with rack-and-stack test instruments. select will have a huge impact on
Obviously, if your system stops However, most of the concepts apply system throughput. For a detailed
functioning, your throughput drops to systems built with card-based discussion of system hardware
to zero. In all phases of product test instruments (such as VXI and PXI) and software architectures, see
(R&D, design validation and manu- as well. Card-based systems do have Chapter 4, Choosing Your Test-
facturing test), therefore, minimizing features that lend themselves to System Software Architecture, and
system downtime is critical to optimizing throughput. For example, Chapter 5, Choosing Your Test-
maximizing throughput. To minimize VXI and PXI backplanes have a System Hardware Architecture and
system downtime: built-in triggering bus that makes it Instrumentation.
easy to implement triggering schemes
• Select instruments from vendors
you trust and choose instruments
that can minimize system delays. Making hardware choices
The new LXI standard (see Chapter
with high mean time between 16) also specifies a trigger bus, thus Figuring out how fast your system
failures (MTBF) specifications. bridging some of the differences will perform measurements is harder
between card-based and rack-and- than it appears. For example, you
• Establish a good spares program:
stack instruments. Card-based and may decide to use a digitizer instead
keep backup components for your
rack-and-stack systems are similar of an oscilloscope to take advantage
system so that if an instrument
in most other regards, and you can of the digitizer’s higher resolution.
fails, you can quickly swap in a
use many of the same techniques for The digitizer may be able to sample
replacement and restore system
optimizing measurement speeds in 1000 readings very fast, but if those
functionality.
both types of systems. readings are transferred to the PC
over GPIB, the total process could
take a relatively long time. If you
Figure 7.2. Hierarchy of delays in a typical test plan
can download a decision-making
Time spent during example test algorithm into the digitizer, you can
send a simple go/no-go result back
to the PC, which would make GPIB a
(% of total time shown in parenthesis)

6
5 (36)
5 reasonable option. However, it takes
4
extra effort to create and download
3.5 (25)
a decision algorithm into an instru-
Seconds

3 2.7 (20)
ment, which may increase develop-
2 ment time as well as “first-run” time
1.4 (10)
1 0.7 (5) 0.5 (4) of the test program. You also need to
0 consider the relative analysis time of
Instrument Wait Arbitrary waveform Power supply DMM Switching
resets statements downloads settling readings a routine computed inside the digi-
Source of time spent tizer compared to the time required
to complete it inside the PC.

76 7. Maximizing System Throughput and Optimizing System Deployment


As you can see, many interdependent measurement sample time, but you arbitrary waveform generator,
factors can affect throughput. If will sacrifice measurement speed. downloads arbitrary waveform files
you are looking for test-time reduc- If you cannot compromise accuracy 100 times faster than the 33120A,
tions amounting to fractions of and repeatability, it does not mean and many of its configuration times
milliseconds, you must weigh each of you will not be able to improve your are faster (and it also costs less than
these factors carefully. Even if your throughput. Measurement time is just the 33120A). If you have an existing
throughput requirements are not one factor to consider in the overall system that includes 33120A func-
that exacting, the hardware choices test plan, as illustrated in Figure 7.1. tion generators, it is fairly easy to
you make can significantly affect upgrade to the 33220A because the
throughput. In design validation, you typically two instruments are programmed
perform a large number of different similarly, and Agilent provides
One important factor to consider tests, so the time you spend setting documentation to help you make the
when you are selecting your instru- up the test system is important. switch.
mentation is command processing To minimize development time,
time, or the amount of time it takes use rack-and-stack system-ready When you are reading data sheets,
an instrument to “digest” and instruments that incorporate a high pay particular attention to how
interpret a command. Command percentage of the measurement solu- measurement speeds are specified.
processing time is usually character- tion you need. For example, if you Often, measurement speed specifica-
ized on an instrument’s data sheet. If use a source with modulation capa- tions are related to the speed per
you cannot find the information, ask bility, you don’t have to develop your reading when thousands of samples
the instrument vendor. Command own algorithm or integrate additional are taken, which is a data-acquisi-
processing times can range from hardware to generate the required tion use model. In functional test,
less than a millisecond to dozens of modulation. Using instruments it is far more common to close
milliseconds. If you send a command with IVI-COM drivers can save you some relays, take a measurement,
just once to an instrument, it may not development time. If the instrument open those relays and move on to
have a huge impact on your overall has an IVI-COM driver, you can inter- another measurement. In this mode,
test time. But if you are sending the change hardware without rewriting the measurement instrument’s
command repeatedly during testing, your software, as long as you adhere single-point reading speed is most
the time it takes can have a signifi- to the functionality that is specific to important, and it is dramatically
cant impact on your throughput. the instrument class. See Chapter 3, slower than the fastest possible
Note that newer model “smart” Understanding Drivers and Direct multi-sample reading speeds. In most
instruments tend to have much I/O, to learn how decisions about cases, you will be able to look up the
lower command processing times drivers affect development time. single-point reading speed on the
than older models. Also note that instrument’s data sheet.
many cardcage-based instruments Stimulus and measurement
use the PC for most processing tasks. instruments Look for instruments that have
The time to complete these tasks is To maximize throughput, consider built-in features that will reduce
highly dependent on the tasks being creating a Pareto diagram of the time needed for communication
simultaneously performed on the PC. projected delays (see Figure 7.2) in overhead and post-processing. For
the system and invest your time and example, some test instruments can
As you explore the opportunities for money accordingly. If tests A and B calculate arithmetic mean, minimum,
improving your system throughput, are of similar duration but test A is maximum, and standard deviation.
keep in mind that when you reduce performed much more frequently (These capabilities are often called
measurement time, you may sacri- than test B, then focus your program- “one-button” measurements.) When
fice accuracy and repeatability. If ming efforts, tricks and budget on you are analyzing multiple data
you integrate measurements over test A. points, these statistical results are
a longer period of time you will much more meaningful than the raw
filter out random noise, and your When you are choosing instruments, data. Using the system controller
measurements will be more accu- pay close attention to instrument to acquire raw measurements can
rate. Typically, you can improve specifications. For example, the be very time consuming compared
measurement repeatability by Agilent 33120A function/ arbitrary to transferring a few measurement
averaging measurements, increasing waveform generator is popular results.
the number of samples taken per for systems applications. But its
measurement or increasing the successor, the 33220A function/

www.agilent.com/find/open
77
Power supplies delays. For details on using this tech- A good example is testing a DC-to-
Your choice of power supply nique and other techniques, see 10 DC converter with four outputs,
can dramatically impact system Hints for Using Your Power Supply where you need to measure the input
throughput, because waiting for to Decrease Test Time, publication voltage to the converter and each of
power supplies to settle is typically number 5968-6359E. the four outputs in order to fully test
a time-consuming element in a test the device. If you have a single DMM
plan (see Figure 7.2). Check the Another way to reduce test time is to to measure the voltages, you’ll need
settling time specifications of the choose power supplies and electronic a multiplexer to sequence through
power supplies you are considering loads that have built-in measurement the measurements (see Figure
for your system. If you can’t find a features. With power supplies, these 7.3). In addition to the complexity
specific reference to “settling time” capabilities let you measure the of this setup, your test program
on the data sheet, look instead for supply’s output voltage and current. needs to wait for the multiplexer’s
the “programming speed,” “program- With loads, you can measure load switches to move and settle for each
ming response time,” or “rise and input voltage and current. measurement.
fall time” specification. Programming
speed is defined as the amount of
Figure 7.3. Testing a four-output DC-to-DC converter with a single DMM requires a complex multi-
time it takes for the instrument to
plexing scheme and can involve significant delays.
reach a specified percentage of the
voltage setting (typically within 0.1 DC to DC
percent), not including command converter
processing time. Rise and fall times + + Load 1
– –
are typically defined as the time it DC source
+

DC outputs
takes to get from 10 percent of the +
DC inputs

– – Load 2
+ +
final value to 90 percent of the final
– – + + Load 3
value for the rise time, or vice versa – –
for the fall time. Because of the + +
– – Load 4
different terminology and definitions,
you must be careful when comparing
settling times in power supplies from MUX
different vendors. +

When you are trying to boost +
– + + DMM
throughput in time-critical produc- + – –

tion test systems, look for a multiple- +

output supply that can set multiple
+
outputs with a single command, like –
the Agilent N6700 series. Otherwise,
consider using multiple single-
Figure 7.4. By using the built-in measurements in your DC power source and electronic loads, you
output power supplies instead of
can eliminate the DMM and MUX and significantly increase your test speed.you can eliminate the
one multiple-output supply. With DMM and MUX and significantly increase your test speed.
multiple-output power supplies, the
instrument takes extra time to parse DC to DC
commands, because you are sending converter
an additional parameter to indicate +s
+ + Load 1
which of the multiple outputs DC source – –
–s
it should use. Also, with most
multiple-output supplies, commands +s
sent to the various outputs are + + Load 2
DC outputs

+s
DC inputs

– –
processed sequentially, one output + + –s
– –
at a time (this can be avoided with –s
+s
the Agilent N6700 series). With + + Load 3
– –
multiple supplies, one supply can be –s
processing a command while the next
is receiving a command, so you avoid +s
+ + Load 4
– –
–s

78 7. Maximizing System Throughput and Optimizing System Deployment


Using DC source and loads with (or any load capacitance) can take Switches
built-in measurement functions seconds or even minutes to discharge Switches, or relays that interconnect
(Figure 7.4) can save significant when you reduce the output voltage system instrumentation and loads
amounts of time. They’re already level (the lighter the load, the longer to your DUT, are an integral part of
connected to the DUT, and there it takes). most test systems because they allow
are no switching delays, so both you to use a minimum number of
the setup and test phases are much Downprogramming uses an active stimulus and measurement instru-
faster. Note the use of remote sensing circuit to force the output down to ments to test multiple points on
here. Although it isn’t required, using the new level within a matter of milli- your DUT. If your test plan involves
remote sense is generally a good idea seconds in most cases. This circuit lots of switching, switch speed will
because it provides regulation and kicks in automatically whenever the have a big impact on your system’s
measurement at the DUT rather than voltage level you set (either manually throughput, so the type of switches
at the loads or the DC source. or programmatically) is below the and the switch topology you choose
present output level. The down- are important. For a thorough exami-
With no need for switching, you’ll programming rate is fixed in most nation of switching in test systems,
benefit from faster tests, greater supplies, but some offer program- see Application Note 1441-1, Test
reliability and simpler configurations. mable downprogramming. System Signal Switching.
This same approach works well for
measuring current, and it eliminates In time-critical tests, it’s a good idea From a system throughput stand-
the current shunts you’d otherwise to watch out for downprogramming point, the most important switch
need. delays. Because programming up is parameter is settling time, or the
typically faster than programming time it takes to change states from
Using power supplies that incorpo- down, try to sequence multiple tests open to closed and vice versa. Figure
rate a feature known as downpro- in such a way that each consecutive 7.5 shows the different actions and
gramming can significantly reduce test is at the same or higher voltage the relative times required for a
test time, particularly when you need level as the previous test. See page 81 relay to be closed, a measurement
to set multiple voltage level settings. for more information on test to be performed and for the switch
Without downprogramming, the sequencing. to reopen and be ready for the next
capacitor in the supply’s output filter measurement.

Figure 7.5. This diagram shows what happens when you tell a switch to close, take a measurement,
and then reopen. The “switch drive signal” represents the actual voltage that causes the switch to change
states. The resulting “measured signal” is connected from the DUT to the measurement instrument.

Switch timing
Source settling
and input settling
Switch bounce Measurement trigger
safety margin Perform measurement Coil falltime delay
Coil risetime delay Measurement complete
Data to buffer

Parse Switch drive signal Settling safety margin

"Close" Measured signal Ready to


low-level switch again
command

Time
Mechanical Switch Open Mechanical
delay bounce command delay

www.agilent.com/find/open
79
Electromechanical switches such bigger impact on speed than the close. In some cases it is worth the
as reed and armature relays are switch topology you choose, unless extra money for the test time you
common in low-speed applications. you factor in the time required for save.
They are capable of switching high reconfiguring a switching system
voltage and current levels, but they (which, as we noted earlier, is more Controller issues
are limited to switching rates of critical in design validation applica- Unless your PC is ancient, its
dozens of channels per second for tions.) If you use a switch matrix, processor speed is not likely to
armature relays up to hundreds of you will be able to quickly and easily be a significant factor in your test
channels per second for reed relays. expand and reconfigure your system throughput. Typically, issues associ-
Reed relays are excellent choices to as your test needs change. Expanding ated with stimulus and measure-
connect measurement instruments and reconfiguring systems that use ment instruments, power supplies,
and low-current stimulus to your multiplexers typically is more time switches and test software play a
DUT. They are relatively fast (see consuming. much bigger role in determining
Table 7.1), although they can have a system speed. Your PC is not in
higher thermal offset voltage than A matrix arrangement of reed relays control of data collection speed, and
armature relays. Armature relays provides an excellent way to allow faster PCs don’t necessarily collect
are slower, but you can use them for any instrument to be connected to data any faster. The PC’s interface to
higher current loads. When you use any pin on your DUT, and it permits your test system (GPIB, LAN, USB,
armature relays, group your tests so easy expansion as you add new FireWire, VXI or PXI) will certainly
the relays stay connected to perform instruments to your system or more impact data transfer time, but that
as many readings as possible at one pins appear on your DUT. Matrices is not dependent on PC processor
time. use more relays than multiplexers, so speed. If you are using a LAN or USB
they tend to cost more. If you don’t interface, we recommend using the
Electronic switches, such as field- need to connect multiple instruments highest speed interface and switches/
effect transistor (FET) and solid- to any pin, a multiplexer is a suit- hubs available.
state relays, are frequently used in able solution. If you have a 1 x 20
high-speed applications. (Typically multiplexer for example, you can take Processor speed is a factor only
for voltage or temperature measure- a test instrument and connect it to 20 if you are relying on your PC for
ments). However, some FET elec- pins, but you can’t hook anything else analyzing data and if you are using it
tronic switches cannot handle high to those 20 pins. With those same 20 for your software development. You
voltage or current, and they must be relays in a matrix, you can connect want to use the fastest PC available
carefully protected from input spikes four instruments to five pins in any when you are compiling programs,
and transients. Check the electronic combination. but of course you do not have to
switch ratings carefully. do your development work on the
If you want the ultimate in same computer you use to run your
Switching topologies can be divided throughput and your budget is not system.
into three categories based on their limited, you can use multiple test
complexity: simple relay configura- instruments instead of a switching
tions, multiplexers and matrices. scheme for making measurements on Designing your test plan for
The best one to use depends on the multiple test points. With multiple speed
number of instruments and test instruments, you can set each to
points, whether connections must be the needed range and eliminate the Many test programs spend most
simultaneous or not, cost consider- time spent on configuring the test of the time waiting. Even if you
ations and other factors. Typically, instrument range, as well as the time have selected the fastest-available
the type of relay you choose has a required for switches to open and hardware for your system, software
issues can slow your test-system
Table 7.1. Relay comparison chart throughput significantly. While you
can tweak your test-system program-
Armature relay Reed relay Solid-state relay ming after your system is complete
Switch speed 50/s 1000/s 1000/s (see “Fine-tuning your system for
Contact resistance Low Very low High speed” on page 84), you will achieve
Life 1 million 10 million >10 million better throughput if you design your
Typical failure mode Fails open Fails open Fails shorted test plan up front to optimize test
Typical max input 250 V/2 A 100 V/100 mA 250 V/10 A
sequencing and minimize delays.

80 7. Maximizing System Throughput and Optimizing System Deployment


Optimizing test sequencing diagnosing functional failures in feasible, these techniques can yield
In most test systems, single- manufacturing and by finding redun- big improvements when you can use
instrument measurement times dancies in your tests. This toolset them.
have a smaller impact on overall test also helps you maximize quality by
time than the test flow (execution identifying gaps in your test process. The program sequence shown in
sequence) you choose when you are Table 7.2 measures voltage or current
designing your test plan. Next, when you are ordering your on three different DUT test points
tests, minimize the number of times under three different sets of input
In a production environment, first the stimulus, DUT and measuring conditions. In this case, the ambient
arrange your test plan so the system instrument change states—particu- temperature setting is used as an
can find DUTs that are destined to larly those that take a long time—by example of a stimulus to the DUT.
fail as soon as possible. If a partic- organizing the program’s execution The temperature changes for each test
ular DUT frequently fails a certain sequence. Start by looking for tests point, and the measurement setup
test, move that test to the front of that leave the DUT in the desired must also change to make the required
your test program. Ideally, of course, state for the next test. If the DUT voltage and current measurements.
you should feed reports of persistent needs to be turned off for the start of Each change adds time to the test
DUT failures back into R&D or a test, for instance, try to sequence a program, reducing system throughput.
production engineering so they can preceding test that leaves it off. If a For example, if you are using a DMM
be resolved permanently. Agilent particular test requires that the DUT and you change the measurement
offers a toolset, Fault Detective is warmed up, place it later in the function, the DMM reconfigures the
Diagnostic Solutions, to help with sequence and use a system timer to hardware and retrieves different
this process. Fault Detective helps guarantee the DUT has been on long calibration constants before making a
you optimize throughput by quickly enough. Although they are not always measurement.

Table 7.2. Typical test sequence

Measurement setup
Program step Input conditions(stimulus to DUT) (to measure signal out of DUT) DUT measurements taken
1 Set input condition 1 (e.g., amb. temp. = 0 degrees C)
2 Prepare measurement setup 1 (e.g., voltage)
3 Test point 1 voltage
4 Set input condition 2 (e.g., amb. temp. = 25 degrees C)
5 Test point 1 voltage
6 Set input condition 3 (e.g., amb. temp. = 55 degrees C)
7 Prepare measurement setup 2 (e.g., current)
8 Test point 1 current
9 Set input condition 1 (0 degrees C)
10 Prepare measurement setup 1 (voltage)
11 Test point 2 voltage
12 Set input condition 2 (25 degrees C)
13 Test point 2 voltage
14 Set input condition 3 (55 degrees C)
15 Prepare measurement setup 2 (current)
16 Test point 2 current
17 Set input condition 1 (0 degrees C)
18 Prepare measurement setup 1 (voltage)
19 Test point 3 voltage
20 Set input condition 2 (25 degrees C)
21 Test point 3 voltage
22 Set input condition 3 (55 degrees C)
23 Prepare measurement setup 2 (current)
24 Test point 3 current

www.agilent.com/find/open
81
If you organize the program to Figure 7.6. To minimize overall test time, structure test loops so that the most time-consuming
minimize changes to the stimulus operations are performed the fewest number of times.
conditions and measurement setups,
overall test time is reduced. Note
Test flow diagram — nested programming loops
that the sequence shown in Table 7.3
provides exactly the same number
and type of DUT measurements Loop 1
under exactly the same set of input Contains stimulus conditions that take a long time
conditions as the previous sequence, to change or set up, for example:
but the overall number of program-
ming steps has been reduced from 24 Step through a variety of DUT temperatures
to 14. Also, the number of stimulus
changes has been reduced from 8 to Loop 2
2, while the measurement setup has
Contains test variables that take less time
gone from changing back and forth 5
to change or set up than those in loop 1, for example:
times to changing just once.
Step through a sequence of high and low DUT bias
Organizing nested loops voltage combinations
Structure the basic test flow so that
slow operations like setup, DUT Loop 3
connections and temperature settings
Contains test variables that take the least time
are in the outermost loop. Nest faster
to change or set up, for example:
operations like one-button measure-
ments in lower-level loops. Place your Make a DUT voltage measurement
fastest operations in the lowest-level
loop. You can use a test flow diagram,
as shown in Figure 7.6, to get a better
conceptual understanding of the
test plan and prevent wasted time
in nested loops and poor use of DUT
connects and re-connects.

Table 7.3. Test sequence optimized for speed

Measurement setup
Program step Input conditions (stimulus to DUT) (to measure signal out of DUT) DUT measurements taken
1 Set input condition 1 (0 degrees C)
2 Prepare measurement setup 1 (voltage)
3 Test point 1 voltage
4 Test point 2 voltage
5 Test point 3 voltage
6 Set input condition 2 (25 degrees C)
7 Test point 1 voltage
8 Test point 2 voltage
9 Test point 3 voltage
10 Set input condition 3 (55 degrees C)
11 Prepare measurement setup 2 (current)
12 Test point 1 current
13 Test point 2 current
14 Test point 3 current

82 7. Maximizing System Throughput and Optimizing System Deployment


Using triggering • Initiate measurement and wait for • Apply load to the DUT
In typical test routines, it is common measurement to complete
• Connect relays to engage measure-
to apply a stimulus to a DUT, insert
• Disconnect relays ment equipment
a delay (wait statement) in the
system software to give the stimulus • Turn off power source • Set up measurement instrument
instrument and DUT time to stabilize
• Wait for DUT output to settle • Wait for global timer
and then instruct a test instrument
to take a measurement on the DUT. Each step usually involves a wait • Initiate measurement
However, the length of the required while the action completes. In • Wait for global timer
delay is typically a guess. Instead addition, most DUTs need time to
of adding delays to a test routine to stabilize after power is applied or • Disconnect relays
assure that enough time has elapsed a load condition has changed. By
for the stimulus and DUT to stabilize, • Turn off power source
separating the programming and
use triggering from the stimulus wait stages, you can rearrange the With this approach, the test does
instrumentation (and sometimes test to program one instrument while not have to wait any more than is
from the DUT itself) to initiate a waiting for another: absolutely necessary for instru-
reading as soon as possible, espe- ment setup, and the programming
cially if wait time delays comprise • Apply load to the DUT
is simpler, too. Other techniques
a significant proportion of your test • Connect relays to engage measure- for reducing software delays are
time. Also, once a triggered sequence ment equipment discussed in “Fine-tuning your
has been started, it is possible to system for speed” on page 84.
make other measurements while • Set up measurement instrument
waiting for the triggered measure- • Wait for the longest of all previous
ment to finish. actions to complete: Programming tips
You can use triggering built into a — Relays to close for fastest throughput
VXI or PXI backplane or with point- — Measurement instrument to settle
to-point wiring in a rack-and-stack — DUT output to settle • Graphical languages are not opti-
system. In a rack-and-stack system, • Initiate measurement mized for speed, so use a textual
you need the right cables, the right programming language. For fastest
connectors and a strategy for what is • Wait for measurement to complete throughput times, write your test
going to trigger what. In a VXI or PXI • Disconnect relays program in Visual C++ or C#.
system, triggering is easier to imple-
ment because you don’t have to do • Turn off power source • Avoid the indiscriminate use of the
any special wiring. In LXI systems, reset command (*RST) to return
• Wait for DUT output to settle
the LXI Class A trigger bus provides test instruments to a known state
equivalent triggering capability to Overlapping the wait periods mini- after a measurement. It is best to
LXI/PXI. mizes overall delays. While the DUT place resets at the beginning of a
is settling, the test program is busy test program to initialize the hard-
Managing wait times programming the relays and setting ware the first time the program is
When you are writing your test- up the measurement instrument. run, then to manage the instrument
system software, you can minimize states carefully so that they are in a
delays by overlapping wait periods To implement an overlapped wait, benign state (equivalent to the reset
within specific tests. Here’s a typical use a common or global timer. Each state) at the end of the program.
sequence: programming routine that sets up
an instrument or DUT can tell a • Use binary data format when
• Apply a load to the DUT or set up global timer how long each action transferring large amounts of
its programmed state and wait for will take; this identifies which action measurement data.
DUT output to settle requires the longest wait. Then,
• Do not use SLEEP statements
• Connect relays to engage measure- when a measurement or other test
for instrument-specific timing
ment equipment and wait for requires that the previous commands
(consider the operation complete
relays to close be completed, a call to a single wait
command, *OPC?, the wait
function will wait until the global
• Set up measurement instrument command *WAI, and READ state-
timer expires before continuing:
and wait for setup to complete ments instead).

www.agilent.com/find/open
83
In some test systems, I/O speed is not For more information about I/O Fine-tuning your system
a major determining factor in overall and its effect on system throughput,
throughput. This is especially true see Chapter 2, Computer I/O for speed
in RF systems, where the network Connectivity Considerations, and
Whether you are turning on a new
analyzer or spectrum analyzer Application Note 1475-1, Modern
system or fine-tuning an existing
may take some time to complete a Connectivity—Using USB and LAN
system, there are a number of
measurement. However, in systems Converters.
techniques you can use to improve
that rely on unprocessed data, or
Keep in mind that if your instru- throughput. Relatively small
when real-time control is important,
ment’s throughput is slow, you are adjustments to system software,
your choice of I/O for the connection
not going to get greater throughput instrument setups and operating
between your computer and your
by changing to a faster I/O interface. procedures can help you optimize
test system hardware can have a big
You can improve your throughput your system speed.
impact on the overall test time.
by minimizing the number of
While high-speed LAN and USB have GPIB transactions you send. When Minimize delays
much higher throughput than GPIB, possible, send multiple GPIB
the serial nature of these interfaces commands at one time. This reduces As Figure 7.2 noted, delays (wait
results in performance that may be bus turnaround times and allows statements) programmed into system
similar to GPIB for highly transac- the instrument, in some cases, to software typically cause systems to
tional operations in which you are operate on the commands as quickly run at suboptimal speeds. When you
not waiting for the instruments. The as possible. run a test program there are some
extra cost to use gigabit LAN and Hi- operations — such as measuring
Speed USB is relatively low and will The character format you use to a complex signal or moving data
result in noticeable speed improve- transfer data can also affect the to an array — that take additional
ments. Note that a LAN will run at data transfer rate. You can choose time to complete before the next
its fastest if you make a direct socket from a variety of general formats, command can be executed. If these
connection. including character string, ASCII, or operations do not complete before
binary. Binary code is handled as the next command in your program
Connection to a card-based system bit streams, typically in block-length is executed, errors can occur
such as VXI or PXI should usually message units. These message units and the program may halt. When
be done with a fast interface such are more compact than those made debugging test routines, program-
as FireWire or MXI, as the register- up of string and ASCII characters mers frequently “fix” the problem
based cards generally have minimal and therefore they can be transferred by programming in a delay after
processing capability on-board and more quickly. the operation and before the next
count on a fast interface for good command. This is fine as a temporary
performance. For example, when you are down-
fix for correcting an error, but it is
loading a data file for an arbitrary
important to remove the delays, or
Table 2.1 in Chapter 2 showed the waveform to a function generator,
at least to make them as short as
relative speeds for various operations downloading floating-point values
possible, once you find the real cause
for a stimulus instrument having (a character string) is slower than
of the measurement problem. Leaving
GPIB, USB and LAN interfaces. As downloading binary values, but using
unnecessary delays in a program
you can see from that table, the floating-point values is more conve-
slows down the overall system
instrument’s internal speed clearly nient when creating the arbitrary
throughput.
dominates setup changes, making waveform. Here, you need to decide
I/O choices seem moot, but download which is a higher priority, faster An alternative to using a delay is to
speeds are much better with LAN data transfer (binary), or ease of use use system-level control commands
and USB when large amounts of data (floating-point values in the form of a such as *OPC? (operation complete)
are involved. character string). to inform the control software that
an operation is complete, which is
especially useful for variable-length
operations. Many instruments are
IEEE-command compliant which
means they are able to use the

84 7. Maximizing System Throughput and Optimizing System Deployment


*OPC and *OPC? commands. Using Instrument-specific tips • Avoid using auto-range. Define
*OPC? at the end of a command tells the expected value of a measure-
the instrument to return a +1 in To maximize throughput, make ment so the instrument spends
response to the query as soon as the sure your test instruments are less time searching for the proper
instrument command has finished configured for speed. The following range. Bear in mind, though, that
executing. The next command in suggestions apply to many of today’s a malfunctioning DUT could result
the program sequence can execute instruments: in a reading outside of the selected
without any unnecessary delay. range. Your program must be
• Make sure you are using the able to react to overload readings
You also can use SRQs (GPIB service latest version of the instrument’s correctly.
requests) and IRQs (Windows inter- firmware. Firmware upgrades
rupt requests) to minimize delays sometimes include significant • Whenever possible, use preset
in your test software. The interrupt measurement speed enhancements. states that can be used to recall
structure eliminates the necessity to instrument state setups.
conduct a poll or a loop waiting for • Turn off the display if it isn’t
something to happen. Such loops are needed. Updating the display slows In addition to the general techniques
time-consuming to write and slow to the reading time. listed above, here are specific tech-
execute. With an SRQ or an IRQ, the niques you can try with different
• Turn off all math functions or types of test instruments.
hardware tells the control software
other data processing, unless using
when it is ready to have its data read
(similar to a trigger).
it allows the instrument to send a Function generators
single pass/fail result instead of a • Configure your setups in advance
stream of data. and store them into memory loca-
Minimize state changes tions. Instead of sending multiple
• Set autozero to “once” or “off,” as commands to configure the instru-
“Designing your test plan for speed” this feature can double measure- ment, you can recall the instru-
on page 80 discussed ordering tests ment time. However, do this only if ment state with a single command.
to minimize state changes. If you the temperature drift in the system
optimized the order of your tests is minimal. Otherwise, an autozero • When downloading arbitrary wave-
during the design phase, you may not should be performed periodically. form data, send it in binary format
need to tweak it after your system rather than ASCII. Download
is up and running. If you are fine- • Use the lowest-level commands you the smallest number of arbitrary
tuning existing system software that can. Instead of using “measure?,” waveform points you can.
was not written with speed in mind, use “config” “init” and “fetch?.” You
you may find many opportunities to do have to pay attention to where • Consider using modulation to
improve your throughput by reor- and how your readings are stored respond to your system (AM, FM,
dering tests. Range, frequency and when you use these commands. PWM, PM or FSK). If you need the
function changes are relatively slow For example, the Agilent 34401A generator to respond to something
and can interfere with fast tests. To multimeter treats “read?” and else in your system, rather than
compensate, arrange your tests such “init” followed by “fetch?” exactly reading a value and reconfiguring
that tests involving different param- the same except for where it stores the function generator, see if you
eters or different ranges are grouped the readings. INIT/FETCH buffers can use a control signal or even a
rather than intermixed. It is also the readings, whereas READ places conditioned signal as an external
helpful to pick a range that gives the them immediately to the output modulation signal.
needed resolution for most measure- buffer. By omitting this extra
ments and then keep it there. If buffering step, you can get your
you need to test multiple ranges or reading to your computer faster.
multiple parameters and your budget
• Use the fewest digits of resolution
allows, you can use multiple test
needed for the required accuracy.
instruments and set each to a specific
range or parameter.

www.agilent.com/find/open
85
Counters • Shield the measurement setup Power supplies
• Use ASCII format for fastest to reduce noise pick-up from the • If your power supply has list mode,
throughput (note: this is different operating environment. Shielding use it to store complete instrument
from other instruments) may allow you to make measure- setup states and recall them with
ments with shorter measurement a single command, rather than
• Select the trigger level instead of times (aperture) or with less sending a long series of configura-
using auto level filtering and still achieve sufficient tion steps.
noise rejections to obtain the
• Use the auto arming mode • Use the built-in measurement
required accuracy.
capabilities.
• Disable printing operation
• Try to make all readings with the
DMM “LO” terminal connected to • Use power supplies with downpro-
• Define the trigger command so the
circuit low. DMMs have fairly large gramming capability.
fetch command does not need to be
sent for every measurement values of capacitance between “LO”
and earth which must be charged RF/microwave sources and analyzers
(increases settling time) when you • Agilent application notes offer
• For some measurements, a counter
make floating measurements. many tips and tricks can be used to
may produce readings in which the
speed up measurements with RF/
last few digits are not stable. This
can slow a test if a human operator Scopes and digitizers microwave sources and analyzers.
• If you are importing raw data, use See www.agilent.com/find/open.
needs to discern the difference in
readings. Truncating the last digits binary transfer mode. Specifically,
will produce a more understand- use byte or word formats. Word Conclusion
able display, but some tests require format is more accurate but
requires twice as much data to be To maximize system throughput, you
that extra resolution. Have the
sent over the bus. Some scopes need to choose the right equipment
counter calculate the arithmetic
produce more than 8-bit resolu- and program it for optimum speed.
mean if you require high resolution
tion, but many acquisition modes The system hardware and software
and a stable reading or use a limit-
produce only 8-bit data. In these architectures, instruments, switches,
testing mode.
cases, transferring word versus and I/O interfaces you select have a
Digital multimeters byte data will take twice as long huge impact on system throughput.
• When using a scanning meter and not provide any additional If you carefully evaluate the complex
such as the Agilent 34970A, wire resolution. It is important to know interplay of the hardware and soft-
adjacent channels so that the DMM how and when the instrument ware elements of your test system,
doesn’t have to switch modes or produces extra resolution. you will find many opportunities
ranges for improving the speed with which
• Capture only as much data as you your system performs measurements.
• Select the shortest channel delay need to analyze. After you’ve built your system, you
(zero) can tweak instrument setups and
• Turn off special features such as operating procedures to optimize
• Turn off scaling mask test, jitter analysis and FFT speed. The time you spend doing
functions if they aren’t needed. so will help lower your costs and
• Turn off alarms accelerate your time to market.
• Make sure you have an adequate
• Use the fast filter trigger rate, and use the fastest
sweep speed (timebase scale) that
• Turn off T/C (thermocouple) check. is consistent with your applica-
Some scanning meters will check tion. Long acquisition times
for the existence of a thermocouple and/or slow trigger rates can limit
by looking for a short circuit before your throughput if your analysis
attempting to read the thermo- program is very fast.
couple voltage.

86 7. Maximizing System Throughput and Optimizing System Deployment


8. Operational Maintenance

Introduction Worldwide considerations to country, you must plan for the


changes in voltage or it will be a
This chapter examines important Systems are sometimes shipped from tedious job changing the equipment’s
tasks and decision to consider as country to country as needs change fuses and input switches. Some
your system is put to use. It covers older equipment must be removed
or manufacturing lines are moved. If from the system and have its top
issues related to worldwide deploy-
ment, calibration, diagnostics and you are building a system that might covers removed in order to reach the
repair, cleaning, upgrades and be transported elsewhere, you need internal switches. If possible, choose
expansion. to account for the difference in line equipment that runs from 90-252 V
voltage and line frequency, both from (to handle Japan’s 100 V lines at low-
Once you’ve created and debugged line and Europe’s 240 V lines at high-
the standpoint of equipment power
your test system, you will be putting line) without requiring changes to
it to use. But even the best-designed
input and changes to cooling fans
switch settings or fuses. Information
system requires routine calibration that may be required. In addition, on the most common line voltages,
and maintenance, and will occasion- there are ergonomic considerations power plug styles and other useful
ally fail. Planning for such eventuali- you should think about because of data for various parts of the world is
ties will help to reduce the system’s differences in culture or physical available in Electric Current Abroad,
downtime. characteristics of the operators who a free publication from the U.S.
will use the system. Department of Commerce at
The issues most often encountered: www.ita.doc.gov/media/Publications/
pdf/current2002FINAL.pdf.
• Worldwide deployment Power
considerations Another useful item to consider
• Calibration Your system is composed of when shipping systems from country
instruments, power supplies and to country is a power distribution
• Diagnostics and repair
computing equipment that could all unit (PDU). These devices can
• Cleaning be required to run on different line convert 3-phase inputs into line-to-
• Upgrades and expansion voltages and frequencies. If your neutral or line-to-line voltages, and
system will travel from country they also can detect low- or high-line
Figure 8.1. A typical AC power distribution unit.
conditions. They sometimes can be
connected to uninterruptible power
Output supplies, too. A good PDU will also
Mains terminal block have an emergency off (EMO) switch
disconnect input, allowing the operator to shut
Circuit
1 breakers off all or some of the power in an
1 NEU
0 CB1-CB10 emergency. Figure 8.1 shows typical
4-pole 3 NEU
contactor 1 4 01 wiring for a PDU that is used in many
G 5 Agilent systems.
Mains input

2 01
T1 3 6 01
T2 4 7 01
T3 5 8 02
N 6 9 02
7 10 02
10A
8 11 03
10A
9 12 03
LL1 J3 10 13 03
LL2 J4 14 NEU
NEU (A) NEU
16 NEU
GRD Control
board
J1 J2 Grn
Outputs enabled switch 1 3 7
Line/EMO error indicator
2 4
8 Yel
Emergency shutdown 5 J2 Outputs enabled
(EMO) switch 6 9
indicator
1 3
Outlets/
Branch in 2 4 Branch out receptacles

87
Cooling In non-air-conditioned factories, Logistics and ergonomics
temperatures sometimes may exceed
Fans are another problem area when the ability of simple fans to keep The doorways in many older
line voltage varies. A 240 V fan may the instruments operating within European buildings are short, and
work when operated at 120 V, but their specifications. In this case, a 2-meter rack may not fit through
at a much lower speed. Thus, the consider a dedicated air conditioner the doors. Taller racks also require
airflow may no longer be sufficient to for the system. NEMA enclosures are larger aircraft to transport them. If
cool the system. Conversely, a 120 V available for a wide variety of rack you build tall systems, your shipping
fan may burn up when connected to sizes. These completely enclose the costs may be significantly higher over
240 V. It can be a nuisance to replace system, and provide a way to attach the life of the system if it is moved or
the fans every time the system is air conditioner intake and exhaust. shipped frequently.
shipped from country to country. But Appropriate ductwork must also be
fans that can be operated from any added to the factory. See In some Asian countries where real
line voltage are produced in smaller www.nema.org. estate is in scarce supply and space
quantities and are thus much more is at a premium, facility aisles and
expensive than single-voltage AC hallways are extremely narrow. It
fans. Line frequency may be difficult or impossible to
move a deeper- or wider-than-normal
DC fans, though, can be an excel- The frequency of AC line voltage system to its intended location. Once
lent choice for systems that must varies in different parts of the world. positioned, it could be difficult to
be moved often. A small, fixed 12 In the U.S., 60 Hz is standard. In open front or rear doors.
V or 24 V DC power supply with many other countries, it is 50 Hz.
universal AC input (i.e., 100-240 VAC) While this won’t affect most modern The average population height varies
can be installed in the system and power supplies, it can certainly affect country-to-country, too. Use care
connected to the DC fan(s). Other signal measurements. It is common to place keyboards and monitors at
advantages of DC fans are: to take low-noise DMM readings an elevation that is not too high for
with a “1-line-cycle” integration shorter operators. It is also a good
• More control over airflow and time. At 60 Hz, this is 16.667 ms. idea to provide keyboard/mouse
noise. The speed of the fan is At 50 Hz, it is 20 ms. Some DMMs, trays with adjustable heights and
directly related to the input such as Agilent’s 34401A, automati- provisions for left or right-handed
voltage. A 24-volt DC fan can cally adjust their integration time operators. Your safety department
typically be operated between 12 based on internally measured line can provide you with up-to-date
and 28 volts DC. At 12 volts DC, frequency. Others must have this guidelines for ergonomic standards.
the fan will operate at half speed, information programmed into them.
producing less air and less noise. It is important to set your DMM
correctly based on line frequency.
• The life expectancy of a DC fan
is higher than that of a compa- At lower frequencies, the magne-
rable AC fan, since DC fans are tizing current of transformers and
many times more efficient. The motors can go up, even to the point
correspondingly low heat dissipa- of saturating the core. This can
tion reduces the thermal load on cause nonlinear magnetic fields and
the bearings, thereby increasing overheating of the core, especially
lifetime. at 47 Hz, creating a situation where
products designed in a 60 Hz envi-
ronment can cause problems in other
parts of the world.

88 8. Operational Maintenance
Calibration a method for notifying appropriate accuracy I need in both places, and
personnel when the next calibration are the calibration services
Most electronic instruments require due date arrives. You could simply adequate?
periodic calibration that is traceable place a dated sticker in a conspicuous
to a government standards agency place on the instrument whenever it
such as NIST (National Institute of is calibrated (see Figure 8.2), and have
In-house calibration lab
Standards and Technology) in the U.S. someone check dates periodically, or If you do not already have an
This requirement guarantees that you could program the system with in-house calibration department
measurements meet their published “due” software that notifies appro- (see Figure 8.3), you might consider
accuracy specifications. Calibration priate personnel automatically. setting one up, although the cost and
is not the same thing as diagnostics, Figure 8.2. Cal sticker time to do so can be considerable.
which are simple tests to verify that If you intend to offer calibration
the instrument is operating and LOVELAND STDS LAB
17025 services to others outside your
taking measurements that are at DD MM YY BY/NO. company, your customers may
least close to what they should be. CAL require you to have international
Diagnostic tests and fixtures are DUE accreditation. A good place to start
discussed in the next section. is the International Laboratory
Accreditation Cooperation (www.ilac.
It may seem logical to build calibra- In addition to regular calibration, org). Members of ILAC, such as the
tion fixtures that would allow your keeping a log is a good practice. American Association for Laboratory
system to be automatically calibrated It’s helpful to be able to correlate Accreditation (A2LA—www.a2la2.net),
without having to remove equipment. manufacturing anomalies to the will certify your lab after you have
Unfortunately, such fixtures would be particular operator, time of day, met their requirements, a process
prohibitively expensive. Calibration calibration period, run number and that can take from four to nine
requires use of components that meet to many other manufacturing months once the lab is fully opera-
stringent specifications under closely variables. Before you build that test tional. If you desire to have your lab
controlled conditions of temperature system in Germany for shipment to accredited, the international stan-
and humidity. Oil-baths containing Thailand, for example, try to answer dard ISO 17025 will apply. It is not
“standard” resistors at controlled these questions: Do I have the same necessary to become accredited, but
temperatures, frequency-measuring calibration system in both places? If at the least, you may wish to become
equipment that connects to the NIST not, can I guarantee the measure- ISO 9000 certified.
cesium-beam frequency standard and ments made by my test system here
the like are not easily contained in a will be the same after I ship the test
removable fixture. system overseas? Can I get the
There are three ways of assuring that
a test system is calibrated: Figure 8.3. Calibration lab

• Have an in-house calibration lab


perform calibration either in the
system or by removing instru-
ments, calibrating them and
returning them to the system

• Hire a firm that provides calibration


services at the location of your
system

• Swap instruments with calibrated


spares, then send the replaced
units out for calibration

Whichever plan you use, it is essen-


tial to track the date of each instru-
ment’s last calibration, and to set up

www.agilent.com/find/open
89
Contract services Diagnostics and Repair • Some instruments can do limited
internal automatic calibration
For a broad range of calibration Perhaps the hardest thing to do once (sometimes called “auto-adjust-
services covering many types of you have a test system finished is ment”). This automatic procedure
instruments, professional instrument to spend some extra time designing should be done periodically, but
calibration services are available a diagnostics test program that can not necessarily every time diag-
from Agilent. See www.agilent. help locate the source of problems nostic test programs are run. Keep
com/find/calibration for details. when they arise. But it is time well a programmatic calendar to remind
Non-Agilent equipment is included. spent. Here’s what to do: the operator to run such programs
Contracted services can be arranged when the due date occurs (usually
in various levels, from single instru- • Execute a self-test on every instru- about every 30 days).
ments on an as-needed basis to ment that has this capability.
scheduled volume on-site calibration • Attach a known good device under
(VOSCAL). • Measure the output of every test (DUT) to the system and run
stimulus device with an appro- a full suite of tests on it. This
priate measurement device to technique is not foolproof, since
Swap and return verify that all instruments are characteristics of such a “golden
working and taking readings that DUT” can change over time as
The third method of calibrating are nominally correct. This is not components age. A useful way to
equipment is to simply replace units sufficient to guarantee that they counter this effect is to periodi-
when they need calibration with are in calibration, but it is good cally run a “Gage Reliability and
others that are still within their enough for a diagnostic tool. Reproducibility” (Gage R&R) test
calibration period. This requires
on the system. There are two
keeping one or two spares on hand, • Feed a small DC voltage from a
sources of variation in any system:
which can be expensive. However, it stimulus device (digital-to-analog
the variation of the product and
is a good idea to keep some spares converter, power supply, etc.)
the variation of the measurement
handy anyway if system uptime is successively through all internally
system. The purpose of conducting
critical, as the next section discusses. available switching paths and
the Gage R&R is to be able to
There is one caveat in swapping back to a DMM. This verifies the
distinguish between the two so as
instruments: A replacement may switching subsystem.
to reduce the measurement system
be completely within its calibration
• Create a special diagnostic fixture variation if it is excessive. This
specifications, but if it is operating
that loops signals that cannot be means running a large quantity of
at the opposite end of its calibration
automatically connected internally known good boards on the system
range from the original instrument
back into the system. Use the same periodically to obtain a statistical
and the production device being
procedure previously described to sampling that can be compared
tested is already near its limit, a
measure continuity of these paths. to reference data to see if there is
statistical variation could result
any long-term drift in the measure-
that is large enough to cause a yield
• Read switch cycle count informa- ments. Such a study can also be
problem. The solution is to run a
tion from any switch box that has used initially to study the measure-
statistical analysis on the results.
this capability. This data can give ment statistical parameters, which
This analysis is called a “Gage R&R”
you early warning of relays that are can be used to set acceptable upper
study, and it is covered in the next
nearing the end of their specified and lower limits on each test. Look
section.
lives. for statistical process control (SPC)
and statistical quality control
(SQC) software tools that can help
you create such data.

90 8. Operational Maintenance
In a production environment, • Maintain an inventory of spare Cleaning
diagnostics can be run daily or at instruments. This can be expen-
the beginning of a shift. In a design sive, but so is a down production Maintaining good airflow through
validation or R&D environment, line. Remember, too, that the cost your system is essential, because it
running the test once a week or less of many plug-in cards for PXI and keeps the temperature under control,
may be adequate. Once a problem is VXI is greater than an equivalent assuring that instruments are
identified, the next step is to fix it. rack-and-stack instrument because operated within their temperature
There are several things you can do rack-and-stack instruments specifications. Many instruments
to ensure fast repair: typically are produced in higher have removable air filters, so be
volumes. Thus, it is less expensive sure to inspect these regularly and
• Make it easy to replace instruments. to inventory spares of box instru- clean or replace them when neces-
Make sure that mounting screws ments, and they can double as sary. Some racks are also available
are not hidden, that cables are debug tools when not in use inside with air filters. These should also
easily removed from the instrument a system. be inspected regularly. Keep cables
(and labeled so they are replaced away from the filters. If cables must
correctly), and that instruments are • Place more than one of a key be moved in order to reach the filters,
not hidden inside a rack, necessi- instrument in your system when the flexing can make the cables
tating removal of other instruments you design it. For example, eventually break, causing reliability
in order to get to them. an inexpensive DMM could be problems unrelated to dirty air.
integrated into the system for use
• Although PCI slots in a rack- during manual debug, but pressed If many operators will be using the
mounted computer are tempting into service should the main, high- system, it is a good idea to peri-
spots to put instruments (since speed DMM require service. With odically clean the keyboard, mouse,
they do not take up additional IVI drivers, such interchangeability barcode reader and touchscreen, as
rack space), remember that should not require a change to the applicable. You generally can use
removing the computer from the software. simple household cleansers. Disease
rack to get to them is tedious and can be spread easily from one person
time-consuming. • Heat and thermal gradients are to the next via these devices. Trained
enemies of any test system. Provide operators may be hard to find, so
• Use a limited set of custom cables adequate airflow to minimize heat keep them healthy!
and keep spares on-hand in case rise, and avoid a situation where
they need to be replaced. Use you are continually changing the
standard, easily available cables thermal environment of the test
whenever possible. equipment.
• Fixture connectors can wear out
over time. Have a good stock of
replacement connectors available.

• Computers are a frequent source of


problems. Hard disks fail, moni-
tors quit, and keyboards and mice
get dirty. Have spares available.
Most importantly, keep important
files somewhere else or back up
the computer regularly to guard
against loss of data.

www.agilent.com/find/open
91
Upgrades and expansion Conclusion
If you’ve designed your system well, Test systems have made the task of
using the concepts highlighted in repetitive testing both faster and
earlier chapters, it will be able to more reliable, but there’s much to
handle new instruments easily. consider to keep them running. You
You’ve left extra space in the rack must factor in worldwide power
for additional or bigger instruments, issues, calibration, diagnostics,
and you’ve allowed expansion room repair, cleaning, upgrades and expan-
in your switching or instrumenta- sion. At Agilent, we appreciate the
tion cardcage if present. You’ve talent and effort required to design,
also designed the switching system build and implement exceptional
in such a way as to allow instru- test systems. If you are creating a
ments to be added to the system by test system or need help with one
simply plugging the new inputs and you already use, you can find lots of
outputs into a place you’ve reserved advice at www.agilent.com/find/open.
for future instruments (such as the
unused rows of a switching matrix,
as described in Chapter 5, Choosing
Your Test-System Hardware
Architecture and Instrumentation).
You’ve got room in your fixturing
system for more pins, and you’ve
developed a small set of reusable
cables to connect those into your
instruments and switches.

In the software realm, you’ve


planned for upgrades by doing
regression testing every time a
major piece of software is changed.
This means allowing time to re-run
the Gage R&R, diagnostic test plan
and/or known good DUT when the
operating system, test executive,
drivers or other support routines are
modified. You’ve also documented
the software and allowed for code
changes to be easily tracked. You’ve
written the software in an environ-
ment standard to the PC industry so
anyone familiar with languages such
as Visual Basic or C can take over the
system software and make necessary
changes as the years go by.

92 8. Operational Maintenance
Section 2. Networking Choices

Overview 3. Using SCPI and Direct IO vs. Drivers,


outlines the relationship between
The seven chapters in this section input/output (I/O) software,
explore the range of networking application software and the
options available for test system ability to maximize instrument
automation: interchange and software reuse in
present and future systems.
9. Using LAN in Test Systems: The
Basics, provides an introduction 14. Using LAN in Test Systems:
to the essential elements of local- Applications, offers advice on
area networking (LAN), the basic balancing cost, convenience and
attributes of test systems, and the security in three common LAN
benefits of using a LAN interface scenarios: sharing instruments,
for control and data transfer in a remote monitoring and data
system. acquisition, and functional test
systems.
10. Using LAN in Test Systems: Network
Configuration, describes the poten- 15. Using LAN in Test Systems: Setting
tial risks of networking a test Up System I/O, describes the
system, suggests two secure topol- components of the Agilent IO
ogies for LAN-based test systems, Libraries Suite and presents a
and outlines the essential aspects quick, six-step process that will
of system configuration. make LAN-based instrument
connections as simple as using
11. Using LAN in Test Systems: PC GPIB.
Configuration, describes the steps
required to enable commu-
nication between a PC and
LAN-enabled instrumentation,
including network settings in
Windows XP and IP address
assignments.

12. Using USB in the Test and


Measurement Environment, offers
a closer look at the universal
serial bus (USB) as a test system
connectivity option, including
USB connectivity and data rate
options.

93
94 Section 2. Networking Choices
9. Using LAN in Test Systems: The Basics

Introduction Coping with complexity Figure 9.1. PC and test instruments in a rack

This chapter provides an introduc- The basic purpose of any test system
tion to the essential elements of is to characterize and validate the
local-area networking (LAN), the performance of electronic compo-
basic attributes of test systems, and nents, assemblies or products. The
the benefits of using a LAN interface complexity of this task depends on
for control and data transfer in a variables such as the physical nature
system. of the device under test (DUT), the
number of tests to be performed, the
number of signals to be measured
and the desired time per test.

The number of instruments used in


the system can further complicate
the task—and put a heavy burden
on the digital input and output
(I/O) between the system computer
(usually a PC) and the test equipment
(Figure 9.1). One of the best ways
to cope with a high volume of I/O
traffic—commands, status messages,
test data—is LAN technology, a fast,
open and low-cost alternative for
system I/O.

95
Setting the standard Defining key attributes and The other essential elements of a
elements LAN are the hardware devices that
Today’s most pervasive computer control, manage, direct and amplify
networking standard goes by a few Wired LAN connections are made the data being sent between other
well-known names: IEEE 802.3, with UTP cables called Category devices on the network.
Ethernet, 100Base-T, 1000Base-T, 5e, commonly referred to as
or Gigabit Ethernet. Some variant • Adapter. This refers to the LAN card
Cat 5e, which is the name of a
of this standard is almost always and connector in a PC (and some
wiring standard defined by the
used when PCs share files, exchange new-generation test equipment)
Telecommunications Industry
e-mail, access the Internet and so on. that provides an electrical inter-
Association and Electronics
With steady improvements in cost, face to the network.
Industries Association (TIA/EIA).
speed and functionality, Ethernet has (Cat 5e replaces the Cat 5 standard • Hub. A small, standalone unit that
achieved virtually universal adoption that has been in use with LANs for a connects multiple devices. Hubs
for local-area networking (to the number of years.) A CAT5 LAN cable use a broadcast model to transmit
extent that LAN and Ethernet are contains four pairs of copper wire data, a method that reduces the
sometimes used as synonyms). and uses locking RJ-45 connectors at effective bandwidth (or data rate)
both ends (Figure 9.2). It is largely when network traffic is heavy.
Devices are often described as immune to interference and crosstalk
being 100Base-T, 1000Base-T and and can support data rates of up to
100/1000Base-T. The number 1000 Mbps.
indicates the data rate in megabits
per second: 100Base-T is 100 Mbps
and 1000Base-T is 1000 Mbps;
100/1000Base-T devices are compat- Assessing wireless LAN • IEEE 802.11a: Uses 5.0 GHz transmis-
sions to send data at up to 54 Mbps
ible with both standards. The T alternatives and with an indoor range of 25-75
indicates unshielded twisted pair
In many companies, an increase in feet. 802.11a is not compatible with
(UTP) wiring to differentiate it from
workforce mobility has led to greater 802.11b and g because it uses a
older standards that used coaxial
demand for flexible networking different modulation method.
cable.
solutions, most notably wireless LAN
• IEEE 802.11n: An emerging standard,
Today, 100 Mbps technology is the (WLAN). As with wired LAN, there is an
backwards compatible with 802.11b
most widely deployed standard and evolutionary series of standards that go
and g, which should offer data rates
provides ample performance for most by various names, but all are generally
up to 10 times faster than 802.11a
uses. Consistent with its history, the known as Wi-Fi (short for “wireless
or 802.11g and up to 50 times faster
standard continues to evolve: Gigabit fidelity”). The four main standards are
than 802.11b.
Ethernet was standardized in 1998 described below in order of commercial
and is now widely deployed and introduction: For test systems, WLAN can enable
10 Gigabit Ethernet has been more measurements in remote or hazardous
recently standardized. • IEEE 802.11b: Uses radio transmis-
settings and provide an alternative to
sions at 2.4 GHz to send data at up to
costly cable runs. However, none of
Tremendous competition among 11 Mbps and with an indoor range of
the current standards can match the
vendors of Ethernet-based LAN 100-150 feet.
combination of speed, reach and noise
devices and cables has driven down
• IEEE 802.11g: Uses 2.4 GHz transmis- immunity possible with a 100Base-T
prices and driven up the volume
sions to send data at up to 54 Mbps wired LAN. What’s more, WLAN signals
of products sold. The net result is
and with an indoor range of 100-150 are susceptible to interference from
a wide selection of high-quality,
feet. It interoperates with 802.11b. other devices that operate in the same
low-cost solutions for local-area
(Some vendors also offer proprietary frequency range, including cordless
networking.
extensions that can provide higher phones and microwave ovens. Wi-Fi
performance.) signals may also interfere with the
testing of wireless DUTs.

96 9. Using LAN in Test Systems: The Basics


• Switch. Another standalone unit • Router. A standalone box that
that connects multiple devices on joins multiple networks (wired Connecting ethernet and
a LAN, usually in what’s called or wireless) through its ability to internet
a “star” topology (Figure 9.3). In handle high-level protocols such as
this configuration, any device can TCP/IP (see “Connecting Ethernet TCP/IP stands for “transfer control
discover and talk to any other and Internet”). Routers allow protocol” and “Internet protocol,”
device on the LAN. Because one- and two-way communica- two separate standards that work
switches contain more intelligence tion between devices and enable together to provide the foundation of
than hubs, including the ability to “awareness” among the devices on data communication on the Internet.
send data to a specific destination a network. They also allow devices For example, Web browsers use TCP/
and to devote the entire bandwidth to hide their presence, enabling IP to communicate with Web servers.
of the network to any segment of the creation of small, private TCP/IP also enables seamless
the network, they typically provide networks. A router performs the connections between local Ethernet
better performance than hubs. functions of a switch, but also joins networks (also called intranets) and
other networks. This is most useful the Internet, and between different
• Bridge. Similar to a switch but with when you need a local network for types of computers (e.g., Windows,
just one input and one output. your test system, but also need to UNIX and Linux).
Used to break networks into connect to a corporate network.
segments, which can improve the Technically speaking, Ethernet is just
performance within each segment. We recommend that every standard one type of network technology that
test system use either a switch or a can carry TCP and IP traffic. Other
• Repeater. Similar to a bridge with router. Also, note that the maximum examples include Token Ring (IEEE
one input and one output but cable length for any segment of a LAN 802.5), DOCSIS (cable modem), xDSL
contains active circuitry that reads is 100 meters (about 328 feet). Hubs and ISDN.
and regenerates the incoming or switches can extend that distance
signal. Used to extend the length of to roughly 1,600 meters (about one
a network segment. mile) and the use of routers, switches,
bridges or repeaters between LAN
segments can yield a network of
virtually unlimited reach.

Figure 9.2. A CAT5 LAN cable with RJ-45 Figure 9.3. A simple network with one switch and multiple PCs in a
connector. star topology.

Switch

www.agilent.com/find/open
97
Using LAN in test systems This situation is driving the addition 33220A function generator (Figure
of LAN connectors and adapters to 9.5), which has LAN, USB and GPIB
The computer in a test system plays current- and next-generation test interfaces built into its rear panel.
three important roles, two of which equipment. The LXI Consortium has Agilent recognizes the pervasiveness
rely on the I/O connection to the test chosen LAN as the interface for test of GPIB in existing test systems and
equipment: equipment (for more information on will continue to support it. At the
LXI, refer to Chapter 16). The inclu- same time, we are also committed to
• It provides fast, reliable control sion of both LAN and GPIB may be providing LXI compatibility in new
by sending commands, config- quite common for the next few years. instruments, making it the most prev-
uring instruments, reading One recent example is the Agilent alent interface in the near future.
status messages and initiating
measurements.

• It gathers test data—raw or prepro- Figure 9.4. An example test system that utilizes a PC, several instruments, a LAN router, a LAN/
cessed—from the instruments and, GPIB gateway and three types of I/O
if necessary, stores it for postpro-
cessing and archival purposes. USB

• After testing one or more prod- N5230A


ucts, the computer (and its test
software) may also analyze the
results and provide reports for
further evaluation by engineering 54832A
staff, manufacturing management, Ethernet
contract manufacturers and others.

As each task becomes more data


33220A
intensive, the choice of I/O interface Router
becomes more significant (Figure
9.4). Speed is an important factor,
but a test-system connection must
also be rugged, noise-tolerant and
able to handle multiple instruments. E5810A 53131A 34401A
As Chapter 2 discusses in detail, the LAN/GPIB gateway
advantages of LAN technology make
it a good choice for meeting the I/O
needs of test systems. With LAN Figure 9.5. The rear panel of the 33220A function generator includes USB,
adapters built into most current- LAN and GPIB interfaces.
generation PCs, the computing
portion of the system requires
minimal physical configuration to
support test system deployment.

98 9. Using LAN in Test Systems: The Basics


As a near-term solution, standalone the hub, switch or PC at the other Enabling additional capabilities
gateway devices make it possible to end. The third element is the test
connect current-generation PCs to and measurement communication Through the many available appli-
older test equipment and systems. protocol called VXI-11. cations of Ethernet and TCP/IP,
The Agilent E5810A LAN/GPIB LAN-enabled instruments can do
gateway (see Chapter 2, Figure 2.5) VXI refers to both a test-and- more than just support VXI-11. For
has a LAN port for the PC and a measurement standards body and its example, they can be equipped with
GPIB port that can control up to 14 well-known multi-vendor standard for built-in Web servers. A good example
instruments. By providing LAN-based modular, cardcage-based test systems. of this capability is the Agilent
access to a test system, the gateway VXI-11 is a more recent standard that Infiniium family, which includes
enables useful capabilities such as defines LAN-based connectivity for all digital sampling oscilloscopes,
remote monitoring of test progress types of test equipment, not just VXI. mixed-signal oscilloscopes and
and collaboration and consulta- digital communication analyzers.
The VXI-11 protocol makes the I/O By pointing a Web browser at the
tion with distant colleagues. It also
connection appear to PC applications instrument’s IP address, the user can
has a built-in Web server, which
as though the instruments were view the instrument configuration,
lets you use a browser to set up,
connected via GPIB. In practice, this change its settings, start a measure-
configure and use the gateway—and
means applications written for GPIB ment and see the results (Figure 9.6).
control instruments—from a remote
are likely to work on VXI-11 instru-
computer.
ments, especially if they use the Some LAN-equipped instruments
The E5810A gateway is fully VISA I/O API—the Virtual Instrument provide even greater functionality:
supported by the Agilent IO Libraries Software Architecture’s input/output inside every Infiniium product is
Suite, which enables automatic application programming interface. a PC running custom software on
control of instrumentation from a (VISA is also a multi-vendor standard.) a version of Microsoft Windows.
variety of programming languages. Windows has several LAN services
The gateway also has Universal built in, enabling capabilities such as
Plug&Play (UPnP) support, making  To learn more, visit sharing of files, folders, drives and
www.vxibus.org/specs.html (VXI-11) printers.
it appear as a network device in
and www.vxipnp.org (VISA).
Windows XP and Vista.

Communicating with Figure 9.6. The virtual front panel of the Infiniium oscilloscope enables
instruments browser-based interaction with the instrument.

LAN support in a test instrument


usually means three things. First is
a 100/1000Base-T adapter, which
is compatible with today’s most
commonly deployed LAN equipment.
Next is the locking RJ-45 connector
that ensures a dependable connec-
tion to the instrument as well as

www.agilent.com/find/open
99
Conclusion
Fast and inexpensive LAN tech-
nology has achieved widespread
adoption in the computer world and
is now shaping the future of test
system development and operation.
LAN-based systems provide several
advantages for test-and-measurement
applications: lower-cost hardware
and cabling; pervasive availability
throughout most enterprises; remote
or shared system control; fast data
transfers; file, drive and printer
sharing; and browser-based interac-
tion with individual instruments.
The LXI standard standardizes the
LAN protocols and connectors as
well as a host of other items for the
test and measurement industry, thus
ensuring easy interoperability of
instrumentation.

For decades, the robust GPIB


interface has been the dominant I/O
for test systems. Agilent is committed
to supporting GPIB well into the
future—and we are also committed
to developing new-generation test
equipment that includes both GPIB
and LAN interfaces.

To learn more about I/O connections


and other ways to simplify system
integration and apply the advantages
of open connectivity, please visit
www.agilent.com/find/open.

100 9. Using LAN in Test Systems: The Basics


10. Using LAN in Test Systems:
Network Configuration and Basic Security

Introduction Of course, the use of any pervasive Understanding the pitfalls


computing technology also carries
This chapter describes the potential risks. Adding a LAN connection can Test systems that aren’t connected to
risks of using LAN in test systems, open the door to inadvertent threats enterprise networks are sometimes
suggests two secure topologies for carried on a company’s intranet, labeled as “islands of automation.”
LAN-based test systems and outlines and may expose a test system to a However, their isolation provides
the essential aspects of system variety of malicious threats from the an unintended benefit: standalone
configuration. Internet (Figure 10.1). test systems are insulated from the
viruses, worms and Trojans that
Creating a safe haven Fortunately, there are effective, prac-
tical solutions that can protect your
might strike a company’s network.

The decision to use LAN in a test system from internal and external For a system on an island, the biggest
system delivers important benefits to risks. Our recommended starting risks come from human interfer-
your company and your team. From a point is to create a protected, private ence. System errors might arise if
business perspective, intense compe- LAN for the test system. The stan- a configuration change is made via
tition among equipment vendors has dard capabilities of most Microsoft the front panel or if two instruments
produced a wide selection of high Windows PCs and many low-cost are set to the same GPIB address.
quality, low-cost solutions for local networking products enable two These problems are easy to fix and
area networking. From an organiza- viable approaches, one router-based the integrity of the system remains
tional view, widespread use of LAN and the other PC-based. Several intact.
technology simplifies connectivity factors will influence your choice,
and your decision has implications
and enables new levels of commu-
for the selection and configuration Recognizing potential threats
nication and collaboration between
team members, wherever they may of the PC, the network and the test Connecting the system’s host PC to
be in the world. instrumentation. the company network builds a bridge
to the island. It also opens the door
Figure 10.1. The Blaster worm infected more than 300,000 computers in less than 18 hours
to a wider range of threats—including
some that may compromise system
security and integrity.
Blaster: The first 18 hours
400,000 Inadvertent threats may reach the
system via the company intranet.
350,000
Some are programmatic, as when
300,000 another PC on the network causes a
configuration change in one or more
Number of infections

250,000 instruments. Others are systematic,


such as configuring the test instru-
200,000 ments for dynamic rather than static
IP addresses may cause unexpected
150,000
operation. As an example, if the IP
100,000 addresses of two power supplies are
reversed, the device under test (DUT)
50,000 could receive the wrong voltages at
the wrong points and suffer severe
0
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
damage.
Hours from start

101
Malicious threats from the Internet partial support) probably can’t create The router-based approach
may breach the company’s firewall, a locked LAN I/O session between
spread via the intranet and infect the the instrument and a PC. A router is a standalone box with
system’s host PC. These threats also multiple LAN connectors, one for
pose a potential risk to any instru- Locking ensures a stable PC-to- the external or “public” network and
ments that contain a Windows PC. instrument connection and also four (or more) for the internal or
One answer is to include a hardware blocks other attempts to access “private” network. The router links
or software firewall in each instru- the instrument for the duration these networks through its ability
ment—a solution Agilent is enabling of a session. Instruments that do to handle high-level communication
in next-generation instruments. support VXI-11 have an important protocols such as TCP/IP. Routers
shortcoming when not locked into a allow one- and two-way communica-
session: they have no authentication tion between devices and also enable
Examining other issues capabilities (e.g., password protec- “awareness” among devices on a
tion) to block unauthorized access. network.
A LAN-based system is also subject
In this case, any PC on the network
to the quirks and limitations of the Routers also utilize a feature called
that supports VXI-11 can access the
deployed hardware. As an example, network address translation (NAT)
instrument and easily disrupt its
the simplest way to connect a system that allows devices to hide their
behavior. The solution is a private
to the corporate network is through presence from public networks. It
LAN that limits access to only those
a hub. However, hubs let all network does this by using a private set of
devices you trust.
traffic flow in both directions; all IP addresses that are not revealed
intranet traffic would be present
within the test system and all test Designing the private, to devices on the public side. This
is the key attribute that enables the
system traffic would appear on the protected LAN creation of a private LAN for a test
intranet. Excess network traffic could system.
degrade system throughput and the Our basic prescription for any
broadcasting of test results on the LAN-based test system is to create As shown in Figure 10.2, the router
intranet could be a security risk. a private, protected network that is the focal point of the network.
Using a switch or router is a better includes the host PC and the test In the simplest router-based
choice because both are specific equipment. Fortunately, there are system, its “external” port, usually
and selective about filtering and two practical, effective ways to set up labeled Internet or WAN (wide area
forwarding network traffic. this type of network. One approach network), is connected to the corpo-
is built around a LAN router, which rate intranet. Its other ports, usually
Some older LAN-enabled instruments provides a buffer between the test labeled LAN, are connected to the
also have two weaknesses that must system and the corporate intranet. host PC and a few LAN-enabled
be addressed or acknowledged: the The other approach uses the host instruments. Additional instruments
inability to lock connections and PC as the buffer by configuring it can be added by connecting a switch
authenticate devices. For example, with two LAN cards and the Internet or hub to one or more LAN ports on
those that don’t support the VXI-11 Connection Sharing (ICS) feature of the router (Figure 10.3).
communication protocol (or provide Windows XP and Vista.

Figure 10.2. A test system that uses a router-based private, protected LAN Figure 10.3. An expanded network that uses a switch to connect
additional instruments to the test system

To corporate
intranet To corporate
intranet
Router The router-based approach has
Router
several advantages. First and
foremost, it protects the test system
Instrument 1 Instrument 2 from the potential hazards carried
Instrument
on 1the intranet or Internet.
Instrument
It also2
prevents any type of outside access
by limiting Switch
communication to only
those devices that reside within the
private LAN— and, unlike a hub, it
Instrument 3 Instrument 4

102 10. Using LAN in Test Systems: Network Configuration and Basic Security
shields the system from intranet
congestion by isolating all but local Defining router and PC • Adequate port speed. The router
should support at least 100 Mbps
traffic. What’s more, the router features (100Base-T) on each LAN port (the
safeguards system operation from
the effects of administrative activity Successful implementation of the router- private side) as well as 100 Mbps on
or hardware problems on the local based private network requires a few the WAN port (the public side). 1000
intranet because it provides all of essential capabilities. Must-have router Mbps (Gigabit or 1000Base-T) routers
features and PCs are widely available and
the network services needed by the
instruments and the host PC. At the recommended for best performance.
• Network address translation (NAT).
same time, the router gives the PC NAT allows the router to act as • Built-in DHCP server. The router
unhindered access to the system an agent between the public and assigns IP addresses to the LAN
network as well as the corporate private networks, mapping private IP devices attached to its private LAN
intranet and the Internet. It also addresses to public IP addresses and ports. Some routers keep a table in
gives all LAN-enabled instruments enabling communication between non-volatile memory that provides
access to TCP/IP resources on the networkss. a mapping between the assigned
intranet and the Internet.
IP addresses and the associated
• De-militarized zone (DMZ) . The Ethernet devices on the private
The configuration process is rela- DMZ feature makes it possible to
tively simple for the router and the network. Vendors call this capability
give a PC (or instrument) complete by many names, including “static
PC—to the extent that you usually access to the Internet, effectively
won’t have to burden corporate DHCP,” “DHCP client reservation,”
putting it “outside the firewall.” “fixed mapping,” and “MAC address
IT personnel with the task. For With DMZ, other computers outside
example, a host PC that’s already to IP mapping.” (MAC stands for
the private network can connect media access control.)
equipped with a LAN card doesn’t to the host PC and use its public
require any hardware modifications. services (e.g., shared file folders The router-based approach also requires
The only PC configuration change, or a Web server). Because DMZ is a host PC that uses TCP/IP rather than
made after the router is installed implemented differently on various NetBEUI, IPX or SPX1 as its network
and enabled, is to activate dynamic router models, you should verify that communication protocol. The PC may use
host configuration protocol (DHCP), you are able to achieve essential DHCP to ensure assignment of a unique
which is a method of automatically IP address, or it can be configured with a
tasks such as communication with a
assigning an IP address to any device static, internal IP address that is compat-
manufacturing database Should-have ible with the router’s configuration.
connected to a LAN. (DHCP may be router features:
turned on by default, but it’s best to
verify this setting.) • Sufficient ports. Each device should
have its own LAN po. Each device 1 NetworkBIOS Extensions User Interface,
Instrument configuration is also should have its own LAN port, either Internetwork Packet eXchange and Sequenced
quite simple. The only changes are Packet eXchange are alternatives to TCP/IP for
in the router or via one or more LAN network communications. If installed in the host
deactivating DHCP then setting the switches or hubs connected to router PC, their presence can create problems within
IP address, subnet mask and default ports. the network.
gateway. These tasks are easy to
complete via the front panel or web
interface of most LAN-enabled instru-
ments. A more detailed description
of the configuration process is
presented in Appendix 10A.

www.agilent.com/find/open
103
The PC-based approach The most important step is the Through the Network Connections
configuration of ICS within the host control panel, both LAN cards can be
By adding a second LAN card and PC, which must be running Windows enabled and the one connected to the
activating ICS in Windows XP or Vista, Windows XP with Service public network can be shared. You
Vista, the host PC can serve as the Pack 1 (SP1), Service Pack 1a (SP1a) then use the Local Area Connection
router in the network (Figure 10.4). or Service Pack 2 (SP2) (Microsoft Properties window to enable ICS
ICS routes traffic from one LAN service packs are cumulative). (Figure 10.5).
card to the other and provides NAT
capabilities for the private addresses.
 Other operating system configurations
This method has several advantages may work but this note focuses on the
in common with the router-based most recent versions of Windows.
solution: it provides access control,
blocks Trojans and worms, and gives
Figure 10.4. The PC-based solution, with two LAN cards in the PC and a
the host PC unhindered access to the
switch to connect the instruments
system network, the intranet and the
Internet. LAN-enabled instruments
can also access the intranet and the To corporate
Internet. However, if the host PC is intranet
configured to use DHCP rather than
a static address then it will have to
rely on the corporate intranet being Switch
functional and able to provide an IP
address.
Instrument 1 Instrument 2
Although it probably isn’t a major
obstacle, this approach requires that
you are comfortable with the pros-
pect of opening up the PC, installing Figure 10.5. Use the Local Area Connection properties window in
the second LAN card, and config- Windows XP to activate Internet Connection Sharing.
uring the PC to ensure the peaceful
coexistence of two LAN cards.

 It is also possible to use a USB-to-


Ethernet adapter as the second LAN
port, but there would be some latency
in this connection—and the configura-
tion process is slightly more complex.

104 10. Using LAN in Test Systems: Network Configuration and Basic Security
Instrument configuration It is also necessary to configure the Appendix 10A: Configuring
instruments with the proper subnet
Keep one important caveat in mind mask (usually 255.255.255.0) and the router-based system
when using either approach: the default gateway, which is the IP
Of the two solutions described in
default mode of both ICE and a address of the router itself (typically
this chapter, the router-based system
router is to dynamically assign an 192.168.0.1, 192.168.1.1 or similar,
is more flexible and therefore more
IP address to every device that joins depending on the router maker).
likely to be widely used. The specifics
the network. This is done via DHCP,
Once you’ve saved these settings, of the configuration process depend
which prevents addressing conflicts
you may have to cycle power on each on the actual products used to
but also creates the possibility of
instrument for the changes to take assemble the system. However, three
assigning a different address to
effect. After each instrument has essential steps provide a framework
each test instrument every time it
completed its boot-up operations you for the implementation of any router-
is powered up or reconnected to
can then connect it to a LAN port on based solution: capturing network
the network. As described earlier,
the router. information, configuring the router
unwanted address changes can result
and setting up the test instruments.
in improper operation and damaged
DUTs. Conclusion
Capturing network information
The easiest way to prevent address The decision to use LAN for system
changes is to disable DHCP in each I/O delivers valuable benefits to your You’ll need to record some informa-
instrument and then enter a static company and your team. However, tion about the network and use it
(fixed) IP address. Though this will it also opens the door to malicious to set up the router, which will be
be easy to accomplish via the front threats and inadvertent risks that inserted between the PC and the
panel or web interface of most newer can affect system performance and intranet. That way, the PC is already
LAN-enabled instruments, it may not integrity. The creation of a private programmed with everything you
be possible with some older equip- LAN can protect the test system from need to know about its network
ment. In those cases, the easiest solu- those risks and ensure maximum configuration. You’ll need to record
tion is to use the GPIB interface on throughput. Using the standard that information and use it to set up
the instrument and add a LAN/GPIB networking capabilities of today’s the router.
gateway such as the Agilent E5810A PCs and the low-cost networking
to the network. products now available, you can What you need
chose either a router-based or PC- Configuration requires the host PC,
The IP addresses you assign to the based approach. powered up and connected to the
instruments should only differ from intranet; the router; one LAN cable
the IP address of the router by the Both approaches protect the test for the PC and one LAN cable for
last of the four numbers in the IP system from the potential hazards each instrument.
address (e.g., 192.168.0.x). You may carried on the intranet or Internet,
want to use numbers higher than prevent any type of unauthorized The process
200, reserving the first few digits outside access, and shield the system 1. Power up the router.
for any DHCP-enabled devices for from intranet congestion by isolating
which the router will typically all but local traffic. The router-based 2. Disconnect the intranet LAN
assign an address in that low range. approach has the additional benefits cable from the PC. Use another
Applying these ideas to a system of safeguarding system operation LAN cable to connect the PC’s
that includes a router at the IP from the effects of administrative LAN port to any LAN port on
address 192.168.0.1, the instruments activity or hardware problems on the router. Wait a minute or so
could use numbers in the range of the local intranet because the router to ensure the PC and router are
192.168.0.200 to 192.168.0.255. provides all of the network services synched.
needed by the instruments and the
host PC.

www.agilent.com/find/open
105
3. From the PC’s Start menu, open 1. Enter the PC’s host name. Setting up the instruments
a DOS or Command window and
type in ipconfig/all. This will 2. Enable cloning of the PC’s MAC The final step is to configure the test
display several items including address. instruments with static IP addresses.
“Host Name” and “Physical Use the front panel keys of each
3. Modify the security settings to LAN-enabled instrument to access
Address.” The PC’s host name
disable blocking of anonymous the I/O, Utility or IP Setup configura-
is registered with the corporate
ping requests. (Allowing other tion menu and disable DHCP. Next,
DNS services. The physical
computers to ping the host PC give each instrument a unique IP
address is the unique MAC or
may be a requirement of some address in the range of 192.168.x.200
Ethernet address of the LAN card
corporate intranets.) to 192.168.x.255 (Figure 10.6). These
in the PC. Write down the host
name, the physical address, and 4. Enable the DMZ capability and values are outside the range of IP
the IP address of your computer: set the DMZ host IP address to addresses routers typically assign to
you’ll use that information later 192.168.x.100 (the x must match network devices (192.168.x.100 to
when configuring the router. the value used by your router). 192.168.x.149).
This is the default first address You’ll also need to navigate the
To create a new, private network that
assigned by the router’s DHCP configuration menu and set the
consists of just the PC and the router,
server and must be used as the subnet mask to 255.255.255.0 and
return to the DOS or Command
IP address for the host PC. Some the default gateway to the router’s IP
window and type in ipconfig/renew.
routers may use different initial address (192.168.0.1, 192.168.1.1 or
addresses: type in the ipconfig/ similar, depending on which brand of
Configuring the router all command to find out what router you’re using).
address the router assigned the
The router must be configured to PC after they were connected. Once you’ve saved these settings,
mimic the test system PC on the you’ll have to cycle power on each
corporate intranet. Most routers 5. Save all of these settings. Locate instrument for the changes to take
provide a browser-based interface the intranet cable that was effect. After each instrument has
that lets you use any Web browser to originally connected to the PC completed its boot-up operations, use
log in and modify the configuration. and plug it into the router’s a LAN cable to connect each one to a
Consult the router’s manual for its WAN or Internet port. To verify LAN port on the router.
URL and the default login values for proper operation, open a DOS
user name and password. Launch or Command window and type To verify proper configuration, open
your Web browser, type in the proper ipconfig/release. Next, type a DOS or Command window and
URL and log in to the router’s ipconfig/renew: the host PC type ping 192.168.1.200 or any other
configuration page. At this point, the should now be able to access the valid IP address you assigned to an
details vary by vendor and product. corporate intranet via the router. instrument. To verify access to the
There might be a built-in wizard intranet, launch a Web browser and
function, or you may have to navi- try a few internal URLs. If these
gate through various configuration load as expected, this verifies proper
screens and enter values manually. communication with the intranet.
Either way, you need to accomplish
five tasks: Figure 10.6. The IP Setup menu of the Agilent 33220A function/arbitrary
waveform generator makes it easy to set the IP address, subnet mask and
default gateway.

106 10. Using LAN in Test Systems: Network Configuration and Basic Security
11. Using LAN in Test Systems: PC Configuration

Introduction On the surface, the use of LAN to manufacturer and model. Right
communicate with instruments clicking on a Local Area Connection
This chapter builds on the informa- seems like it should be as simple entry will bring up a menu that
tion presented in Chapters 9 and 10, as connecting a printer to a PC: includes a Properties selection that
describing the additional capabilities just grab a network cable and make opens the Local Area Connection
required to enable communication the connection. Unfortunately, it Properties window (Figure 11.1). This
between a PC and LAN-enabled requires a bit more effort to create window includes a list of check-
instrumentation. the right environment within a PC box items, and “Internet Protocol
for transparent communication with (TCP/IP)” is the last item in the
Creating the right LAN-equipped instruments. Making list. Clicking on that item (not the
it work depends on the LAN services check box) and then clicking the
environment of Windows XP and Vista, and the “Properties” button will bring up the
additional capabilities provided by TCP/IP configuration window. This
The evolution of LAN technology
a suite of I/O libraries from Agilent is where you can change IP address
continues to drive improvements in
make it nearly “printer easy.” settings (static or dynamic) and other
cost, speed, functionality and ease
networking parameters.
of use. This has created at least
two noteworthy trends. One is the Exploring network settings
widespread use of LANs within most in Windows XP and Vista Figure 11.1. Use the Local Area Connection
businesses. The second is the inclu- Properties window to set networking parameters
sion of LAN as a standard feature A standard Windows XP or Vista such as the IP address.
of most new PCs. A third trend is installation includes three software
emerging in test-system development: components that enable networking:
the advantages of LAN technology Client for Microsoft Networks, File
are making it an attractive alterna- and Printer Sharing for Microsoft
tive to GPIB for system input/output Networks, and Internet Protocol
(I/O). (TCP/IP). TCP/IP is the network
protocol that enables data communi-
Chapter 16 offers a closer look at cation with the Internet, your corpo-
LXI, the new LAN-based standard for rate intranet and other computers.
computer-instrument communica-
tion. Backed by the LXI Consortium, You access the PC’s TCP/IP settings
which includes every major test and through the Windows Control Panel
measurement company, the LXI stan- and its Network Connections icon (or
dard ensures interoperability among Network and Internet Connections
vendors’ LAN-based instruments and category). The Network Connections
simplifies configuration and program- window will present every installed
ming of LAN-based systems. Given LAN card under the default name
the advantages of LAN and LXI, “Local Area Connection” (you can
LAN interfaces are becoming more change this name). Each entry will
common in test equipment—though indicate the device’s connection
LAN ports will likely coexist with status (enabled or disabled) and
GPIB for years to come.

 Transfer Control Protocol, Internet


Protocol. Please refer to the glossary
for more on networking terms.

107
Using multiple network Of course, the “dynamic” part of
DHCP means that a device may Running a network without
connections receive a different IP address if it is DHCP
disconnected and later reconnected
It is possible to install multiple
to the network. This can cause prob- If a device running TCP/IP is set to
network cards in a Windows XP or
lems in a LAN-based test system. For obtain its IP address automatically
Vista machine. One reason to use
example, if the system contains two but there is no DHCP server available,
two LAN interfaces in one PC is
power supplies and DHCP reverses the device will use a capability called
described in Chapter 10: the PC can
their IP addresses, the device under Automatic Private IP Addressing
do double duty as the host computer
test (DUT) could receive the wrong (APIPA or “auto IP”) to assign itself
for a LAN-based test system and as
voltages at the wrong points and an address about two minutes after
a router that links a private network
suffer severe damage. There are two boot-up. This feature is built into
(for the test system) to the corpo-
alternatives. One is to assign perma- Windows PCs and most Agilent
rate intranet. The Interconnection
nent (static) IP addresses to every instruments. Auto IP creates
Connection Sharing (ICS) feature
device on the network. This lets you addresses that are designed to be
of Windows XP and Vista, accessed
fine tune the network and its settings; compatible with each other, enabling
through the Local Area Connection
it also isolates the network from any the establishment of a network
Properties window, makes this
failure of the corporate DHCP server. without DHCP or the configuration
configuration possible.
On the downside, this approach can of static IP addresses. Also, most of
become overwhelming in a large Agilent’s LAN-enabled instruments
Managing IP addresses network, increasing the chances of use the NetBIOS (Network Basic
configuration errors or bad settings Input/ Output System) protocol. In
In the dual LAN card configura-
that could cause problems across the a network configuration that lacks
tion, the PC acts as the network
network. a DHCP server, the PC can connect
controller for the private network,
to the instrument by using the host
enabling access to the public network The other alternative is to use name that is configured from the
and providing network address a dynamic domain name server instrument front panel. This makes
translation (NAT) and dynamic (dynamic DNS or DDNS) on the local it easy to create a direct connection
host configuration protocol (DHCP) network. DDNS lets an instrument, from a PC to a single instrument, and
services to connected devices. NAT PC or other network device establish all it takes is a LAN crossover cable.
is the key capability that enables the a specific host name when it connects
private, protected LAN by shielding to the network. (The host name can
private IP addresses from the public typically be entered via the front
network. panel of a LAN-enabled instru-
ment.) Large corporate intranets
DHCP automatically assigns an IP
usually have such a server, which
address to any device connected to
allows other devices to use the host
the network and also ensures that
name with DNS to find the device’s
no two devices receive the same IP
IP address and connect to it. If an
address. This is the default setting in
instrument’s IP address changes,
Windows XP and most LAN routers.
DDNS ensures a quick update of
It’s very simple and it works well 99
the DNS table of addresses. This
percent of the time—as long as the
approach has one major caveat:
default DHCP server on the network
DDNS will not typically be avail-
is up and running.
able on the small, secure networks
we recommend for test-system
applications.

108 11. Using LAN in Test Systems: PC Configuration


Configuring LAN with The Connection Expert includes an Debugging with I/O utilities
on-screen task guide that helps both
Agilent IO Libraries Suite occasional and expert users perform The Agilent IO Libraries Suite also
connection tasks. In most cases, you includes a set of utilities that will
The preceding section describes a
should be able to establish error-free help you perform various debugging
tedious process that could take hours
connections in less than 15 minutes. tasks from the PC (Figure 11.2):
(perhaps days) to complete for a
large test system. It all became much The Connection Expert makes • Interactive I/O. Allows you to query
easier with the Agilent IO Libraries programming easier, too. It can help instruments one command at
Suite. This is an enhanced version you find information relevant to your a time, sending commands and
of the Agilent IO libraries that simpli- instruments in popular development reading the responses.
fies and accelerates the process of environments such as C, C++, Visual
connecting test equipment to a PC. Basic, Visual Basic .NET, Agilent VEE • Remote I/O Server. Lets you connect
One of its greatest contributions is Pro and NI LabVIEW. The Connection to instruments that are attached to
a set of automated tools that detect Expert can also point you to a different PC that resides on the
connected instruments, configure numerous example programs written same network.
the interfaces and verify the connec- in various languages. Another nice
tions—even in test systems that mix • VXI Resource Manager. Helps you
touch: it lets you create an alias name
multiple interfaces and instruments configure the Agilent E8491 IEEE-
for each instrument so you don’t
from multiple vendors. 1394 PC link to the VXI interface.
have to change the source code if you
change an instrument’s IP address. • ViFind32 Debug Utility. Uses VISA
Using the Connection Expert You can even switch from GPIB to functions to find resources and
LAN connectivity and use an alias lists them in a console window.
The Agilent Connection Expert is that looks like the old GPIB address. These utilities are just one more
one of the most powerful tools in Using this feature, you can often way Agilent can help you stream-
the IO Libraries. Not only does it make older programs work via LAN line your test-system development
automatically discover connected without reconfiguring or recompiling activities.
instruments and configures the PC’s the code.
interfaces for communication, but it
also manages GPIB, RS-232, VXI, USB Figure 11.2. The Agilent Connection Expert provides quick, easy access
and LAN interfaces simultaneously. to connection utilities.

 We use “IO” rather than “I/O” in the


product name because most oper-
ating systems don’t allow the slash
character in file names.

www.agilent.com/find/open
109
Enabling communication with Conclusion
instruments
With LAN ports in most current
With connectivity completed and generation PCs and many new-gener-
verified, the next step is to ensure ation test instruments, connecting
and enable communication between the two is almost as simple as plug-
the PC and the instruments. As ging in a network cable—if you apply
one example, the VISA I/O API the capabilities and tools that are
can use two different methods to part of the Agilent IO Libraries Suite.
communicate with LAN devices: the
VXI-11 communication protocol and To discover more ways to simplify
raw TCP/IP socket communication. system integration, accelerate system
VXI-11 is the preferred choice when development and apply the advan-
moving existing (GPIB-based) code or tages of open connectivity, please
when you want to keep a consistent visit www.agilent.com/find/open.
programming style with GPIB instru-
ments. Sockets should be used when
the host PC does not support VXI-11.
Sockets also provide the highest level
of performance, but at the cost of
some programming complexity.

From the PC’s point of view, the VXI-


11 protocol creates an I/O connection
that looks and behaves like GPIB. In
practice, this means software written
for GPIB is likely to work on VXI-11
instruments. Almost all of Agilent’s
LAN-enabled instruments support
the VXI-11 protocol.

110 11. Using LAN in Test Systems: PC Configuration


12. Using USB in the Test and Measurement Environment

Introduction This simplicity spurred rapid growth


The Benefits of USB
in the number of PCs and peripheral
This chapter offers a closer look at devices that offer built-in USB.
the universal serial bus (USB) as a However, as digital devices began • Near-universal availability in
test-system connectivity option. For to demand more bandwidth, the 12 today’s PCs
a review of the comparative advan- Mbits/second top speed of USB 1.1
• Hot-plugging with auto
tages of LAN, GPIB and USB, please became a growing concern in some
discovery for true plug-and-play
refer to Chapter 2, Computer I/O applications. USB 2.0, introduced
Considerations. in 2001, dramatically expanded • Low cost
bandwidth with speeds up to 480
USB in the PC universe Mbits/second. USB 2.0 is backwards • Simple connection with no
compatible with USB 1.1, although configuration required
Chances are you’re already familiar this can lead to some confusion
with USB, thanks to its wide use in about data rates, as you’ll see below. • Flexible speed levels to
PC printers, scanners, cameras and accommodate a variety of devices
other digital devices. However, some
background on USB’s place in the PC
USB connections • Simultaneous connection of
up to 128 devices
universe might help you decide how With its intended use in consumer
and when to use USB for test and applications, USB is not only
measurement. inexpensive but also easy to use.
Connections are hot pluggable
The theoretical maximum number
The USB story (sometimes called hot swappable),
of devices in a single USB system is
so there’s no need to power down
128 (the PC plus 127 other devices).
On the timescale of computing before you add or change connec-
However, you can’t daisy-chain
technology, USB has been around for tions, and the PC auto discovers new
devices together as you can with
quite some time: the original version devices as soon as you plug them in.
GPIB. Rather, you can expand by
of USB was introduced concurrently And unlike GPIB, where you must
using a hub; typical hubs provide
with Microsoft Windows 95. USB’s assign a unique address identifier
ports for four to eight devices. To add
original goals included replacing to every device in the system (and
more devices, you can daisy-chain
the multiple types of interfaces then keep track of which device is where
additional hubs. Hubs can be either
in use in PCs and eliminating the if you reconfigure the system), every
self-powered or bus-powered; devices
complex configuration steps they USB device has an embedded serial
that require a significant amount of
sometimes required. Computers with number that the PC reads as soon as
power often require a self-powered
USB 1.0 first appeared in 1996, and you connect it.
hub to ensure adequate power levels.
Windows has supported USB ever
since. From a mechanical standpoint, USB
1.1 and 2.0 are identical; both use the
The USB standard has gone through same four-wire scheme (two power
two major revisions since version wires and a twisted pair for data),
1.0. USB 1.1, introduced alongside and any fully compliant USB cable
Windows 98, took advantage of the will work in any USB system, regard-
new Plug and Play connectivity in less of speed.
the operating system. All you needed
to do in most cases is attach the
connector and you’re ready to go.
(Nearly all PCs today, both desktop
and laptop, come with built-in USB
ports. You can also add USB cards to
older PCs.)

111
USB speeds Agilent support for USB The 82357B is a Hi-Speed, fully
compliant, hot pluggable USB device,
The USB 2.0 Specification encom- instrument connectivity so you can connect it whenever
passes all USB data transfer speeds: you need it, without rebooting your
To provide users with the utmost in
Hi-Speed (480 Mb/s), full-speed (12 PC. Instruments connected via the
convenience, Agilent has committed
Mb/s) and low-speed (a 1.5 Mb/s 82357B have GPIB-style VISA and
to providing USB connectivity as a
alternative designed for keyboards, SICL addresses, just like Agilent’s
standard feature in nearly every new
mice, and other low data-rate PCI- or older ISA-based GPIB cards,
test and measurement instrument. In
devices). Just because a device is so legacy programs in systems that
most cases, new instruments support
USB 2.0 compatible doesn’t auto- use these cards require no reconfigu-
480 Mb/s Hi-Speed USB, which
matically mean it can operate at ration or code changes.
delivers greater bandwidth and lower
480 Mb/s. The best way to verify the
latency (the time required to respond You’re not limited to locally avail-
speed of USB devices is to look for
to programming commands) than able instruments, either. With the
the official USB logo. Devices that
GPIB. Those few instruments that Agilent E5813A networked 5-port
are certified to run at one of the two
support full-speed USB (12 Mb/s) USB hub, you can access remote USB
original USB rates, 1.5 Mb/s or 12
offer bandwidth similar to GPIB with devices or instruments through your
Mb/s, should carry a white and blue
somewhat higher latency. standard LAN. With the E5813A
Certified USB logo (Figure 12.1).
Devices certified to run at 480 Mb/s connected to your PC and properly
You can also take advantage of USB
rates carry the red, white, and blue configured, those remote instruments
with your existing GPIB instruments.
Certified Hi-Speed USB logo. and devices will function as though
The Agilent 82357B USB/GPIB
they were locally attached.
Figure 12.1 USB logos identify the device’s
Interface (Figure 12.2) connects
speed rating GPIB instruments to a USB port on Agilent also provides a USB solution
your computer, giving you a way to for RS-232 instruments. The Agilent
control up to 14 GPIB instruments E5805A USB/4-port RS232 interface
from a laptop or other PC for each provides a direct connection from
82357B. the USB port on your notebook or
desktop PC to up to four RS232
instruments or devices.
Figure 12.2. Agilent 82357B USB/GPIB Interface
To simplify programming of instru-
ments over USB connections, Agilent
and other test equipment vendors
co-developed the industry standard
USB Test and Measurement Class
(USBTMC) and USB488 I/O proto-
The speed rating of hubs in a USB cols. These protocols, along with
system determines the operating Agilent’s IO Libraries Suite, allow
speed of the system. For instance, if you to easily switch from GPIB to
you connect Hi-Speed USB devices USB connections without making big
through a full-speed hub, the investments in new PC software or
maximum speed you can expect from rewriting existing programs. Aside
any of the devices is 12 Mb/s, not 480 from address conventions, your USB
Mb/s. To take advantage of Hi-Speed instruments will look and act just as
data rates, you must connect these they would under GPIB control.
devices through a Hi-Speed hub.

 USB Implementers Forum Web site,


www.usb.org.

112 12. Using USB in the Test and Measurement Environment


Setting up USB instruments Connecting instruments via USB were still communicating over a
GPIB interface.
with the Agilent IO The IO Libraries include the drivers
Libraries for USBTMC/USB488 devices as Additional software included with
the Agilent E5805 and E5813A
well as the 82357B USB/GPIB
The Agilent IO Libraries (which is Interface, so you’re ready to go as works with the Agilent IO Libraries
now included with most Agilent soon as you install the software. As to provide the same flexibility for
instruments, T&M software products you start plugging in instruments RS-232 instruments and remote USB
such as Agilent VEE Pro and connec- (or the 82357B interface), you’ll be instruments. These instruments and
tivity products such as the 82357B, presented with a dialog box that lets devices appear to be local to the PC
E5805A and E5813A) make USB you name each device with a human- and can be aliased as well.
measurement setups even simpler readable USB alias (Figure 12.3). The
by automating the connection and alias capability is a helpful way to To verify the connection with each
configuration process for you. The manage device names, since the stan- instrument, simply launch the
IO Libraries include three separate dard VISA resource naming conven- Agilent Connection Expert, the
direct I/O Application Programmer tion for USB devices can be rather configuration utility in the Agilent
Interface (API) libraries so you can cumbersome (USB0::2391::1031:: IO Libraries. Refresh the list of
choose the library that works best MY43000786::0::INSTR, for example). instruments if your instrument is
with your development environment: not already displayed, then choose
The alias capability also enables the “Verify This Instrument.” You can
• VISA (Virtual Instrument Software same test system software to work also launch an interactive I/O session
Architecture, an industry stan- on multiple automated test systems, with the instrument and send the
dard application programming provided the same alias names are *IDN? command, the standard
interface) used, such as the alias “DMM” for a instrument identification query
voltmeter. And if you have an existing in the Standard Commands for
• VISA COM (a version of VISA that program that communicates with an Programmable Instruments (SCPI)
conforms to Microsoft’s Common instrument over a GPIB or other non- command set. The instrument will
Object Model and IVI Foundation USB interface, you can create a VISA respond by identifying its manufac-
standards) alias that looks like a GPIB address, turer, model number, serial number,
such as “GPIB1::23::INSTR” and the and firmware revision.
• Agilent SICL (included primarily to
program will function as though it
support existing test systems; VISA
or VISA COM is the recommended
Figure 12.3. Example of the connection dialog in the Agilent IO Libraries
direct I/O API for new system
development)

www.agilent.com/find/open
113
Communicating with tion, which discourages lower-level, Similarly, the 82357B USB/GPIB
USB-connected devices error-prone interface manipulation interface looks and acts like a PCI/
operations. Consult the documen- GPIB adapter for typical instrument
You don’t need to worry about the tation for the instrument or I/O communication, so instruments
details of a USB connection, so most adapter for any limitations. connected to it have GPIB-style
programs written to talk to GPIB address names and act like any other
As mentioned earlier, an instrument GPIB-connected instruments. The
devices work with USB-connected
connected via a USB cable acts like source code is exactly the same as
devices without modification.
an instrument connected over a above, with the exception that the
However, if your program uses
GPIB bus, aside from a different I/O instrument address would be some-
low-level commands that affect the
address. Here’s some example C code thing like “GPIB0::23::INSTR” instead
entire GPIB bus (such as through a
that communicates with a USB- of “FuncGen.”
VISA session such as GPIB::INTFC),
connected instrument, either natively
you may encounter some unexpected
or with the E5813A networked 5-port
results. USB devices are optimized
USB hub:
for modern instrument communica-

#include <iostream>
#include <tchar.h>
#include <stdio.h>
#include “visa.h”

#pragma comment(lib, “visa32.lib”) /* include the visa32.lib


import library */

/* Error-checking routine */
void CHECKERROR(ViSession vi, ViStatus status)
{
char desc[256];
ViStatus err = 0;
if (status < 0)
{
err = viStatusDesc(vi, status, desc);
fprintf(stderr, desc);
viClose(vi);
_exit(status);
}
}

int _tmain(int argc, _TCHAR* argv[])


{
char idnResult[256];
ViSession rm = 0, funcGen = 0;
ViStatus err = 0;
viOpenDefaultRM(&rm);
err = viOpen(rm, “FuncGen”, VI_NO_LOCK, 0, &funcGen);
CHECKERROR(rm, err);
err = viPrintf(funcGen, “*IDN?\n”);
CHECKERROR(funcGen, err);
err = viScanf(funcGen, “%t”, idnResult);
CHECKERROR(funcGen, err);
printf(“The *IDN? string is %s”, idnResult);
viClose(funcGen);
viClose(rm);
return 0;
}

114 12. Using USB in the Test and Measurement Environment


In an RS-232 scenario, the E5805A
USB/4-port RS-232 interface will
look like a standard RS-232 port on
your PC, and instruments connected
to it will have RS-232-style address
names and act like other RS-232-
connected instruments:

/* Same header and error-handling code as above... */

/* Do a simple *IDN? Instrument Identification Query */


int _tmain(int argc, _TCHAR* argv[])
{
char idnResult[256];
ViSession rm = 0, dmm = 0;
ViStatus err = 0;
viOpenDefaultRM(&rm);
err = viOpen(rm, “ASRL1::INSTR”, VI_NO_LOCK, 0, &dmm);
CHECKERROR(rm, err);
/* don’t bother checking errors for these, nothing will happen until communication is attempted
*/
err = viSetAttribute(dmm, VI_ATTR_ASRL_PARITY, VI_ASRL_PAR_NONE);
err = viSetAttribute(dmm, VI_ATTR_ASRL_BAUD, 9600);
err = viSetAttribute(dmm, VI_ATTR_ASRL_DATA_BITS, 8);
err = viSetAttribute(dmm, VI_ATTR_ASRL_STOP_BITS, VI_ASRL_STOP_ONE);
err = viSetAttribute(dmm, VI_ATTR_ASRL_FLOW_CNTRL, VI_ASRL_FLOW_DTR_DSR);
/* clear out any old data and prepare the instrument */
err = viFlush(dmm, VI_IO_IN_BUF_DISCARD | VI_IO_OUT_BUF_DISCARD);
CHECKERROR(dmm, err);
err = viPrintf(dmm, “*CLS\n”);
CHECKERROR(dmm, err);
/* do the identification query */
err = viPrintf(dmm, “*IDN?\n”);
CHECKERROR(dmm, err);
err = viScanf(dmm, “%T”, idnResult);
CHECKERROR(dmm, err);
printf(“The *IDN? string is %s”, idnResult);

viClose(rm);
return 0;
}

www.agilent.com/find/open
115
Conclusion
The low cost and simplicity of
USB—and the dramatic speed
improvements of Hi-Speed USB
make—make USB an ideal connec-
tivity option for simple, ad hoc test
systems. Achieving expected data
rates does require some attention to
the hubs used in a USB system; the
system will operate only as fast as
the fastest hub, so make you’re your
hubs are also Hi-Speed rated. Agilent
offers comprehensive support for
USB-based test systems, including
built-in USB ports in many instru-
ments and support for USB in the
Agilent IO Libraries.

116 12. Using USB in the Test and Measurement Environment


13. Using SCPI and Direct I/O vs. Drivers

Introduction In system development, the use of Sketching the big picture


standards offers two key benefits:
This chapter outlines the relationship it accelerates development by The diagram in Figure 13.1 is our
between input/output (I/O) software, maximizing software reuse and starting point. It connects the
application software and the ability it enhances system flexibility by conceptual side of the discus-
to maximize instrument interchange making it easier to use different sion—layers of software and hard-
and software reuse in present and instruments. Standards also help ware—with the actual test system,
future systems. It builds on the you achieve your goals for system which includes the computer, I/O
information presented in Chapters 9 functionality and performance by cable and test equipment. Within this
through 12, which provide essential letting you combine methods such as model, commands and information
background on the use of LAN in test direct I/O with Standard Commands flow from the application through the
systems. for Programmable Instruments, or software and hardware layers, down
SCPI (see Chapter 3), and instrument the cable, to the instrumentation and
Deciding how to driver-based communication within a back again.
single application.
communicate Focusing on the upper-left of the
The best choice of I/O software diagram, the application is the
Once you’ve chosen an I/O interface depends on factors such as the program—purchased, downloaded
for your system—GPIB, LAN, USB number and type of instruments in or written by you and running on a
or a combination—the next step is the system, the functionality to be programming language—that controls
deciding how to enable connectivity used within each instrument, the the test system. The I/O software
and achieve communication between system’s throughput requirements layer is the translator that enables
the host computer and the instru- and the number of systems to be communication between the appli-
ments in the system. Recently, the deployed. It also depends on which cation and the physical I/O hard-
alternatives for connectivity and application development environ- ware—the GPIB, LAN, USB, VXI, PXI
communication have been shifting; ment you’re using and the current or RS-232 interface in the PC. These
vendor-specific commands, libraries level of your programming skills. three elements reside within the host
and interfaces are giving way to PC and enable connectivity with the
industry-standard command sets, test equipment.
application programming interfaces
(APIs) and instrument drivers. That’s all necessary to enable
connectivity, but it isn’t sufficient to
Figure 13.1. Three essential elements of instrument commu nication reside within the system’s
achieve communication. It’s similar
host PC to the story of placing a phone call
to a friend in another country: you
pick up the handset, hear the dial
Application tone and dial the number—and
then your friend’s mother answers
I/O Software the phone. Your inability to speak
each other’s language prevents
I/O Hardware meaningful conversation. You have a
connection but you haven’t achieved
communication.

It’s the same with test systems. Even


if an application has connectivity
with an instrument, it must use the
Instrument
right commands and protocols to
achieve communication, control, data
transfer and so on.

117
Enabling connectivity Standardizing the API API; it exposes the VISA API to the
application layer through use of the
In the early days of automated To make it easier to create mixed- Component Object Model.
testing, system controllers—called vendor test systems, a group of
desktop calculators or instrument instrument vendors created the The result: VISA COM gives you
controllers— had limited processing Virtual Instrument Software the freedom to pick from the most
and sparse memory. To keep the Architecture (VISA). This provided popular I/O configurations and
syntax as simple as possible, equip- a standardized API that allowed also choose from a wealth of “COM
ment vendors used short commands, control of instruments through a friendly” languages such as C#,
initially in binary and later in ASCII. common interface—directly or with Visual Basic 6 and Visual Basic .NET.
drivers. From the application’s point As we’ll discuss later, the application
Different manufacturers defined of view, every vendor’s VISA inter- development environment (ADE)
their own command strings and these face looks the same. you choose will influence the best
were typically unique to the specific choice of library and API for your
capabilities of each instrument. In One important caveat goes with application.
a system, replacing an instrument VISA: Although the VISA API is
with one from another manufacturer, standard, each vendor employs Achieving communication
or even a new-generation product different layers beneath the VISA
from the original maker, could mean layer to control the hardware. In Once you’ve enabled connectivity,
completely rewriting the system addition, each vendor may have it’s time to decide how to achieve
software. made enhancements to enable unique communication between the host
features in its application layers. To computer and the system instru-
Instrument commands aren’t the make it all work, the version of VISA mentation. The two alternatives are
whole story, however. Enabling installed on the host computer must direct I/O and instrument drivers.
connectivity between a controller be compatible with the I/O hardware. Direct I/O creates an explicit connec-
and the system instruments requires (In contrast, this points to another tion to each instrument, which
additional layers of software. advantage of PC-standard I/O such makes it faster but limits instrument
Historically, the I/O software layer as LAN and USB: any version of VISA interchange and software reuse. Most
contained libraries such as the that supports those interfaces will instrument drivers utilize direct I/O
Standard Instrument Control Library work because the low-level drivers and SCPI but sometimes hide that
(SICL) or NI-488. The application are standardized.) connection. Generally speaking,
used these libraries to achieve direct drivers trade decreased flexibility
communication with an instrument. (and possibly speed) for improved
Each vendor had a proprietary appli- Expanding freedom of choice interchange and reusability. However,
cation programming interface (API) in most situations you can use
As I/O development was proceeding
that communicated exclusively with both instrument drivers and direct
in the test and measurement
its own I/O interfaces. This made I/O to achieve the best balance of
industry, the PC industry was
it difficult for system developers speed, flexibility and measurement
pursuing independence in both
who were building mixed-vendor functionality.
I/O and programming languages.
test systems—and, of course, many
Microsoft created the Component
systems used (and continue to use)
equipment from multiple vendors.
Object Model (COM), which is a Standardizing direct I/O
software architecture that allows
components made by different An early attempt at improving
 For more about the evolution of software vendors to be combined consistency and ease of use came
instrument control, see Chapter 3, into a variety of applications. COM in 1989 when Hewlett-Packard
Understanding Drivers and Direct I/O. is not dependent on any particular introduced an instrument commu-
programming language. nication language called the Test
& Measurement Systems Language
To incorporate the advantages of (TMSL). HP and eight other manu-
language independence, Agilent
initiated the creation of VISA
COM as a companion to the VISA
standard. VISA COM is an object-  HP spun off its test & measure-
oriented representation of the VISA ment businesses as part of Agilent
Technologies in 1999.

118 13. Using SCPI and Direct I/O vs. Drivers


facturers joined forces to generate high-level, instrument-specific (or were later expanded to address
a universal approach to instrument instrument class-specific) piece of non-VXI instruments. Conforming
control, using TMSL as the starting software that enables communication drivers always perform I/O
point. SCPI was the result of that between a PC and an instrument. For through the VISA library. The
collaboration. software developers, drivers often VXIplug&play WIN32 driver
simplify programming and shorten specification works in all popular
The implementation of SCPI within development time by guiding the languages and is today’s most
an instrument’s firmware has made programmer through the necessary widely used driver architecture.
the programming syntax for direct I/ steps and describing the capa-
O much more robust and predictable. bilities of the instrument within the • IVI-C. IVI-C has two distinct drivers.
The syntax defines a strict hierarchy programming environment (rather The term is generally applied
that specifies consistent commands, than in a manual, as would be the to drivers based on proprietary
responses and data formats across case with SCPI and direct I/O). tools from National Instruments
instrument models. These commands (NI). With the advent of the IVI
and responses are defined for source, First-generation drivers were standards, NI updated its tools
sense and switch devices. Today, vendor-specific and typically worked to conform with the standards,
SCPI is still the most-used form of only with a specific ADE. (Numerous but many systems based on the
instrument control (Figure 13.2). legacy application programs still use proprietary tools are still in use.
these proprietary drivers.) Today, To enable reuse and interchange-
however, three types of standardized ability, IVI-C requires additional
Improving interchange and instrument drivers are available. software to patch around its core
reuse These work with multiple ADEs DLL technology, which does not
and enable communication with an directly support software inter-
SCPI was a big improvement, but the instrument through any vendor’s I/O changeability. An application must
subsequent development of instru- hardware. call an intermediate driver (an
ment drivers has taken interchange “IVI-C class driver”) which then
and reuse to new levels. An instru- • VXIplug&play. Originally developed calls the specific instrument driver
ment driver (or just “driver”) is a for modular VXI instruments, these to accomplish the function.

Figure 13.2. This block of Visual Basic 6 code uses SCPI and VISA COM I/O to communicate with a function generator.

Dim Fgen As VisaComLib.FormattedIO488


‘ Code removed: Set up the connection to the instrument
With Fgen

WriteString “*RST” ‘ Reset the function generator


IO.Clear ‘ Clear errors and status registers
WriteString “FUNCtion PULSe” ‘ Select pulse waveshape

WriteString “OUTPut:LOAD 50” ‘ Set the load impedance to 50 Ohms (default)


WriteString “VOLTage:LOW 0” ‘ Low level = 0 V
WriteString “VOLTage:HIGH 0.75” ‘ High level = .75 V

WriteString “PULSe:PERiod 1e-3” ‘ 1 ms intervals


WriteString “PULSe:WIDTh 100e-6” ‘ Pulse width is 100 us
WriteString “PULSe:TRANsition 10e-9” ‘ Edge time is 10 ns (rise time = fall time)
WriteString “OUTPut ON” ‘ Turn on the instrument output

For I = 0 To 18 ‘ Vary edge by 5 nsec steps


WriteString “PULSe:TRANsition “ & (0.00000001 + I * 0.000000005)
Sleep 300 ‘ Wait 300 msec

Next I

End With

www.agilent.com/find/open
119
• IVI-COM. This standard does the Exploring the application mated) that are typically performed
most to enable interchangeability during the early phases of product
and reuse by leveraging the COM alternatives development or during design
computer standard. IVI-COM verification.
Shrink-wrapped software often
drivers integrate with standard PC
provides convenience in measure- Applications such as the free Agilent
component architecture software
ment and analysis at the expense of IntuiLink connectivity software and
and enable control of instruments
performance and flexibility. Such low-cost Agilent BenchLink make
from familiar, conventional ADEs
products are often a good fit with the it easy to perform semi-automated
that provide major productivity
small or one-off systems used during measurements, collect data and
improvements. IVI-COM drivers
product development. In contrast, analyze results from a wide variety
that control VXI or GPIB instru-
custom-built software is often the of instruments. Both applications
ments use VISA (either VISA COM
best answer for applications such as utilize either drivers or direct
or VISA-C). Because many new
design verification or manufacturing I/O—transparently—to enable instru-
instruments include computer-
test that require high performance ment communication, control and
standard I/O such as LAN and
and maximum flexibility. data transfer.
USB, IVI-COM drivers for non-GPIB
instruments are not required to
• IntuiLink. This connectivity applica-
use VISA, although many do. Simplifying basic analysis tasks tion simplifies data transfers by
If you are unsure of which I/O There are alternatives to general- adding a toolbar to popular PC
technology an application or driver purpose development environ- applications such as Microsoft
is using, take a look at the connec- ments. One example is “targeted Word and Excel. IntuiLink enables
tion string or “instrument address” applications,” which address specific direct retrieval of data and images
used for instrument communication. measurement or technology domains, from a measurement instrument,
VISA-type strings look like “TCPIP: or specific phases or tasks in the letting you remain in the PC
34980A.tm.agilent.com::inst0::INSTR” product development lifecycle. application and use its familiar
while SICL-based strings are similar to These applications include software interface. IntuiLink also eliminates
“lan[34980A.tm.agilent.com]:inst0.” designed to make the infrequent barriers between instruments and
measurements (manual or semi-auto- PCs by supporting GPIB, USB, LAN
and FireWire interfaces.

Figure 13.3. Agilent BenchLink Data Logger provides spreadsheet-like test set up and real-time • BenchLink. This application is
display and analysis of measurements. available in versions that support
numerous instruments. BenchLink
is a Windows-based application
(Figure 13.3) that uses a familiar
spreadsheet format to streamline
data collection, presentation and
analysis. It can communicate
with measurement instruments
via LAN, USB or GPIB using the
included I/O software.

There are higher-cost alternatives


to BenchLink, including instru-
ment-control software for functional
testing and domain-specific applica-
tions. These range from general test
executives to application-specific
programs such as cell phone regula-
tory testing tools. All serve to further
reduce the burden of instrument
programming, connectivity and
communication.

120 13. Using SCPI and Direct I/O vs. Drivers


Maximizing performance • On-screen help. The IntelliSense
Comparing development feature and the “F1 help”
environments and flexibility capability work with COM- and
.NET-based third-party drivers
You can pick from a wide variety
The software environment you and software. As an example, the
of alternatives that support the
choose will have a significant impact IntelliSense window for a driver
creation of custom measurement
on the time, effort and cost required will show all available operations,
software. These range from test
to create and maintain a test system. a brief description of each, and a
automation applications to full-
Development environments are summary and description of all
featured development environ-
either graphical or textual. Graphical allowed parameters. Depending on
ments that utilize either graphical
environments such as Agilent VEE the driver or component, pressing
or textual programming. Your
Pro and NI LabVIEW use a schematic the F1 key may open a new window
preferred approach will determine
approach, which is regarded as that presents an online help
the best choice for instrument
being easy for engineers to learn. manual for the driver. Using this
communication.
You manipulate icons or objects that type of on-screen, context-sensitive
represent commands or functions help is much faster than thumbing
and connect them with program- Microsoft Visual Studio through a printed programming
flow lines. This makes it easier to manual.
visualize the paths of execution and Visual Studio is a textual program-
interaction; it also shields you from ming solution that offers an exten- There is one downside in test-system
the underlying syntax. What’s more, sive range of developer tools and applications: it can be difficult to
T&M-specific graphical environments built-in help capabilities that can use C APIs with the new .NET-based
have extensive I/O and instrument accelerate development of Windows- languages in Visual Studio. The latest
drivers as well as measurement- based applications. Its integrated releases of Microsoft programming
related math and graphing capabili- development environment provides a languages utilize .NET technology to
ties. Graphical programming is best consistent interface for all supported communicate with drivers and third-
suited to small- and medium-sized languages, including Visual Basic, party software—and .NET is rapidly
applications—the visual interface C++ and C#. As a standardized, phasing out C API technology. This
tends to become difficult to under- mainstream development product, affects the C API version of the
stand with large programs. Visual Studio offers several VISA I/O library as well as IVI-C and
advantages: VXIplug&play drivers. To get around
In contrast, textual programming has this problem, Agilent provides a
a steeper learning curve because • Open. Because Visual Studio is .NET wrapper for the VISA API. The
it requires detailed knowledge of a based on open, pervasive stan- wrapper is available as a free down-
language’s commands and syntax. dards, it can communicate with load from www.agilent.com/find/iolib;
However, because most textual practically any other programming it is also included in the Agilent IO
languages are based on open stan- technology. As a result, thousands Libraries.
dards, they offer a greater selection of of third-party tools—software,
development environments, software drivers and so on—are available to
tools and training opportunities. support your development efforts.
There also tends to be a wider variety
of available third-party drivers, tools • COM-friendly. Visual Studio works
and add-ons. Textual programming very well with programming
is often the best choice for large, technologies that are based on
comprehensive programs because it Microsoft’s COM technology. This
is easier to navigate and comprehend. includes VISA COM and IVI-COM.

In the past, textual programming


produced applications that had
pronounced speed advantages—at
runtime—over those created with
graphical programming. Today,
however, there is less difference in
runtime speeds between applications
created with either approach.

www.agilent.com/find/open
121
Visual Studio with Agilent T&M • Instrument Explorer. This tool makes Agilent VEE Pro
Toolkit it easy to see and edit the instru-
For those who want an alternative to
ment I/O configuration and initiate
The Agilent T&M Toolkit 2.0 with test communication with instruments. textual programming, Agilent VEE Pro
automation extends the .NET-enabled is a powerful, easy-to-use graphical
• IO Monitor. This utility makes programming environment that accel-
versions of Visual Studio with a suite
it much easier to use instru- erates the process of building and
of integrated, easy-to-use software
ment-control software and programming test systems (Figure
tools and components—project
instrument drivers—IVI-COM and 13.5). To create a program, you
wizards, APIs, class libraries,
VXIplug&play—and diagnose prob- choose high-level graphical objects
widgets, graphs, drivers and more.
lems by letting you watch both the from a huge library and connect
This creates an environment that
underlying direct I/O commands them with lines or “wires.” The wire
simplifies the process of incorpo-
that are sent to the instrument and connections specify functionality
rating tests and measurements
the resulting data that is returned and sequences within intuitive block
into custom applications. Using
(Figure 13.4). diagrams. Because VEE Pro is an open,
T&M Toolkit 2.0 within the Visual
Studio environment lets you use standards-friendly environment, it
In all, the combination of Visual also offers several advantages in test
your preferred textual programming Studio and T&M Toolkit eliminates
language and integrate your new system development:
many of the difficulties often associ-
code with existing code written in ated with connecting to and control-
other languages. ling test equipment from a custom
application.
T&M Toolkit 2.0 offers several other
capabilities that speed and simplify
system development: Figure 13.4. T&M Toolkit’s IO Monitor traces I/O layers for Agilent’s VISA, VISA COM, SICL and SICL
Detail, helping you find bottlenecks in your source code.
• DirectIO class. This is the easiest
way to send commands directly to
an instrument.

• Wrapped VXIplug&play drivers. This


integrates the drivers into .NET
with full IntelliSense and F1 help
capabilities. T&M Toolkit also
recognizes and uses IVI-COM
drivers, which have IntelliSense
built-in.

122 13. Using SCPI and Direct I/O vs. Drivers


• Direct I/O. Through its easy and Assessing I/O software The other factor is access to instru-
powerful Direct I/O capability, VEE ment functionality. Drivers typically
Pro provides excellent support alternatives cover a subset of an instrument’s
of direct I/O for control of any total feature set—and this is often
Our ultimate goal is to minimize the
standard instrument and many limited to the most commonly
amount of time you have to spend
vendors’ PC plug-in cards. used functions. In contrast, the
sorting out which I/O libraries or
combination of direct I/O and SCPI
• Instrument drivers. VEE Pro supports drivers to use in your test systems.
commands can typically access 100
industry-standard drivers such Today, however, that effort is
percent of an instrument’s program-
as IVI-COM and VXIplug&play. unavoidable—but we can offer a few
mable functions, no matter how
It includes support for nearly suggestions that will simplify the
arcane. If you prefer the advantages
one thousand drivers, supporting process.
of drivers but need to access unsup-
popular instruments from more ported features, it is possible to use
than 70 manufacturers. Instrument drivers vs. direct I/O both methods within an application.
• COM and .NET. No familiarity with When comparing drivers and direct
.NET programming languages is I/O, there are two key factors to ADE vs. I/O API
required to utilize these capa- consider. One is a tradeoff between
bilities. VEE Pro takes care of The ADE you select will affect the
speed of development and speed
the details, ensuring successful best choice of I/O library and API for
of execution: drivers contribute to
interaction with both COM and your application. Table 13.1 shows
faster development while direct I/O
.NET software. the various I/O APIs that Agilent
enables faster execution.
supports and, for each ADE, high-
lights the recommended library as
Figure 13.5. With its intuitive graphical programming and extensive support for both direct I/O and well as the preferred and historical
instrument drivers, Agilent VEE Pro simplifies and accelerates test system programming. alternatives.

As one noteworthy example, we


recommend VISA COM over the
VISA API when using Visual Basic
6 because VISA COM is an object-
oriented, hierarchical view of the
VISA API. Using the COM version
means you don’t have to add the .bas
file to the VB project (though the
reference is needed) and VISA COM
allows for the use of context-sensitive
IntelliSense help.

www.agilent.com/find/open
123
ADE vs. instrument driver standard. These represent the Conclusion
past, present and future of driver
As mentioned earlier, three types of technology. Open standards such as COM and
standardized instrument drivers are LAN have achieved widespread adop-
available: VXIplug&play, IVI-C and To accelerate test-system develop- tion in the computer world and are
IVI-COM. These work with multiple ment, we recommend using the latest now shaping the future of test-system
ADEs and enable communication IVI-COM drivers and VXIplug&play development. Standards accelerate
with an instrument through any WIN32 drivers for instrument system development by maximizing
vendor’s I/O hardware. control. The IVI-COM driver tech- software reuse and enhance system
nology is the only one built on a flexibility by making it easier to swap
Reading from left to right, Table 13.2 PC-standard architecture. A compo- out instruments—different models
shows a continuum that ranges from nent driver built on COM works in all and even different brands. Standards
least to most standardized across popular PC languages and most T&M also enhance system functionality
three generations of drivers—propri- languages. What’s more, it utilizes the and performance by letting you
etary, T&M standard and PC-industry most popular types of I/O and can be utilize direct I/O, SCPI and drivers
used in the latest .NET technologies. within a single application.

Your choice of development environ-


Table 13.1. ADEs and recommended I/O libraries ment can make it easier to incorpo-
rate tests and measurements into
Programming language Recommended I/O library Supported alternatives custom applications. If you prefer
textual programming, Visual Studio
Preferred Historical
with Agilent T&M Toolkit eliminates
Visual Basic .NET, C# and T&M Toolkit DirectIO 1
VISA COM — many of the problems associated
other .NET languages VISA with connecting to and control-
Visual C/C++ VISA VISA COM SICL ling test equipment. If you prefer
Visual Basic 6 VISA COM VISA SICL graphical programming, Agilent VEE
Pro is an open, standards-friendly
1 Agilent T&M Toolkit 2.0 is a set of measurement and test tools and components for the Microsoft Visual Studio environment that supports direct I/O
.NET development environment. The T&M Toolkit DirectIO class enables instrument connections from within and instrument drivers as well as
Visual Studio.
COM and .NET technologies.

Table 13.2. ADEs and their recommended instrument drivers

Proprietary T&M Test & Measurement Component PC


(specific to one language) (based on T&M standards) (based on PC
standards)
LabVIEW Plug & Play LabWindows/CVI Plug & Play IVI-COM
(VXIplug&play GWIN) WIN VXIplug&play
VEE Panel Drivers

124 13. Using SCPI and Direct I/O vs. Drivers


14. Using LAN in Test Systems: Applications

Introduction Sharing instruments over an Sharing instruments over a VPN


unprotected LAN Although sharing instruments over a
This chapter offers advice on
balancing cost, convenience and The quickest and easiest way to regular LAN is fairly simple, it’s not
security in three common LAN share test equipment over a network secure—and exposing the instru-
scenarios: sharing instruments, is to simply plug a LAN-enabled ments directly on the Internet is
remote monitoring and data acquisi- instrument into the local intranet. strongly discouraged. Most modern
tion, and functional test systems. Most intranets will auto-configure LAN instruments have some protec-
These discussions include a look at Agilent’s LAN instruments so that tion against the common viruses
the issues of public versus private they can be accessed from PCs and Internet worms, however it is
networks and wired versus wireless by their host name with a VISA prudent to protect your equipment
networks. In addition, advice on VXI-11 address (such as “TCPIP:: from attack.
configuring a virtual private network Jeffs_34980a.sanfran.tmresearch.
is provided, along with a comparison You can make a local network secure
com::inst0::INSTR”). If the host name
of data rates over various network through a variety of methods that
is unknown or the intranet doesn’t
and protocol combinations. isolate it from outside access (see
support auto-naming of computers,
Chapter 10, Using LAN in Test
instruments can be reached via the
Scenario 1: Sharing IP address they are assigned by the
Systems: Network Configuration),
although this of course eliminates
instruments local intranet, and local LAN instru-
ments can be automatically found
the possibility of sharing physically
separated resources.
Sharing access to instruments or using the Agilent Connection Expert
devices under test is one of the most utility provided with the Agilent IO To accomplish secure, long-distance
obvious benefits of connecting test Libraries Suite connectivity software sharing, you can deploy a LAN router
equipment over a LAN and, by exten- package. that supports virtual private network
sion, the Internet. However, you need (VPN) end-points with roaming
As noted earlier, most Agilent
to consider the security implications clients. A VPN end-point feature
LAN-enabled instruments have web
before exposing instruments and test means that the router can terminate
servers built in that allow access to
data to any network and the public one end of a secure, virtual “tunnel”
and control of the instrument from
Internet in particular. between two points on the Internet
a remote client via a web page. The
or intranet. These endpoints are
only information required to connect
often used to connect geographically
is the host name or IP address of the
separated offices of an organiza-
instrument and the only software
tion into one larger, virtual local
required is a web browser. Moreover,
area network. In addition, roaming
many of these instrument web pages
client capability means that the VPN
support simple cut-and-paste opera-
end-point is also optimized to allow
tions for sending data to or retrieving
remote PCs to create a direct connec-
data from the instrument.
tion to the router’s VPN end-point,
rather than just having two VPN-
capable routers configured to talk to
each other.

125
Figure 14.1 shows the physical layout 4. Configure your PC. For Windows By default, the VPN client PC can
of such a setup, and here are the XP and Vista, use the “Create access only the virtual network
basic configuration steps: New Connection” task in the task behind the VPN router when the
pane of the Network Connections VPN connection is active. However,
1. Physically connect the router utility that is accessible from the it is possible to configure Windows
and instruments as illustrated in Windows Control Panel. When XP/Vista so that both networks can
Figure 14.1. prompted by the wizard, use the be accessed at the same time, with
public IP address or host name of Windows deciding which connection
2. Via the web interface or other
the router. to use based on the IP address of the
means, configure the VPN router’s
remote device. VPN routers typically
basic DHCP (Dynamic Host 5. After creating the connection, use non-routable, private network
Configuration Protocol) and right-click the new VPN connec- addresses in the range 192.168.x.x
other network settings to create tion and configure the VPN type, or 10.0.x.x for the private networks
a simple, private network on tunnel name and password/key they create. If the local intranet also
which the instruments (and PC you configured on the router. uses private addresses, care must
clients connected via VPN) can
be taken to configure the subnet of
communicate. See Chapter 10 for A VPN router configuration for
the VPN router’s private network
an example configuration. instrument sharing protects the
so that it doesn’t conflict with the
instruments on the private side of
3. Configure the router to have a intranet, otherwise the PC client
the router from public intranet/
VPN end-point to give roaming won’t be able to route traffic to the
Internet access but gives PCs config-
users a connection point. proper network interface (either the
ured with the VPN’s parameters and
Windows XP and Vista provide real network interface or the virtual
passwords unlimited access to those
a basic VPN client that supports network interface created by the VPN
instruments. (Note that for the dura-
the L2TP/IPsec and the PPTP connection).
tion of the VPN session, the external
VPN protocols, so pick a VPN client PC has two IP addresses—one
configuration using one of those for the VPN connection and one
protocols unless you have a for the standard intranet/Internet
different preferred VPN client. connection.)
(See “Configuring a VPN” for
more on choosing a protocol.)

Figure 14.1. Using a VPN router to share LAN instruments securely

Router
with VPN
endpoint
Sharable LAN
instruments
PCs using
the protected,
sharable VPN tunnel
LAN instruments
Public Private
Ethernet Ethernet
port port(s)

Corporate intranet and/or Internet

126 14. Using LAN in Test Systems: Applications


If you plan to expose instruments on Scenario 2: Remote By keeping the test system controller
the Internet via a VPN router, you’ll nearer to the engineer responsible
need to work with your network monitoring and data for maintaining the data acquisition
administrators to configure the acquisition system (see Figure 14.2), you can
firewalls to allow such direct Internet dramatically shorten the turnaround
connections. Your organization may The marriage of LAN technology time for follow-on configuration
have specific acceptable hardware and LAN-enabled instruments changes. Although this arrangement
lists or other policies for such presents an ideal solution for many results in all the acquired data being
configurations. applications in data acquisition and transferred over the network, TCP/IP
remote monitoring. For example, and Ethernet are optimized for such
Also, when selecting a VPN router, the Agilent 34980A multifunction data transfers and there is little or no
bear in mind that capabilities and switch/measurement unit combines a performance penalty for keeping the
performance vary. For instance, most built-in digital multimeter, a modular data acquisition system controller
routers support multiple simulta- mainframe that can be reconfigured remote from the data acquisition
neous VPN connections, depending for an endless variety of switching instruments.
on the model and the VPN protocol. or data acquisition needs and a LAN
However, performance can suffer port for complete remote control of
if you initiate multiple connections the instrument.
through a lower-cost router, some
of which have data rates less than a Before you deploy a remote moni-
megabit/second for VPN connections. toring or data acquisition solution,
Higher-end models have hardware it’s important to temporarily co-
co-processors that handle the encryp- locate the controller PC, the remote
tion necessary to make the VPN instruments, system wiring, sensors
secure, which provides better VPN and any devices under test in order
throughput. to complete the initial configuration
tasks. Once these major configuration
steps are complete, you can usually
make most minor changes via the
software in the controller PC.

Figure 14.2. Recommended network design for remote monitoring and data acquisition applications

Remote
router
with VPN
endpoint
Public
Ethernet
port
Private Remote data DUT or data
Data acquistion VPN tunnel Ethernet acquisition acquistion
system controller port(s) instruments point

Intranet
Test (wired or wireless)
engineer and/or Internet

www.agilent.com/find/open
127
Remote monitoring and acqui- gain antennae are available for the the system controller computer
sition over wired connections common 802.11b/g wireless Ethernet local to the instruments and point
standards that can, when properly of measurement so that information
If the point of measurement is paired and aligned, create a long and control is not lost for periods
physically located near or in the distance wireless Ethernet bridge of time, rather than keeping the
local corporate intranet, a wired between two points, connecting two controller local to the test engineer
LAN connection is the best choice. In Ethernet networks as though they for easier maintenance.
most situations, using a VPN router were local (see Figure 14.3).
to provide security is desirable to Choosing a wireless technology
It’s important to note that long Unfortunately, choosing a WLAN
prevent unauthorized access to the
distance WLAN installations require technology is not a simple matter,
measurement equipment and to
specialized knowledge and equip- since there is a confusing variety of
prevent infection by viruses. See
ment, and they are highly dependent WLAN standards, both implemented
Figure 14.1 for the recommended
on terrain and other environmental and under development. Although all
VPN configuration for such a data
factors. Due to FCC restrictions on of these stem from the IEEE 802.11
acquisition system.
unlicensed equipment in the 2.4 base standard, you can see from
GHz radio band in the United States, Table 14.1 that the various single-
Remote monitoring and the signal cannot be amplified to letter suffixes represent a variety of
acquisition over wireless achieve greater transmission range, technologies and protocols within the
but effective range can be increased
connections by using a pair of highly directional
802.11 framework.

(high-gain) antennae. As you plan a wireless implementa-


For a data acquisition point that is
tion, keep in mind that the data rates
not co-located with your LAN, you
Because radio signals in the low giga- you’ll achieve in a real-world system
might be able to use a relatively low-
hertz range can be impeded by water, are likely to be, at best, half of the
cost wireless LAN (WLAN) solution.
such signals are prone to degradation rate of the physical layer speed (5
If the data acquisition point is within
by changes in atmospheric condi- Mbps for 802.11b, for example). In
10 miles of the nearest line-of-sight
tions and terrain. Consequently, it addition, signal loss can limit the
point of the corporate intranet, a
is not safe to assume an “always-on” speed negotiated between two WLAN
commonly available wireless solution
connection for a long-distance instal- radios, and error correction can
may be possible. Off-the-shelf, high
lation. This might require keeping further reduce effective bandwidth.

Figure 14.3. Establishing a remote data acquisition connection via wireless LAN

Wireless bridged Ethernet network

Paired wireless routers


in 802.11 bridging mode

Local corporate Wireless Ethernet


intranet with radio signals Remote data
data acquisition acquisition
system system
controller
Bridged Bridged
Ethernet Ethernet
port 802.11b/g (high gain) port
antennae

128 14. Using LAN in Test Systems: Applications


Addressing wireless security The first attempt at a security mecha- Microsoft recommends deploying
A quick perusal of Table 14.1 should nism for WLAN was wireless equiva- either WEP plus 802.1x or WPA (or,
convince you that security is an lent privacy (WEP). At its simplest, assumedly, 802.11i when available)
important—and complex—issue in it merely describes an encryption for secure, scalable solutions. Of the
wireless networking. Authentication and data integrity solution through two, only WPA and its successors can
(are all talking parties who they a private, pre-shared encryption key be used securely in non-enterprise-
say they are), encryption (can any of 64 or 128 bits (actually 40 or 104 level installations because 802.1x
unauthorized listener understand the bits when the initialization vector relies on a RADIUS server, such as
communication), and data integ- is factored out). Add-ons such as Microsoft Windows Active Directory
rity (can any unauthorized party 802.1x permit scalable, enterprise- (the technology that centrally
interject or change data in a commu- level authentication. Unfortunately, manages Windows passwords
nication session) are all concerns a flaw in the WEP design allows it and identities for many corporate
when anyone can listen on or talk to be reliably broken if enough data intranets).
through a public medium such as the encrypted with the same encryption
airwaves. key is intercepted. This means that
any wireless channel encrypted with  Joseph Davies, Deploying Secure
WEP could eventually be compro- 802.11 Wireless Networks with
mised if enough data passes across Microsoft Windows, Microsoft Press
the channel. © 2004

Table 14.1. Wireless networking standards

Standard Type Description


802.11b 11 Mbps Ethernet in the 2.4 GHz radio band The most common WLAN standard; being replaced by the faster
802.11g.
802.11g 54 Mbps Ethernet in the 2.4 GHz radio band The fastest-growing WLAN standard; still operates in the crowded 2.4
GHz radio band.
802.11a 54 Mbps Ethernet in the 5 GHz radio band A standard that was approved before 802.11 b/g but has taken longer
to roll out. Its primary benefit is operation in the less crowded 5 GHz
radio band, but it is not capable of the range of 802.11b for the same
power level and is more readily absorbed.
802.11 Weak wireless security protocol Wired Equivalent Privacy encryption/authentication standard for
WEP 802.11 security; has been found to be inherently insecure. If an
unauthorized listener captures enough encrypted data, the encryption
key can be broken and the security compromised. For example, only
a few gigabytes are required to break 128-bit (actually 104-bit) WEP
keys. Automated tools are available for compromising WEP encryption.
WPA Strong wireless security protocol A stronger (as-yet unbroken) encryption and authentication standard
for 802.11; an interim specification until 802.11i is approved.
802.1x Wired or wireless port-based authentication Applies to all Ethernet configurations but is particularly useful for
802.11a/b/g networks. Forces users to authenticate themselves
before being given access to the network, with centralized authen-
tication such as Microsoft Windows Domain servers allowing for
an enterprise-wide solution. In wireless access points that support
it, 802.1x can be used with WEP encryption to auto-generate WEP
encryption keys so that there is a limited period of time that each WEP
key is used, preventing listeners from discovering the WEP encryption
key and thereby compromising security.
802.11i Strong wireless security protocol Sometimes called WPA2, the 802.11 wireless security protocol that
will eventually replace WEP; believed to be secure and unbreakable.
802.11n Up to 540 Mbps Ethernet in the 2.4 GHz radio An emerging standard that will have increased throughput from
band 802.11g and have greater range than comparable standards.

www.agilent.com/find/open
129
However, WPA may not be avail- Scenario 3: Functional by letting you assign a friendly
able in all possible configuration name to each instrument or
modes for wireless access points. test systems resource in the form of an alias.
For instance, in tests at Agilent, For instance, you can assign your
Functional test systems represent a
we were unable to use WPA with a function generator any name you
third potential for LAN connectivity.
D-Link DWL-2100AP access point in like even though it resides at a
In addition to the benefits discussed
wireless bridging mode, where two specific IP address.
in earlier chapters, several points
access points seamlessly bridge the
need to be considered when applying
two networks they connect into one,
LAN technologies to functional test
larger network. Only WEP security
systems: security and independence
was available in this mode, and we
from network infrastructure, timing
have found no commercial products
and deployment.
that claim to implement WPA for
bridging mode. If this remains true • Chapter 10 discusses security
for 802.11i, we recommend either and independence from network
not using bridging mode for bridging infrastructure through the use
from your intranet or putting VPN of static network configurations
routers on either side of the wireless and inexpensive never systems as
access points to use secure IPSec required, since the GPIB primary
communications (see “Peer-to-peer address is relative to the computer
IPSec tunneling/bridging”) to guar- and the GPIB adapter (as opposed
antee wireless security will not be to being a globally unique number).
broken (see Figure 14.4 for a sketch The Agilent IO Libraries Suite
of such a configuration). brings back some of this simplicity

Figure 14.4. Wirelessly bridged Ethernet network with VPN tunnel for additional security

Wireless bridged Ethernet network

Paired wireless routers


in 802.11 bridging mode

VPN VPN
router router

Wireless Ethernet
Ports for radio signals Ports for
network Wired Wired network
#1 Ethernet Ethernet #2
connection connection
802.11b/g (high gain)
antennae

IPSec tunnel

130 14. Using LAN in Test Systems: Applications


Configuring a VPN Approaches Implementation notes
Two common approaches to imple- Windows XP, Vista, and 2000 offer
Although an endless variety of VPN menting these tunnels are known as built-in IPSec/L2TP and MPPE/PPTP
implementations are available, only L2TP/IPSec (IP Security with Layer-2 with MS-CHAPv2 clients as part of
a few criteria need to be considered Tunneling Protocol) and PPTP/MPPE their dial-up networking support,
when choosing a configuration for with MS-CHAPv2 (Microsoft Point-to- and all VPN routers have some
distributed test and measurement Point Encryption over Point-to-Point combination of IPSec, L2TP, PPTP,
applications: (1) Does the application Tunneling Protocol with Microsoft and MS-CHAP protocol support. The
require an always-on connection, or Challenge-Handshake Authentication speed of the connection can vary
will a temporary connection suffice? Protocol version 2). Each of these greatly based on the router’s imple-
(2) What level of security is required? technologies is a combination of a mentation, especially if the router
Does the system need to be protected transport layer and a security layer. has an encryption co-processor
only from inadvertent access The transport layer packages up built in to offload the computational
attempts, or is powerful encryption network communication so that it burden of encrypting the tunneling
and security necessary to prevent can be successfully transmitted over data. As you would expect, cost typi-
deliberate, malicious attacks? (3) the secured, virtual tunnel between cally increases with performance and
What are the available options in the the client and server. The security capabilities.
desired price and performance range layer provides protection from
that meet your other criteria? deliberate or inadvertent deception By default, such VPN configurations
or attacks. turn off any other Internet connec-
This section explores two configura- tion when the VPN connection is
tions that can address virtually any The transport layers (L2TP and active by configuring the default
combination of these criteria: client/ PPTP) provide similar capabilities, internet gateway to go through the
server tunneling and peer-to-peer although the newer L2TP is becoming VPN connection. If you don’t want
IPSec tunneling. the more common choice. However, this to happen, configure the VPN
the security layers present distinct tunnel to manually create the neces-
differences. Of the two, IPSec sary TCP/IP routing information so
Client/server tunneling provides the best support for that only information addressed for
Client/server VPN tunnels have encryption, authentication, and data the private network across the VPN
become a popular means to allow integrity; MPPE with MS-CHAPv2 is tunnel is sent across that tunnel, and
remote access to enterprise considered less secure. In general, all other network connections are
networks. A key advantage of this MPPE with MS-CHAPv2 is good sent through the primary network
method is that it can be used over enough for home use and for use over connection.
the Internet and through routers and secured intranets, but IPSec is the
only truly secure choice for use on or To provide a working example
firewalls. VPN tunnels were designed
over the Internet. of client/server VPN tunnel
to minimize the impact of firewalls,
configuration, we’ve posted detailed
and updated firewalls can be config-
instructions and open-source,
ured to allow VPN tunnels through,
contributed utilities for establishing
making them the best choice for
an MPPE/PPTP with MS-CHAPv2
exposing instruments securely over
VPN Tunnel between a Windows
the Internet. Another advantage of
2000/XP client and a D-Link™
client/server VPN tunnels is multiple,
DI-804HV VPN server at www.agilent.
noncontinuous connections from
com/find/adn_vpn_examples.
clients. Server hardware or software
designed to support such tunnels
allows multiple clients to connect
and disconnect from the VPN server
at random times for random dura-
tions, making these tunnels the best
choice for ad hoc sharing (such as is
common in R&D labs, for instance).

www.agilent.com/find/open
131
Peer-to-peer IPSec There are a few situations where configuration tools are too complex
tunneling/bridging IPSec tunneling is the preferred to use without instructions or
choice. Because of the always-on experienced help. However, the
IPSec provides its own tunneling configuration of this tunnel, IPSec Windows implementation is very
mode where two networks are tunneling is a good choice for virtu- flexible and powerful, allowing traffic
virtually joined by establishing a ally connecting a set of measurement destined for the private network
secure tunnel between the network hardware and a controller/monitor, behind the remote IPSec endpoint to
endpoints on a larger network, such as in a test system with a be automatically encrypted and sent
such as a corporate intranet or the remote controller or a remote data over the tunnel and all other TCP/IP
Internet. The networks that the acquisition application (see Figure traffic to continue to its destination
tunnel endpoints connect can be 14.5). Because the endpoints of the unimpeded.
anything from a single computer to a tunnel can be networks of devices,
IPSec tunneling is a good choice for Many VPN routers also have IPSec
large corporate LAN. This tunneling
connecting two separate test systems tunneling support, with varying
mode is designed for permanent
or permanently connecting a test degrees of configuration help. VPN
network configurations between two
system controller. routers without a hardware encryp-
points with known IP addresses or
tion co-processor can be an order
host names (making it peer-to-peer,
IPSec tunnels may not work across of magnitude slower than the most
rather than a client/server archi-
corporate firewalls, so the tunnel powerful, more expensive routers
tecture). An example application of
end-point hardware may have to be with an encryption co-processor
IPSec tunneling would be to virtually
exposed to the Internet to allow such built-in. Configuration informa-
connect two campuses of an organi-
tunnels to be connected over the tion and contributed utilities for
zation via an IPSec tunnel over the
Internet. configuring an IPSec tunnel between
Internet so that the two ends of the
a Windows 2000/XP client and a
tunnel are combined into one large, As part of its IPSec feature set, D-Link DI-804HV router are also
secure virtual LAN. Windows provides the capability available at www.agilent.com/find/
for IPSec tunneling, although their adn_vpn_examples.

Figure 14.5. IPSec VPN combining two private networks

Wireless bridged Ethernet network

IPSec endpoints
(routers, computers, etc.)

Private Private
network #1 network #2

VPN tunnel

Public Public
Ethernet Ethernet
port port
0 or more Corporate intranet
and/or Internet 0 or more
private private
Ethernet Ethernet
port(s) port(s)

132 14. Using LAN in Test Systems: Applications


Comparing network a waveform from a PC to an Agilent infrastructure to connect to the
33220A function generator over a instrument. Using an 802.11g wire-
performance variety of transports/ networks. (The less Ethernet bridge did incur a small
results include the time necessary to performance penalty, as it is limited
As you would expect, various
upload the waveform, plus the time to 54 Megabits per second, less than
networks have different performance
it took to receive a response from the the 100 Mbps LAN. In contrast, using
characteristics, based on a combina-
instrument that it had successfully the encryption features of the D-Link
tion of the underlying technology and
received the data.) DI-804HV VPN router caused some
the specific details of each vendor’s
of the slowest results because this
implementation. Moreover, various As you can see from the chart, using model does not have a data encryp-
instruments behave differently a second PCI LAN card to create a tion co-processor, meaning that the
depending on the I/O connection type private LAN incurs no extra cost encryption of the data packets has to
as well. Figure 14.6 compares the compared to using the primary LAN be done by the router’s primary CPU.
data rates measured while uploading card and the corporate intranet’s

Figure 14.6. Comparative data rates over vrious network/transport schemes

1400

1200

1000

800
KB/s

600

400

200

0
0 10,000 20,000 30,000 40,000 50,000 60,000 70,000
Waveform size in bytes

100 Mbps LAN PPTP tunnel to DI-804HV


2nd PCI LAN card with 100Mbps switch USB 2.0
802.11g bridge with 128-bit WEP USB 1.1/GPIB converter
PCI/GPIB card PPTP tunnel over 802.11g bridge with WEP
IPSec tunnel to DI-804HV

www.agilent.com/find/open
133
Conclusion
LAN is a powerful, compelling choice
for many test and measurement
tasks and systems, but engineers
need to be aware of its limitations
and complexities to create reliable,
long-lasting configurations. The
huge variety of LAN media, devices,
protocols and technologies mean
that a large body of complete tools
and solutions is available to choose
from when designing test systems.
Picking the right technologies to use
and deploy is essential to developing
the best system in the least amount
of time.

134 14. Using LAN in Test Systems: Applications


15. Using LAN in Test Systems: Setting Up System I/O

Introduction Assessing the Agilent IO many vendors. These applications


and drivers will also comply with IVI
This chapter describes the compo- Libraries Suite Foundation standards for instrument
nents of the Agilent IO Libraries communication and control. The
Agilent IO Libraries Suite is a
Suite and presents a quick, six-step current version of Agilent VISA is
collection of libraries and utili-
process that will make LAN-based backwards compatible with previous
ties that make LAN, USB, VXI and
instrument connections as simple as versions.
GPIB connections equally easy to
using GPIB.
use within your test system. The Agilent provides both the C API
libraries provide the ability to access
Simplifying LAN-based instruments from software programs
version of VISA and VISA COM.

instrument connections that perform test and measurement Agilent VISA COM
(T&M) operations. The utilities This is a Microsoft Component Object
The advantages of LAN technology enable quick, easy connections of Model (COM) implementation of the
are making it an attractive alterna- instruments to a PC by helping you VISA standard; it is based on the
tive to GPIB for system input/output debug test programs and diagnose Agilent VISA architecture. Agilent
(I/O). As a result, LAN interfaces problems in a test system. VISA COM also conforms to IVI
are becoming more common in test Foundation standards.
equipment—though LAN ports will The IO Libraries Suite is included
likely coexist with GPIB for years to with more than 150 Agilent instru- Agilent SICL
come. ments as well as the Agilent VEE Many test systems still rely on the
and Agilent T&M Toolkit software Standard Instrument Control Library
On the surface, the presence of LAN products. The IO Libraries Suite also (SICL), which Hewlett-Packard (now
ports in most current-generation PCs works with instruments and software Agilent) developed to make software
and many new-generation test instru- from other vendors. as I/O-independent as possible.
ments may make connections seem This modular library for instrument
as simple as finding a network cable As an introduction to the IO
communication works with a variety
and plugging it into both devices. Libraries Suite, let’s take a closer
of computer architectures, I/O
Today, making the connection work look at its three major components:
interfaces and operating systems. We
depends on the LAN services of Agilent IO Libraries, Agilent
include it in the IO Libraries Suite to
Microsoft Windows and the addi- Connection Expert and the I/O
enable compatibility with customer’s
tional capabilities provided by the utilities.
legacy programs.
Agilent IO Libraries Suite. A quick,
one-time configuration process will Agilent IO Libraries In most cases, we now recommend
make LAN-based instrument connec- VISA over SICL. The exceptions are
tions as easy as using GPIB. The suite includes three separate applications that require capabili-
I/O libraries. Each provides similar ties such as parallel polling that are
Once the IO Libraries Suite is functionality that lets you program- unique to SICL.
installed and configured, it acceler- matically control instruments, send
ates the connection process with commands to them and receive Suggested approach
software libraries and utilities that responses and data. If you are developing new test and
let you quickly connect instruments measurement applications, we
to a PC, configure and verify the Agilent VISA generally recommend VISA and VISA
connections, and get on with your Agilent’s implementation of the COM as the most effective solutions
job—whether it entails the creation Virtual Instrument Software for instrument I/O. The best choice
of instrument-control software or Architecture (VISA) is an industry- of I/O library depends on your
the use of pre-existing application standard I/O application program- preferred programming language,
software. ming interface (API). You can use refer to Table 13.1 on page 124 for
it to develop I/O applications and recommendations.
instrument drivers that will be
interoperable with applications from

135
Agilent Connection Expert • Remote IO Server. Enables connec- • VISA Assistant. Included with older
tions to instruments that are versions of the IO Libraries and
The Agilent Connection Expert physically connected to another PC provided in the latest version
(Figure 15.1) is a software utility on the network. When the Remote as a convenience. Most of its
that helps you connect instruments IO Server is running on one PC capabilities are replaced by either
to a PC—via GPIB, LAN, USB, RS-232 (the server) you can use instru- Connection Expert or Interactive IO.
or the VXI interface—in just a few ments connected to that server
minutes. from separate client PCs by using • VXI Resource Manager. Used to
Connection Expert to configure configure the Agilent E8491 IEEE-
You can use Connection Expert to remote interfaces on the clients. 1394 PC link to VXI interface in
speed and simplify several essen- systems that include modular VXI
tial configuration tasks: configure • ViFind32 Debug Utility. When called hardware.
instrument I/O interfaces; connect from a script, viFind32 uses
to instruments over the LAN; VISA functions to find available • IO Control. Provides easy access to
automatically discover instruments resources and then list them in all of the IO Libraries Suite utilities
connected directly to the PC; and a console window. This utility is and the associated documentation.
browse the test system’s structure useful for verifying that Connection The IO Control icon appears in the
and connections (PC, interfaces and Expert has configured all expected Windows notification area (Figure
instruments). Connection Expert also interfaces, and that the expected 15.2), enabling a quick launch
helps you detect and troubleshoot devices are all attached. whenever you want to use the
connectivity problems, either during utilities.
the configuration process or later
when the system is in use. Figure 15.1. Agilent Connection Expert’s easy to follow tree view helps you see connected devices
instantly
To enhance program portability and
readability, Connection Expert also
lets you create programming aliases
for each instrument in the system.
The ability to update an alias with
a new IP address or hostname can
make it easier to handle system
migration and changing network
settings.

Connection Expert also improves


user productivity by including an
on-screen task guide that provides
shortcuts to common tasks and
frequently needed information.

I/O Utilities
A set of six software utilities
enhances your ability to quickly
configure and debug instrument-to-
PC connections:

• Interactive IO. Lets you query


instruments one command at a Figure 15.2. The IO Control icon resides in the
time and view the response to each Windows notification area.
command. This utility can help you
learn an instrument’s command set
or prototype commands and check
the instrument’s responses before
you write any code.

136 15. Using LAN in Test Systems: Setting Up System I/O


Connecting instruments Step 1: Install I/O software Step 2: Select network type
to LAN The first step is to install the Agilent Once you’ve installed the I/O soft-
IO Libraries Suite on a PC that meets ware, the next step is to decide if you
We suggest a six-step process that
the minimum system requirements will connect the system instruments
will help you quickly connect and
and is running a supported version and PC to a site LAN or a private LAN.
configure your LAN-enabled instru-
of Microsoft Windows: 98 Second
ments. The specific tasks in Steps In this chapter we define a site LAN
Edition; 2000 with SP4 or later;
2 through 4 depend on whether to be an enterprise LAN, a corporate
Millennium Edition (Me); or XP with
the instruments are connected to intranet or a workgroup LAN. This
SP1 or later. For the latest informa-
a site LAN or a local, private LAN type of LAN may carry a tremendous
tion about PC requirements, please
(these are defined in Step 2). The amount of data traffic—and network
visit the IO Libraries Web page at
procedures presented here focus congestion can severely hinder test
www.agilent.com/find/iosuite and
on the private LAN case, which system performance. A site LAN may
download the latest version of the
is our recommended approach. If also be more susceptible to viruses,
product data sheet.
your situation dictates the site LAN Trojans, worms and other threats
approach, please see Chapter 2 of the If you don’t have the software, you that pose a security risk to sensitive
Agilent Connectivity Guide, which is can get a copy from www.agilent. data. Physically, this type of connec-
included with the IO Libraries Suite com/find/iosuite by downloading it tion may involve the direct connec-
and is also available at www.agilent. or requesting a CD (see Web site for tion of the PC and instruments to the
com/find/iolib. licensing restrictions). Once you have site LAN or a switched connection
a copy of the software on or in your through a hub, router or switch.
PC, the InstallShield Wizard will
guide you through the installation A private LAN is a standalone
process. (For a detailed description network reserved exclusively for use
of the software installation process, by the test system. It is protected
please see Chapter 6 of the Agilent from site LAN traffic (and security
Connectivity Guide.) risks) by either a router or a PC
configured with two LAN cards.
The latter configuration will also
include at least one hub, switch or
router if the system uses multiple
instruments. A private LAN imple-
mented with either configuration
is our recommended approach.
For a detailed description of both
approaches, please see Chapter 10,
Using LAN in Test Systems: Network
Configuration.

A single instrument can also be


connected directly to the PC with
a crossover Ethernet cable. These
cables are usually bright yellow
to distinguish them from regular
Ethernet cables. This method
requires a second LAN card in the PC
if the primary LAN card is already
connected to the enterprise LAN.

www.agilent.com/find/open
137
Step 3: Gather network private LAN will support DHCP but Step 4: Connect your
information not Dynamic Domain Name Server
instruments
(Dynamic DNS), a service that maps
With a private LAN configuration specific names to IP addresses and This step assumes that the PC’s
you, as the network designer, are enables use of names in place of IP hardware and software are properly
effectively the system administrator addresses in test-system programs. configured for LAN operation and the
and can define network parameters PC is connected to the private LAN.
The key information to be gathered
that best suit your test system.
or defined is summarized in Table As mentioned above, this configura-
One of the key details is support for 15.1. You’ll want to make a copy of tion uses either a router or a PC
Dynamic Host Configuration Protocol the card for each instrument that configured with two LAN cards and
(DHCP), which automatically assigns will be connected to the test system’s a LAN device such as a hub, switch
IP addresses to devices on the private LAN. or router. Before connecting any
network. In general, a router-based instruments, turn off the power to
all instruments. Next, connect each
instrument to the LAN device with a
 Most PCs and most Agilent instru-  Some of Agilent’s LAN-enabled
standard CAT5e Ethernet cable then
ments will use a function called instruments may be addressable turn on power to each instrument.
auto-IP to automatically assign an by hostname via NetBIOS, an older Verify the completion of the power-on
IP address if they are configured for networked PC protocol that is still sequence for each instrument and, if
DHCP but cannot connect to a DHCP supported by Windows and works anything seems unusual, refer to the
server. with most LANs. instrument’s user’s guide for detailed
information.
Table 15.1. Private LAN information card
Network DHCP enabled Yes ____ No ____ Hostname versus
Dynamic DNS enabled Yes ____ No ____ IP address
UPnP enabled OK Yes ____ No ____
Subnet mask ______.______.______.______ We recommend that you configure
DNS server IP address ______.______.______.______ LAN instruments with a hostname
and use it to connect to them
PC Ethernet (MAC) hardware address ____ ____ ____ ____ ____ ____
whenever possible. IP addresses
IP address ______.______.______.______ assigned by DHCP can change
Subnet mask ______.______.______.______ without warning, breaking estab-
DNS server ______.______.______.______ lished connections to your instru-
Hostname __________________________ ments. If your network doesn’t
Domain name __________________________ support connecting by hostname, we
Instrument Instrument serial number __________________________
recommend the use of a statically
configured IP address for each instru-
Ethernet (MAC) hardware address ____ ____ ____ ____ ____ ____
ment. If any of your instruments are
IP address ______.______.______.______ connected to the site LAN, you will
Subnet mask ______.______.______.______ need to ask your network adminis-
DNS server ______.______.______.______ trator to provide static IP addresses
Hostname __________________________ for those instruments.
Domain name __________________________
DHCP On ____ Off ____
Auto IP On ____ Off ____ N/A ____
UPnP Enabled ____ Disabled ____ N/A ____

138 15. Using LAN in Test Systems: Setting Up System I/O


Step 5: Configure your Step 6: Run Agilent Connection router) you must be able to specify a
instruments Expert hostname or IP address in the LAN
Instrument dialog box.
Configuration may not be necessary With Steps 1 through 5 completed,
• Local subnet instrument. When an
for the latest generation of LAN- you’re ready to launch Agilent
instrument is on the local subnet,
enabled instruments. In general, Connection Expert. Click on the
the easiest way to add the instru-
the default configuration of these Agilent IO Control icon in the
ment to the test system is to ask
instruments is compatible with the Windows notification area then select
that Connection Expert discover it.
procedures presented here. Agilent Connection Expert (or click
This eliminates the need to specify
“Refresh All” if Connection Expert
For current-generation instruments the instrument’s hostname or IP
is already running). You can now
with modified LAN configurations address.
perform additional tasks related to
or older instruments that require LAN-enabled instruments: add a LAN • Non-local subnet instrument. After
manual configuration, you will need instrument to the system (manda- you enter an instrument’s host-
to enter a few quick changes via the tory), configure a LAN interface name or IP address, Connection
front panel or a Web browser. Most (optional) or communicate with any Expert will try to open a connec-
LAN-based instruments have a built- connected instrument via Interactive tion to that instrument on the LAN.
in Web server, making it possible IO (optional). If it succeeds, it will perform the
to access an instrument’s internal
same bus addressing procedures as
Web pages (Figure 15.3) and, in most Add a LAN instrument. Whether an
it would for a local instrument.
cases, view and modify the network instrument resides on a private or
configuration parameters as needed. site LAN, there are several ways Configure a LAN interface. If you select
to add the instrument to your test the LAN interface in the explorer
Making changes via the built-in system. You may also use any of pane, the properties pane will
Web server begins by entering these methods to make a change to display the current properties for
the instrument’s IP address into any instrument that is already part that interface. The properties pane
the browser’s address box (e.g., of the system. displays the most commonly accessed
http://192.168.1.200) and pressing
properties at the top and provides a
Enter. This should display the When using Connection Expert, the
“More” button that will display addi-
instrument’s welcome page, which key concept is the “local subnet,”
tional properties in the lower portion
may provide links to other pages. which is typically the portion of your
of the pane. Clicking on the Change
Access the page that displays the intranet connected to the private or
Properties button will display a
current LAN configuration and then non-enterprise side of the nearest
dialog box that lets you modify
modify the instrument’s TCP/IP router. To prevent disruptions of
configuration parameters such as
parameters as necessary: this may network traffic beyond the router—
interface ID (used by VISA and SICL)
require changes to the IP address, and avoid excessively long searches
and timeout values. The online Help,
subnet mask and default gateway.3 To across the entire LAN—Connection
available from the Help button in
complete the process, you may have Expert can only discover instruments
each dialog box, gives information on
to save the changes then reboot the automatically within the local subnet.
each configuration parameter.
instrument by turning power off then To communicate with remote instru-
on again. ments (those on the other side of the

Figure 15.3. Browser-accessible welcome page for the Agilent 33220A function/arbitrary waveform
generator
3 Individual instruments will respond
differently to these changes. In most
cases the new settings will not take
effect until you cycle the instrument’s
power off then on. Some instruments
may change the IP address imme-
diately and you will have to enter
the new address into the browser’s
address box before making additional
changes.

www.agilent.com/find/open
139
Communicate via Interactive IO. You
Coexisting with other versions of VISA can use this software utility from
within Connection Expert (or from
Although the VISA API is a standard, each vendor employs different layers beneath IO Control) to verify communication
the VISA layer to control their hardware. For proper operation, the version of VISA with instruments via LAN:
installed on the system’s host PC must be compatible with the I/O hardware.
• Interactively send commands and
Fortunately, it’s possible to perform a side-by-side installation of Agilent VISA with view responses without writing
other VISA libraries and achieve proper I/O operation. For example, you can use program code
Agilent VISA and National Instruments’ NI-VISA in the same PC.
• Quickly verify connectivity to an
The VISA standard requires that visa32.dll, the dynamic-link library that implements instrument
the VISA interface, be installed in specific locations. Thus, only one installed
implementation can fully comply with the standard at one time. • Troubleshoot communication
problems
To avoid conflicts, the Agilent IO Libraries Suite gives you the option to install
Agilent VISA in side-by-side mode. In this case, Agilent VISA is installed in a • Learn the instrument’s command
different location and does not overwrite any other VISA already present on the PC. set

After installing Agilent VISA in side-by-side mode you can use either the Agilent or • Rapidly prototype commands and
NI VISA library in your programs. The side-by-side installation allows you to choose check the instrument’s responses
which VISA library you link your program against so you can take advantage of the before you begin writing code
support and features of each vendor’s VISA implementation.
You can start Interactive IO from
If you choose to use Agilent interface hardware in a program linked against within Connection Expert in one
NI-VISA, IO Libraries Suite online Help can guide you through the configuration of three ways: by clicking the Send
of NI-VISA. This is the easiest way to use your VISA code without rebuilding your commands to this instrument task in
program. (NI-VISA does not allow side-by-side mode by default and must be manu- the task guide; by clicking Tools then
ally enabled.) Interactive IO on the Connection
Expert menu bar; or by right-clicking
If you use NI GPIB cards and devices, you don’t need to install NI-VISA. Instead, the instrument in the explorer panel
you can simply install NI-488.2 as a driver for these devices and avoid the complica- and selecting Send Commands To
tions of side-by-side operation. You could then use Connection Expert to configure This Instrument.
Agilent VISA to use the NI GPIB card.

Whenever you mix interface hardware from different vendors, it’s best to configure Conclusion
each device using the configuration tools from its manufacturer. NI interfaces
Connecting instruments to LAN is
should be configured with the NI MAX utility prior to use. Agilent interfaces are
almost as simple as plugging in a
automatically configured when you install the IO Libraries Suite, but if you add a
network cable if you take advantage
new interface or decide to change interface properties, use Agilent Connection
of the libraries and utilities that
Expert.
are part of the Agilent IO Libraries
Suite and follow the quick, six-step
configuration process described in
this chapter. Once that process is
completed, GPIB, LAN, USB and
other standard interfaces are equally
easy to use within a test system.
What’s more, included tools such as
Agilent Connection Expert and a set
of six I/O utilities make it easy to
configure, debug and troubleshoot
those connections.

140 15. Using LAN in Test Systems: Setting Up System I/O


Section 3. LXI: The Future of Test

Overview 18. Creating Hybrid Test Systems with


PXI, VXI and LXI, compares PXI
The four chapters in this section and VXI with LXI, sketches
introduce the features and hybrid system architectures
benefits of LXI (LAN eXtensions for that incorporate your existing
Instrumentation), a new standard test assets and describes what
that combines the functionality and will be possible in the future as
PC-standard connectivity of stand- you migrate to fully LXI-based
alone instruments with the modu- systems.
larity and compact size of plug-in
cards—but without the size or cost of 19. Assessing Synthetic Instruments,
a cardcage. presents a brief history of
synthetic instruments (SIs),
16. Value, Performance and Flexibility: compares a rack-and-stack system
the Promise of LXI, provides an to an SI-based system, describes
introduction to LXI, presents the initial applications of SIs
its advantages, and outlines LXI and illustrates the emulation of
usage models that expand the conventional instruments with
reach, capabilities and definition SIs.
of test systems.

17. Transitioning from GPIB to LXI,


compares GPIB and LXI, sketches
hybrid system architectures,
outlines a step-by-step approach
to system set-up, and describes
how to easily modify existing
system software to work with LXI
devices.

141
142 Section 3. LXI: The Future of Test
16. Value, Performance and Flexibility: The Promise of LXI

Introduction Why test managers are • Reuse. Developers seldom have


the luxury of building a test
This chapter provides an intro- asking for a new approach system with all-new hardware
duction to LAN eXtensions for and software. As a result, many
Test managers across many indus-
Instrumentation (LXI), reviews systems include a collection of
tries face several of the same issues:
why test managers are looking for instruments that use different I/O
shorter launch windows, reduced
an alternative to conventional test interfaces and command sets. It
staffing, dwindling software exper-
architectures, presents the advan- can be difficult to reuse existing
tise, smaller development budgets,
tages of LXI, offers a closer look instrumentation and test-system
and outsourced (or offshore) manu-
at the LXI standard, and outlines code without tools that simplify
facturing. Most are looking for the
usage scenarios that expand the instrument connectivity and
same solution: a more cost-effective
reach and capabilities—and perhaps control in the PC environment.
way to develop test systems.
the definition—of test systems. Two The challenge of reuse extends to
appendixes discuss the concept of An obvious first step is to reduce software too, of course. It’s difficult
synthetic instruments and LXI’s role the cost of instrumentation. The to leverage software and ensure
within the Agilent Open development overhead costs of current modular measurement integrity across
strategy. systems—cardcages, slot-0 control- the product lifecycle if different
lers, proprietary interfaces, and so types of instruments are used in
on—shrink the budget available for each phase. This is especially true
actual measurement hardware. Also, if testing shifts from benchtop
if the cardcage is filled, the addition instruments in R&D to modular
of just one more device to the system instruments in manufacturing.
requires an additional cardcage.
• Set-up time. System set-up can be
Similarly, because most PCs now
time consuming, especially when
include USB and LAN interfaces,
you’re trying to get the PC to
it seems wasteful to require the
communicate with the instruments
additional cost and complexity of a
or get the instruments to work with
measurement-specific interface.
the system software. It’s even more
In the big picture of system develop- time consuming with systems that
ment, however, cost effectiveness include multiple interfaces: GPIB,
goes far beyond simply lowering the RS-232C, VXI, PXI, MXI, FireWire,
cost of test instrumentation. Even if USB or LAN. Add to that multiple
GPIB, PXI and VXI hardware were I/O libraries and instrument
free, developers would still face six drivers from multiple manufac-
challenges that affect the cost-effec- turers, and it may take days or
tiveness of system creation: reuse, weeks to troubleshoot the system
set-up time, system throughput, and get it to work as expected.
system size, consistency and
• System throughput. In time-critical
future-proofing.
applications, every millisecond
counts. However, improving overall
system throughput requires
more than just a fast backplane.
Bottlenecks may occur in test
routines, measurement algorithms,
data transfers, the sequencing of
system tasks and more.

143
• System size. Whenever systems must There are also a few issues specific Addressing the challenges
be shipped elsewhere or deployed to each of today’s three major legacy
where floor space is at a premium, test-system architectures. with LXI
system size matters. Unfortunately,
• GPIB. Although this remains the To help test system engineers over-
with existing approaches, this may
current instrumentation standard, come all these drawbacks, Agilent is
also mean sacrificing functionality,
it has slower data transfer rates leading the way to a new vision for
performance and accuracy as the
than other architectures, forces test systems.
system shrinks.
you to install an interface card in
• Consistency. In systems that require your PC, requires expensive cables, Building on the widespread
source, measure, power and RF/ and allows only 14 devices on the
microwave capabilities, developers bus.
LAN foundation
often need to mix two or more Many current-generation instruments
of the current instrumentation • VXI. This architecture requires
include LAN ports (see Figure 16.1),
standards. This type of inefficiency an expensive cardcage, a slot-0
and LXI is the next logical step in the
also affects cost effectiveness. controller and an expensive,
evolution of LAN-based instrumenta-
proprietary interface (MXI).
tion. LAN is gaining momentum in
• Future-proofing. With limited versa-
• PXI. In addition to the VXI over- T&M because it has several inherent
tility, existing test architectures
head costs mentioned above, PXI advantages over most parallel and
make it difficult to meet future
has issues with size, power and serial interfaces. For example, LAN
needs—higher frequencies, greater
EMI that limit the range of solu- can handle an unlimited number of
accuracy, faster throughput and so
tions to those normally covered nodes and provides long distance
on. As more systems are deployed
by PC plug-in cards. PXI is also inter-device connectivity. It also
to remote locations, they become
transitioning to PXI Express, includes TCP/IP error checking and
increasingly difficult to manage
limiting the longevity of PXI fault detection—and these functions
and troubleshoot without onsite
modules or requiring expensive minimally impact throughput rates.
expertise. In addition, test systems
hybrid mainframes. Better still, LAN enables automatic
often remain in service longer than
device discovery, addressing, asset
the lifetime of most backplanes and
management and network manage-
interfaces. Computer backplanes—
Figure 16.1. Current-generation instruments ment. LAN also has a cost advantage:
ISA, EISA, VME, PCI, and Compact
such as the Agilent 34980A switch/measure the prices of cables, interface cards,
PCI—change every few years but unit include LAN, USB and GPIB interfaces. hubs, routers, switches, wireless
usually offer little or no backward
access points and so on are low and
compatibility. The instrumentation
continue to fall.
versions (VXI and PXI) have the
same drawback. To compound the
problem, standardized test and
measurement interfaces such as  This is especially true if the test
GPIB and MXI have fallen short of system uses a dedicated network. To
both the increased speed and wide- learn more about creating private
networks for test systems, please see
spread adoption of LAN and USB.
Chapter 10.
Instead, new GPIB or MXI cards
must be developed and purchased
whenever computer architectures
change.

144 16. Value, Performance and Flexibility: The Promise of LXI


These advantages come from the Extending LAN for
computer industry’s substantial
instrumentation The LXI Consortium
investment in networking technology. The LXI Consortium is a not-for-
A big part of that investment is in The LXI vision starts with full- profit corporation that coordinates
brainpower: the computer industry fledged instruments packaged in the efforts of leading companies in
employs far more design engineers easy-to-integrate modules that the T&M industry. Its driving goal
than the T&M industry. Since 1980, utilize PC-standard I/O. LXI can be is to ensure a consistent, positive
their efforts have boosted Ethernet packaged in larger sizes with front user experience through hardware
speeds by three orders of magnitude, panels and displays, or integrated and software interoperability. The
from 10 Mb/s to 10 Gb/s. Even more into smaller, faceless modules. It consortium aims to achieve this
impressive, they have preserved also includes hardware and software goal by developing, supporting and
backward compatibility as speeds building blocks that enable rapid promoting the LXI standard. The
have increased. In comparison, T&M arrangement and rearrangement of formation of the consortium was
standard interfaces such as GPIB functional building-block modules driven by the realization that several
and MXI have not kept pace with the known as synthetic instruments companies were developing LAN-
speed, capabilities or compatibility (see Appendix 16A) that increase a based measurement modules.
of LAN. system’s flexibility while reducing
its size and cost. By specifying the Ultimately, many agreed that it made
Rather than inventing yet another sense to abandon multiple incompat-
interaction of proven, widely used
proprietary standard, it makes ible approaches and instead combine
standards such as Ethernet LAN,
far more sense to ride the wave their efforts into an industry standard
Web browsers and IVI drivers, LXI
of LAN innovation. By leveraging that will better serve the present and
enables fast, efficient and cost-effec-
PC-standard technologies, T&M future needs of T&M customers. To
tive creation and reconfiguration
equipment makers can focus on what learn more about the LXI Consortium,
of test systems. LXI combines the
they do best, which is provide great visit www.lxistandard.org.
measurement functionality and PC-
measurements.
standard input/ output (I/O) connec-
The LAN interface becomes “GPIB tivity of standalone instruments with
easy” when used with innovative the modularity and compact size of
software products such as the plug-in cards—but without the size or
Agilent IO Libraries Suite, which cost of a cardcage.
simplifies connections between
The promise of system longevity
PCs and LAN-enabled instruments.
has inspired over 50 companies to
Looking to the future, adding the
join the LXI Consortium including
enhancements defined by the LXI
all the largest test & measurement
standard will let test engineers
companies (see sidebar). Agilent and
take even greater advantage of this
others introduced the first wave of
powerful I/O connection.
LXI-compliant products in September
2005. As the number of available LXI
devices continues to grow, you will be
well-equipped to take the next step
beyond GPIB, PXI and VXI.

The LXI standard enables long-lived


instrument and system implementa-
tions by relying on the stability of
computer and networking standards,
and by freeing system developers
from proprietary standards that
often fall behind in performance and
functionality.

www.agilent.com/find/open
145
The advantages of LXI (typically used in small or ad-hoc Simplifying physical integration
networks). LXI also recommends The LXI standard also includes
LXI’s visionary approach delivers support for DNS, which instru- an optional mechanical specifica-
numerous benefits in virtually every ments can use to publish their tion that simplifies the integration
aspect of system design, implementa- host name through a DNS server of modules within system racks.
tion, operation, and maintenance. By (another feature usually available Compliant modules are full- or
addressing all of the shortcomings in corporate networks). half-rack wide and standard EIA
described earlier with other architec- heights (e.g. 1U, 2U). The standard
tures, LXI does more to help you • Application layer. LXI-compliant also specifies that signal input and
reduce the expense and effort required instruments support the VXI-11 output connectors (and status lights)
to create cost-effective test systems. protocol (based on remote proce- are placed on the front of the module
dure calls) for automatic discovery while power, Ethernet, triggering and
of new instruments and identifica- other control connectors are placed
Ease of use tion through the *IDN? query. on the rear.
The LXI standard address ease of use Enabling easy interaction Reducing set-up time
for system developers in a variety A few noteworthy instrument Through proven standards such as
of ways, including harnessing the control features help LXI surpass Ethernet and IVI drivers, LXI ensures
Ethernet standard, enabling easy GPIB in ease-of-use. For example, that everything is compatible—and
interaction via Web browsers, making LXI devices include a built-in Web setup will take less time. Because
programming more efficient with server to enable configuration and Web pages built into every LXI
standard drivers and simplifying troubleshooting. In many Agilent LXI instrument, a standard Web browser
physical integration. products, the instrument page also is all you need to view device
allows interactive instrument control information, change its configuration
Harnessing the Ethernet standard and monitoring, a capability that can
LXI includes some key elements and even monitor results and control
be very useful during system configu- measurements (in many Agilent LXI
that simplify the use of LAN in test ration and deployment. It also
systems: devices). You can also use proven
simplifies remote troubleshooting. tools such as LAN hardware, LAN
• Physical layer. To help ensure cables and ping servers to communi-
Making programming more efficient cate via LAN and troubleshoot local
successful instrument interac-
For programmatic control, you can or remote systems.
tion, the LXI standard specifies
use IVI instrument drivers (see
automatic negotiation of LAN
Chapter 3). Recommended by the LXI
transmission speed and duplex
standard, IVI-COM drivers are based Flexibility
communication. The standard also
on the widely used Microsoft COM
recommends Auto MDIX, a feature LXI’s modular approach makes it
architecture and work with today’s
that enables the use of either easy to mix and match modules
most popular test software environ-
straight-through or crossover LAN that provide the exact functionality
ments. These object-oriented drivers
cables in direct controller-to-instru- required for each system or applica-
use a hierarchical API, making it
ment or peer-to-peer connections. tion. LXI-compliant instruments
easy to utilize the advanced features
The instrument automatically provide new levels of flexibility in
of modern, object-oriented environ-
adjusts to the existing cable and its hardware selection, product testing,
ments. One key example is easy navi-
communication counterpart. software reuse, instrument commu-
gation through a driver’s hierarchy
of functions and simplified coding nication and even organizational
• Network (IP) layer. LXI instruments
via autosuggestion and autocomple- responsiveness.
support automatic IP configura-
tion through a DHCP server (often tion. Agilent LXI instruments also
available in managed corporate support ASCII-based SCPI commands
networks and in cable/DSL for programming flexibility and to
routers) or through dynamic support non-Windows environments.
configuration of local addresses

146 16. Value, Performance and Flexibility: The Promise of LXI


Addressing multiple testing needs tion through the system controller. LXI makes it possible to build
The LXI standard spans classic Instead, they can use TCP for peer- high-speed distributed systems
instruments, faceless modular to-peer communication and UDP for that utilize intelligent instru-
instruments, and functional multicast (one-to-many) messages. ments communicating with each
building block modules (synthetic other—without PC intervention—and
instruments or SIs). Broad-based Boosting team efficiency operating in parallel. Everything will
support from major instrumentation LXI also helps you address future stay synchronized through the use of
vendors means you will be able to organizational needs. Test-system the IEEE 1588 timing and synchro-
address your full range of testing experts are becoming scarce in nization standard (see “Precise
needs—source, measure, RF/micro- many organizations and can’t be Synchronization” on page 149),
wave, switching and power—with just everywhere at once—onsite, offshore LAN-based triggers, peer-to-peer
one architecture. Even when space or anywhere in between. With LXI, and multicast messaging, and the
is at a premium, you don’t have to you can place test systems virtually hardware trigger bus. These capabili-
sacrifice functionality, accuracy or anywhere on your intranet, enabling ties offer new ways to build highly
performance. your team to perform centralized efficient test systems that deliver
troubleshooting, remote monitoring dramatic improvements in overall
Even better, you won’t have to and more. system throughput.
sacrifice your existing test assets.
To help you create hybrid systems Moving more megabytes
that use LXI-based devices alongside Modularity and scalability With a Fast Ethernet connection
GPIB, PXI and VXI hardware, Agilent (IEEE 803.2u, 100 Mb/s), the
Scalability means buying just what
offers a range of I/O gateways and maximum payload data rate is
you need when you need it—and
converters. Bringing your system approximately 12.5 MB/s. Gigabit
being able to easily expand the
software forward to work with LAN Ethernet (IEEE 802.3z), which is
system in the future. With LXI, scal-
requires nothing more than simple recommended by the LXI specifica-
ability follows from modularity. This
address changes. tion, boosts top-end performance
truly modular architecture lets you
freely mix and match different types by a factor of ten to approximately
Testing all along the lifecycle 125 MB/s. Looking ahead to 10 Gb
of measurement resources and add
The various forms of LXI devices also Ethernet, LXI will be able to surpass
measurement channels, digital I/O
make it easier for you to test your the performance of VXI 3.0 (160
lines, switches and signal sources as
product across its entire lifecycle. MB/s). The backward compatibility
you go.
In many cases, a classic instrument of the various Ethernet standards is
can be used on the bench while In PXI and VXI, if a cardcage is filled, an added bonus that contributes to
an equivalent faceless instrument the addition of just one more device system longevity.
can be used in a rack in the final to the system requires the addi-
test system— without rewriting the tion— and additional cost—of another Raw network speed isn’t the only
system software. This concept can cardcage. Because LXI modules don’t consideration: simultaneous commu-
be extended with synthetic instru- require a cardcage, there is no hard nication on any network can cause
ments: through the necessary SI limit to the number of devices you degradation in performance due to
hardware and software modules, a can add to a system. In practice, you collisions and retransmission. To
few functional building blocks can do will instead be limited by factors avoid or limit this effect, we recom-
the work of multiple RF/microwave such as rack space and the number of mend the creation of a local subnet
instruments. ports available on a hub or router. dedicated to the test system.

Working independently
With their embedded processors, Performance  Assuming IPv4 and maximum frame
size, the bandwidth remaining for
today’s test instruments have
Test-and-measurement interfaces application data is about 95 percent
enough computing power to carry of the transmission rate.
out measurement tasks on their such as GPIB and MXI are chal-
own, freeing the system controller lenged by the need for increasing
for other tasks. LXI uses this power bandwidths and faster data-transfer
to provide greater flexibility in rates. One key advantage of LXI is its
communication, too: instruments ability to leverage ongoing innova-
can communicate without arbitra- tions in LAN that satisfy the need for
speed.

www.agilent.com/find/open
147
Accelerating system throughput Of course, security is a concern In comparison, Ethernet is an
Other aspects of LXI enhance for any application that requires extremely stable standard. Like
performance by enabling faster a connection outside your secure, GPIB, it’s more than 30 years
system throughput. For example, LXI well-controlled corporate network. old—and Ethernet is clearly here
makes it possible to build high-speed Rest assured that solutions designed to stay. With its stability and other
distributed systems comprised of for the IT world also work with virtues, Ethernet has been adopted
intelligent instruments that can LXI. You can utilize routers that in many industries, including corpo-
communicate with each other and include security features such as rate communications, consumer
operate in parallel. Devices stay access filtering based on MAC or IP electronics, industrial automation
synchronized through the IEEE addresses, WLAN encryption and and now test equipment.
1588 timing standard, LAN-based so on. If a distributed application
triggers, peer-to-peer and multicast needs to access the public Internet, Ethernet is also a living, evolving
messaging, and a hardware trigger you can use a virtual private network standard. It has accommodated the
bus. IEEE 1588 also accelerates (VPN) to send IP packets securely, addition of higher-layer protocols as
throughput via time-based triggering, encrypted through IPsec or other well as enhancements such as Gigabit
which initiates instrument opera- encryption protocols. Ethernet at the physical layer and
tions at a specific time rather than IPv6 at the network layer. Amazingly,
after a trigger or command. these enhancements have retained
Leverage and longevity backward compatibility, protecting
investments in previous versions of
Distributed applications In general, test systems address two
the standard.
large classes of devices: long-lived
Unlike cardcage-based systems, and short-lived products. Many Extending the life of LXI systems
LXI modules can be easily distrib- devices developed for aerospace and In addition to the continued evolu-
uted in a test rack, across a lab or defense applications require test tion and assured compatibility of
throughout a building. This allows systems that are easy to maintain LAN technology, two additional ideas
you to place instruments where and update far into the future. In extend the life of LXI systems in
they can best meet the needs of contrast, rapidly evolving commer- particular: the ability to download
each measurement or application. cial wireless products require test new capabilities or personalities
Examples include the monitoring systems that can be developed into intelligent instruments and the
systems used in environmental rapidly and within budget—and be possibility of injecting updated or
applications, power generation easily reused as the products evolve. upgraded technology into SI-based
and the process-control industry. The ability to meet the needs of systems. These capabilities simplify
Another intriguing example is testing either long- or short-lived devices the task—and reduce the cost—of
of wireless base stations: protocol improves with LXI, which is designed keeping pace with evolving measure-
test equipment can be placed near to fulfill the promise of long-lived ment standards, wider frequency
or inside base stations located many measurement hardware, I/O and ranges and tighter accuracy require-
miles apart. software. ments. Taking a wider view, LXI
enables new levels of versatility by
With LXI, these solutions can be This need for stability is in sharp
making it possible to configure or
designed using the same instruments contrast to the rapid innovation
reconfigure a system through soft-
you would use for local applications cycles in today’s computer buses. For
ware changes to IEEE 1588 clocking
and rack-based systems. There is no example, in just a few years instru-
and LAN triggering.
need to create custom gateways— ments based on computer buses have
remote access comes without extra had to change from ISA to EISA to LXI also helps you address future
effort. Using your corporate intranet PCI and now to PCI Express (a serial organizational needs. Test-system
or the public Internet, large distances bus not compatible with previous experts are becoming scarce in
can be bridged easily and the connec- parallel implementations). many organizations and can’t be
tion is transparent to the end user. everywhere at once—onsite, offshore
or anywhere in between. With LXI,
you can place test systems virtually
anywhere on your intranet, enabling
your team to perform centralized
troubleshooting, remote monitoring
and more.

148 16. Value, Performance and Flexibility: The Promise of LXI


Reusing existing instruments and The LAN interface required for LXI Precise synchronization
software is a standard, no-cost feature of
The various forms of LXI devices most PCs. Also, LAN infrastructure Measurement accuracy depends on
make it easier for you to test your such as hubs, switches and routers precise synchronization of every
product across its entire lifecycle. In is either already available or can be device in a test system. While
some cases, a classic instrument can purchased at very moderate cost. LAN technologies are excellent for
be used on the bench or in a rack to For example, Fast Ethernet routers communication and control, their
develop and refine test routines that are available for less than US$75 at timing specifications are not strin-
can then be used with an equivalent consumer electronics stores. gent enough for measurement appli-
faceless instrument in the final test cations—especially in distributed
system. This concept can be extended LXI also lets software developers systems. The IEEE 1588 standard,
with synthetic instruments: through leverage their existing investments through its precision time protocol
the necessary SI software modules, a because test routines written for (PTP), addresses this shortcoming.
few functional building blocks can do standalone instruments will also
work with faceless modular equiva- The underlying technique—developed
the work of multiple RF/microwave
lents. System integration is also by Agilent Labs—relies on system
instruments.
faster because LXI utilizes the host devices that contain real-time clocks
Agilent also offers a range of I/O PC’s LAN interface and Web browser; and, via the PTP, enables system-
gateways and converters that make no time is spent installing and wide synchronization
it easy to create hybrid systems that configuring a GPIB or MXI interface
or installing software instrument In a typical LXI-enabled distributed
include LXI-based devices and your
front panels. application, the system will include
existing test assets. Bringing your
intelligent instruments capable of
system software forward to work
LXI-based remote devices provide performing measurement tasks on
with LAN requires nothing more
a low-cost, portable way to deploy their own, independent of the system
than simple address changes.
sensors, cameras, microphones controller. To make this approach
and more. Benchtop implementa- practical, the instruments will
Cost tions provide accurate, cost-effec- typically include a local clock that
tive instruments with built-in enables them to time-stamp measure-
LXI offers potential cost savings LAN connections (Figure 16.2). ments and events.
throughout the lifecycle of your Intelligent instruments can receive
systems. Those savings start with new measurement capabilities and When the synchronization process
the ability to incorporate, rather personalities via download, enabling begins, those devices identify the
than replace, much of your existing reuse for a variety of applications. most accurate clock in the system
instrumentation. Unlike other archi- and assign it the role of master clock.
tectures, LXI isn’t an “all or nothing” In addition to these initial savings, Figure 16.3 illustrates the rest of this
proposition. You can manage the cost LXI can help reduce support and elegantly simple process.
of transition by using devices such maintenance cost through its
as the Agilent E5810A LAN/GPIB enhanced ease-of-use, flexibility and
gateway to create hybrid systems stability.
that include existing GPIB-only
equipment alongside LXI-based
instrumentation. Figure 16.2. Classic instruments such as the Agilent 34980A
multifunction switch/measure unit offer LXI compliance
When you’re ready for an all-LXI test
system, it is likely to be less expen-
sive than a system based solely on
GPIB, VXI or PXI. This is especially
true when compared to VXI and PXI
because LXI doesn’t require costly
cardcages, slot-0 controllers or
proprietary interfaces and cables.

www.agilent.com/find/open
149
1. The master clock sends a sync What’s especially appealing about A closer look at LXI
pulse and the current time IEEE 1588 is that it works across
to every other device on the Ethernet—the same Ethernet being The LXI standard defines instrument-
network. All slaves set their used for instrument control. No specific requirements needed to
clocks to the master time. additional cables are required. ensure reliable, accurate operation
Depending on the size of the network in a system environment:
2. Each slave sends a time-stamped and its variation in latency times,
reply to the master. The master it is possible to achieve precise • Cooling
calculates the offset between the synchronization of LXI devices • Triggering
original transmission time of the located anywhere on a network—local
sync pulse and the various or remote. • Interrupt handling
reception times.
• Mechanical interfaces
To learn more about IEEE 1588, visit
3. The master sends an offset value the National Institute of Science • Software interfaces
to each slave, which adjusts and Technology (NIST) Web site at
its clock to compensate for the http://ieee1588.nist.gov. • Electromagnetic and radio
difference between the master’s frequency interference
sync pulse and its reception time
at the slave. After this initial Security • Network routing and switching

alignment, periodic sync pulses • Discovery


Security risks can be minimized
are enough to keep the slaves • Synchronization across multiple
through simple precautions such as
precisely synchronized to the devices
creating a private, protected LAN.
master clock. The result is a test
The standard capabilities of most
system that can address the most LAN is at the heart of LXI. However,
Windows PCs and many low-cost
demanding distributed measure- instead of modifying existing
networking products enable two
ment applications. standards, LXI clearly specifies the
viable approaches to security: one is
built around a router (with built-in interaction of proven standards in
firewall) and the other is based on five areas: physical implementa-
a PC equipped with two LAN cards. tion, Ethernet, programmatic
For a detailed description of both interface, instrument pages and
approaches, please see Chapter 10. synchronization.

Figure 16.3. In an IEEE 1588-enabled network, a simple process ensures precise synchronization
between all devices

Switch/router

2: Reply 2: Reply
2: Reply 2: Reply

A B D E
(slave) (slave) (slave) (slave)
1: Sync 3: Offset
C
Master clock

150 16. Value, Performance and Flexibility: The Promise of LXI


Physical implementation ming, Class C instruments provide Although not mentioned in the
an IVI driver API (application standard, LXI enables leverage from
To achieve physical consistency, the programming interface). Today, classic instruments into faceless
LXI standard begins with IEC- most instruments meet the class modular instruments and synthetic
standard rack dimensions. To help C specification. Over time, more instruments. Agilent is already
simplify system integration and instruments will implement Class moving in this direction with the
implementation, it also recommends B and A capabilities. introduction of synthetic instruments
the placement of various connections based on popular benchtop RF and
(Figure 16.4). For example, compliant • Class B. These devices are designed microwave products. By using the
instruments use the front panel for to enable simple synchronization same measurement hardware in
signal inputs and outputs plus indi- and distributed measurement both classic and modular instru-
cator lights for LAN, power and IEEE systems. They meet Class C ments, we’re boosting your ability to
1588 (synchronization). The rear requirements and add IEEE 1588 leverage test software as the system
panel is used for hardware triggering, synchronization. Class B also adds evolves.
power input and Ethernet communi- peer-to-peer and multicast LAN
cation. Each LXI module must meet messaging (required in Class B and
worldwide standard cooling and EMI A, permitted in Class C). Ethernet
shielding specifications.
• Class A. Devices in this category LXI uses the IEEE 802.3 networking
The LXI standard defines three types satisfy Class C and B requirements standard to define the appropriate
of instruments that can be readily and add a hardware trigger bus. connections, protocols, speeds,
mixed and matched within a test This bus enables triggering of LXI addresses, configuration and default
system. instruments in close proximity. conditions that must be implemented
Similar to the VXI backplane to ensure a consistent—yet easy-to-
• Class C. This is the base class and bus, the trigger bus is an eight- use—test system.
includes all of the requirements for line, differential-voltage bus that
the LAN interface and protocols, • Connections. LXI devices use
enables precise timing accuracy
LAN discovery, IVI driver interface standard RJ-45 connectors and
and dynamic trigger reconfigura-
and instrument pages plus recom- implement Auto-MDIX to sense the
tion for co-located instruments.
mendations for power, cooling, size, polarity of LAN cables (through or
indicators and a reset button. Class Physically, standalone LXI instru- crossover).
C devices are standalone or bench- ments may be full- or half-rack width
• Protocols. Compliant devices are
type instruments that replace GPIB and tall enough to accommodate
required to implement TCP (trans-
with LAN and harness the full the front-panel display and keypad.
mission control protocol), UDP
breadth of LAN’s capabilities. They Modular LXI instruments (without
(user datagram protocol) and IPv4
also utilize a Web interface (with a display or keyboard) are typically
(Internet protocol version 4). TCP
XML) for instrument set-up and half- or full-rack width and just 1U or
is the standard Internet protocol
data access. To simplify program- 2U high.
that will be used most often in
peer-to-peer messaging while UDP
Figure 16.4. The LXI standard strives for physical consistency that simplifies system integration is a low-overhead protocol that
and implementation will be typically used for multi-
cast messaging when high speed
Power delivery is critical.
(100-240Vac)
Ethernet 802.3
(RJ-45) • Speeds. The standard recommends
Trigger bus use of 1 Gb Ethernet (and permits
(Class A) 100 Mb) with auto-negotiation
to ensure that devices use their
optimum speed.
Cooling Height
(IEC rack units)
Shielding

Indicator
lights
Width
(IEC full- or half-rack)

Signals

www.agilent.com/find/open
151
• Addresses. LXI devices must Instrument pages Trigging and synchronization
support IP addresses (assigned
by the server), MAC addresses Every LXI-compliant device must One especially intriguing aspect of
(assigned by the manufacturer) be able to serve its own Web page. LXI is its triggering and synchroni-
and hostnames (assigned by the This page provides key informa- zation capabilities. LXI provides a
user). tion about the device, including its variety of optional triggering modes
manufacturer, model number, serial that are not available in GPIB, PXI
• Configuration. Compliant devices number, description, hostname, or VXI.
must support ICMP (ping server), MAC address and IP address. The
DHCP-based assignment of IP standard also requires a browser- The three classes of LXI devices
addresses, manual Domain Name accessible configuration page that implement these capabilities to an
Server (DNS) and Dynamic DNS. allows the user to change parameters increasing degree. As an example
Because DNS can translate domain such as hostname, description, IP of what is possible with LXI, all
names into IP addresses, it can address, subnet mask and TCP/IP Class B and A LXI instruments
contribute to the longevity of configuration mode. Accessing these (optional in Class C) can utilize
system software: IP addresses may Web pages is as simple as typing triggers embedded in LAN packets
change but domain names will not. the instrument IP address into the that can originate from any device
address line of any web browser. on the network—a PC or another
• Default conditions. As a safeguard, instrument. One device can send a
LXI defines a set of default LAN Agilent’s LXI-compliant instruments multicast message that triggers all
conditions and requires a “LAN go beyond the LXI requirements, instruments on the network without
configuration initialize” (LCI) providing monitor and control the need for a real-time computer.
switch that will reset a device to capabilities (see Figure 16.5). For Peer-to-peer messages can enable
this set of known conditions. example, you can set up a DMM, measurement scripts or cause data
command it to start making measure- to be passed from one LXI device
Programmatic interface ments and then read the results. to another without involving the
Some of our LXI devices even allow system’s host computer (a potential
Because the LXI standard you to download complete measure- communication bottleneck).
requires that all devices have an ment personalities (for CDMA, GSM,
Interchangeable Virtual Instrument or Wi-Fi, for example) into the instru-
(IVI) driver, it allows you to use ment and perform specific measure-
whichever programming language or ments with one command. The ability
development environment you prefer. to control an instrument through its
IVI-COM and IVI-C are well-estab- browser interface opens up a realm
lished industry standard drivers that of new possibilities for test engineers
instrument makers supply with their who need a simple way to access test
products. systems from virtually anywhere in
the world.
The LXI standard also mandates that
compliant devices implement LAN Figure 16.5. LXI specifies an informative instrument page that can be accessed with a standard
discovery, which enables the host PC Web browser
to identify connected instruments.
Currently, the LXI standard requires
use of the VXI-11 protocol, which
defines LAN-based connectivity for
all types of test equipment, not just
VXI. Going forward, future revisions
to the LXI standard may include
other proven discovery mechanisms
such as Universal Plug&Play (UPnP).

152 16. Value, Performance and Flexibility: The Promise of LXI


Exploring new possibilities Enhanced throughput Distributed testing
with LXI The flexibility of LXI provides two Current-generation systems use a
ways to boost system throughput. PC-centric approach in which the
LXI-compliant devices open up a
In one scenario, software routines computer controls basic instruments
number of useful new possibilities
can be run within the LXI module, and “dumb” devices. The PC sends
that are difficult—and in some cases
perhaps performing basic analysis commands and uses wait statements
impossible—to implement with
functions and simply passing results or queries to determine when an
traditional rack-and-stack or card-
(rather than data blocks) to the host operation is complete—and all data
cage systems. The following examples
PC. If necessary, advanced routines returns to the PC through a dedi-
are not meant to define the complete
can be run in the PC, which will cated I/O port. This is fine for small
set of possibilities: they are simply an
typically have greater computational systems but can become slow and
initial set of concepts that will grow
power than most LXI modules. In the inefficient in larger systems that use
as the use of LXI spreads.
other scenario, peer-to-peer commu- four or more instruments. While the
nication between LXI modules can speed of the I/O connection plays a
Easier transitions be used to coordinate their activities, role, successful operation requires a
eliminating bottlenecks that could skillful programmer who can manage
One of the biggest challenges in a occur if all messages were handled by the flow of both control and data.
new product’s lifecycle is the transi- the host PC.
tion of its test system from develop- Next-generation systems, as
ment to manufacturing. With LXI, embodied in LXI, make it possible
this transition can be achieved much Multi-site collaboration to apply a distributed approach that
more easily and cost effectively than utilizes the intelligence of the instru-
When a geographically distributed
with cardcage-based systems. ments. Much of the analysis and
team is working on a one-of-a-kind
synchronization can be performed
As an example scenario, engineers prototype, LXI makes it possible for
in the measurement hardware,
can utilize standard instruments team members to make measure-
offloading these chores from the PC.
during the R&D phase, using the ments from their desk, wherever it
Data flow is reduced because only
display and keypad to quickly may be. To help ensure system secu-
the results of the analysis are sent
access a wealth of measurement rity, standard security procedures
to the PC. Timing is simplified with
and analysis capabilities. In manu- can be implemented, such as using a
LXI Class B and A devices that can
facturing, a system containing the firewall and virtual private network
start their activities at a specific time
same LXI instrument in a faceless, (VPN). Typically, most LXI devices
or based on messages from other
modular form can use the software will be part of a system that has a
instruments. Instruments also can
and test routines developed with the dedicated LAN, but remote users
exchange information using peer-to-
standalone instrument. Unlike VXI or can gain secure access to the system
peer and multicast messaging. With
PXI, this ensures instrument-equiva- through its host PC.
this architecture, the PC and its I/O
lent precision and performance while path are less likely to become bottle-
also eliminating the overhead of a Synchronized systems necks in large, complex systems.
cardcage and proprietary interface.
With the timing capabilities of Class
A and B LXI devices, it’s possible to Long-distance operations
synchronize multiple systems within
Through the LAN interface, LXI
a building, between sites or around
makes it possible to place instru-
the world. This is enabled by IEEE
ments far from the PC and from each
1588, which has the ability to achieve
other. As an example, instruments
millisecond accuracy among devices
can be placed near the devices or
located anywhere on the network.
processes they are monitoring or
Possible applications include trend
controlling—and be connected to
and cause-and-effect analyses driven
existing LAN ports in a test lab
by data from multiple instruments or
or near a manufacturing line. LXI
systems. By time stamping all of the
devices can even be placed inside a
data, it can then be correlated and
text fixture, minimizing cable runs
analyzed in one or more computers
and enhancing measurement results.
to identify trends or cause-and-effect
relationships.

www.agilent.com/find/open
153
Expert troubleshooting traditional instruments such as spec- Peer-to-peer triggering
trum analyzers, signal generators and
Whether a system is located in the oscilloscopes. These fundamental By making it possible for one instru-
next room, the building next door or building blocks depend on PC ment or device to send triggers and
a site halfway around the world, your software that dynamically aggregates information to another, LXI frees up
system developer (or product expert) and “synthesizes” different measure- the PC to perform other, higher-level
can check its operation and trouble- ment tasks. tasks. Peer-to-peer triggering also
shoot problems. No travel is required: eliminates the need for an expensive
simply type an instrument’s URL As an example, an RF downcon- real-time controller to issue precise
or IP address into a standard Web verter LXI module could be used triggers to the instruments in a
browser and the instrument page will for spectral measurements in one system. Ultimately, overall test time
appear. test sequence and then be reconfig- can be reduced because techniques
ured for network measurements in such as wait states and status
another. To create the stimulus signal queries will be used less often in
Intelligent instruments for network analysis, simply adding system software.
a different LXI upconverter makes it
Without the size restrictions of
easy to change the output frequency
VXI and PXI, LXI enables use of
range without having to purchase Time-based triggering
intelligent instruments within a
an entirely new signal generator.
system. You can download measure- With IEEE 1588, time-based
Reducing the redundancy—and
ment personalities into a spectrum triggering may prove to be a
increasing the utilization—of these
analyzer, sophisticated signals into revolutionary way to synchronize
fundamental hardware elements
an arbitrary waveform generator measurements within systems and
helps trim the size and cost of test
or complex power sequences into a between instruments. For example,
systems (Figure 16.6).
programmable dc supply—and let the this method eliminates the need for
instrument handle the details. The trigger-specific external cabling so is
capabilities built into these instru- Synthetic instruments not limited by the distance between
ments help you save time, too. instruments. All measured data can
In addition to the attributes be time stamped, making post-test
You can reduce programming time mentioned earlier, SIs create two analysis easier, more efficient and
by taking advantage of the soft- additional possibilities. SI hardware more meaningful. System throughput
ware (and firmware) developed by and software modules can be used also increases because each instru-
the vendor rather than writing it to emulate obsolete instruments, ment can start at a specific time
yourself. Instrument set-up time can removing the burden (and cost) of rather than waiting for a trigger or
be reduced by creating configurations supporting outdated equipment in command.
in advance and recalling them as long-lived systems. SIs also make it
needed. Data transfers take less time possible to create and perform totally
because the instrument can make unique measurements that are not
measurements, perform the required currently possible with traditional
analysis and then send results—not instruments.
large data blocks—to the host PC.
Figure 16.6. LXI devices reduce the size and footprint of test systems
Rapid reconfiguration
LXI-based synthetic instruments
reduce system size and cost by
utilizing multi-purpose modules—
digitizers, waveform generators,
upconverters, downconverters and
more—that can be combined to create

154 16. Value, Performance and Flexibility: The Promise of LXI


Appendix 16A: Defining synthetic instrument is a reconfigu- Although this approach can be
rable system that links a series of applied to any type of instrument, it
synthetic instruments elemental hardware and software is especially well suited to RF instru-
components via standardized ments. As an example, an RF vector
In the mid 1990s, the U.S. Department
interfaces to generate signals or signal analyzer can be broken down
of Defense (DoD) assigned the U.S.
make measurements using numeric into a downconverter, a digitizer and
Navy the task of developing new types
processing techniques. The key word the associated analysis software.
of automated test systems (ATS) for
is reconfigurable: the elemental Similarly, an RF signal generator can
the testing of avionics and weapons
blocks can be arranged and rear- be reduced down to its elementary
systems in the factory, on the front
ranged via software commands to building blocks. By creating these
lines and anywhere in between. The
emulate one or more traditional building blocks as distinct hardware
project has six driving goals:
pieces of test equipment. modules and using software to control
• Reduce the total cost of ownership their arrangement and configuration,
To make it work, an SI contains as it becomes possible to create the func-
of ATS
many as four major components: tional equivalent of multiple instru-
• Reduce the time to develop and signal conditioners, frequency ments with a handful of modules.
deploy new or upgraded ATS converters, data converters and
numeric processors. The basic This approach can also reduce the
• Reduce the physical footprint of
block diagram shown in Figure 16.7 cost of system updates. Because
each system
describes most microwave instru- different types of building blocks are
• Reduce the logistics footprint via ments, including spectrum analyzers, based on different technologies, they
decreased spares, support systems frequency counters, network have different innovation cycles. For
and training analyzers and signal generators. example, downconverters contain
relatively stable technology but, in
• Provide greater flexibility through Unlike general purpose instruments, contrast, rapid advances in inte-
systems that are interoperable which are optimized to perform one grated circuit technology accelerate
among U.S. and allied services task (e.g., spectrum analysis or signal improvements in digitizer speed and
• Improve the overall quality of testing generation), the synthetic instru- resolution. With SIs, it should be
ment architecture is optimized to less costly to keep up with the latest
These are ambitious goals but provide greater efficiency in ATS by advances.
equipment manufacturers, defense reducing redundant elements such
contractors and the DoD believe as the digitizers and downconverters Not surprisingly, LXI is becoming the
they can be achieved over time by found in multiple instruments within preferred technology for synthetic
applying advances in commercial a system. The DoD expects these SI instruments. At the building-block
technologies. The greatest progress modules to come from a variety of level, communication between these
toward these goals may come from vendors, enabling easy mixing and components becomes a critical factor.
the use of synthetic instruments matching as requirements change Rather than relying on custom,
(SI). According to the Synthetic or modules become obsolete. What’s instrument-internal communication
Instruments Working Group, a more, any substitution of modules schemes, Ethernet offers the simulta-
should require only minimal changes neous benefits of excellent data rates
to the core system software. and the flexibility of peer-to-peer
 Includes joint participation of the
and concurrent communication via
DoD, prime contractors and suppliers.
TCP/IP.

Figure 16.7. Basic architecture of an RF/microwave synthetic instrument

RF/
microwave Analog Digital
signal signal data

Signal input Signal Signal Signal


conditioner Frequency conditioner Data conditioner Numeric
converter converter processor
Signal output Signal Signal Signal
conditioner conditioner conditioner

Control To/from
embedded CPU

www.agilent.com/find/open
155
Appendix 16B: Creating Create versatile solutions with Achieve efficient development
cost-effective measurement system-ready instrumentation with open software tools
solutions with Agilent Agilent Open instruments are Configure a typical system in less
Open to test your way designed for faster throughput and
easier integration—in test software
than 15 minutes with the Agilent
IO Libraries Suite, which supports
LXI solves the key problems faced and system racks. Choose classic literally thousands of instruments
by system developers: it cuts costs, benchtop instruments for R&D then from hundreds of vendors. Get your
reduces system size, simplifies use their modular, system-optimized systems up and running sooner with
integration, accelerates throughput equivalents in manufacturing—and industry-standard IVI drivers that
and provides more opportunities for run the same software with few or no put instrument functionality at your
reuse of both hardware and software. changes. To reduce software develop- fingertips—and work in the application
These benefits make LXI a test archi- ment time, many instruments let you development environment you prefer.
tecture for today and into the future. install measurement personalities
that address specific applications,
To help you fully realize these including Mobile WiMAX, jitter,
Develop hybrid systems that
benefits, we’ve adopted LXI as part phase noise and more. combine new and existing
of the Agilent Open concept (Figure assets
16.8). Your test system architecture
should give you choices. Its range
Simplify system communication Protect your existing assets by easily
of possibilities should fit your and connectivity integrating GPIB instruments into
requirements, your preferences and LAN- and USB-based systems with
your existing test assets—hardware, Choose the best connection for your Agilent interface gateways and
software and I/O. This is the power requirements through instruments converters. You can even add VXI
of Agilent Open, a combination of equipped with GPIB, LAN and USB and PXI equipment to LAN-based
proven standards and time-saving ports. You can connect those instru- systems via LAN slot-0 cards. Utilize
tools for test automation. By giving ments quickly and easily with the the multiple I/O ports of Agilent Open
you greater flexibility, Agilent Open Agilent IO Libraries Suite software, instruments to connect via GPIB now
accelerates the creation of cost- which supports the major test-system and LAN or USB in the future. Using
effective measurement solutions— interfaces—GPIB, LAN, USB, VXI and VISA, making the transition from
and enables testing, your way. RS-232C. With support for LXI, you GPIB to LAN or USB requires nothing
can control instruments and monitor more than simple address changes in
measurements remotely via the your system software.
Figure 16.8. Through Agilent Open and LXI, LAN Web servers built into Agilent Open
becomes the backbone of test systems that easily instruments. Agilent is leading the way in migrating
incorporate present and future test assets.
test systems to the advanced capa-
bilities of LAN. We’re continually
introducing new additions to what is
currently the industry’s largest port-
folio of LAN-enabled instruments. At
the same time, we’re also protecting
your investment in GPIB instruments
by offering devices such as the Agilent
E5810A LAN/GPIB gateway and the
82357A USB/GPIB interface.

To discover more ways to accelerate


system development, simplify system
integration and apply the advantages
of open connectivity, please visit the
Agilent Open Web site at www.agilent.
com/find/open. Once you’re there, you
can also sign up for early delivery of
future application notes in this series.

156 16. Value, Performance and Flexibility: The Promise of LXI


17. Transitioning from GPIB to LXI

Introduction A typical GPIB system Disadvantages. The biggest disad-


vantage may be the need to add a
More than 30 years after its creation, After more than three decades of GPIB card to the host PC, increasing
GPIB remains popular due to its widespread use, the basic structure both the cost and complexity of
ease-of-use and robustness. However, of a GPIB-based system is almost the system. This can be espe-
LXI (see Chapter 16) meets or beats second nature to engineers every- cially problematic with notebook
GPIB on both counts—and offers an where: it includes a controller (typi- computers that need an adapter for
array of other compelling benefits. cally a PC) configured with a GPIB the PC Card slot or an available I/O
From browser-based configuration card and up to 14 rack-and-stack port (e.g., a USB-to-GPIB adapter).
and troubleshooting to Ethernet’s instruments daisy-chained together Troubleshooting the GPIB card and
own 30-year history, LXI enables fast, with GPIB cables. The controller the associated I/O libraries may
efficient and cost-effective creation and instruments are usually located take a considerable amount of time.
and reconfiguration of test systems. within a few meters of each other Once everything is up and running,
By specifying the interaction of due to the length constraints on GPIB communication may be slower than
proven, widely used standards, LXI communication (although longer is possible with LAN and other
helps you conquer the challenges of distances are possible with GPIB bus alternatives.
product testing without overloading extenders)
your budget or your team. Depending on your test require-
Advantages. From a hardware ments, GPIB instruments may
This chapter compares GPIB and LXI, perspective, GPIB instruments are consume a lot of rack space and add
sketches hybrid system architectures, readily available from either your redundant or unnecessary capabili-
outlines a step-by-step approach to internal equipment pool or Agilent ties (e.g., multiple display screens).
system set-up, and describes how and numerous other vendors. These In some cases, 14 instruments may
to easily modify existing system highly specialized devices tend to be not be enough to fully test your
software to work with LXI devices. long-lived because they are generally product. With large multi-instrument
immune to changes in the system systems, bulky GPIB cables and their
Comparing system controller. They also include proven large connectors can be difficult to
measurement routines that provide route and dress within the confines
architectures accurate, reliable and repeatable of a system rack.
results. What’s more, many of the
Every test system depends on four System programming has its own
latest instruments offer enhanced
basic elements: measurement hard- challenges, starting with the basic
flexibility through downloadable
ware, system software, PC-to-instru- task of tracking down useful, reliable
personalities, which provide special-
ment connectivity and cabling to drivers for every instrument in the
ized measurements for applications
the device under test (DUT). As you system. GPIB systems generally
such as wireless communications.
consider the transition from GPIB require additional trigger lines that
to LXI, it’s worthwhile to consider Connectivity is simple and well- you must connect between instru-
the effects on all four aspects as understood with GPIB—and a 30-year ments and then activate via software
your preferred system structure history stands as testament to commands. Timing and synchro-
evolves from pure GPIB to GPIB/LAN its proven dependability. Routine nization within a system can also
hybrids to all LAN/LXI. programming is also relatively complicate programming because
simple, whether you choose to GPIB doesn’t provide a common
use Standard Commands for clock or trigger line.
Programmable Instruments (SCPI),
Interchangeable Virtual Instruments
(IVI) drivers or some other type
of drivers for communication and
control.

157
Typical LAN-based systems you can transition your system with an IVI driver and meets LXI’s
without changing its software. The physical specifications.
Making the transition to LXI doesn’t E5810A gateway can be mounted
require sweeping changes to your Scenario 3—All LAN. LXI-based prod-
in the system rack, which, with a
system architecture. Instead, a ucts are becoming widely available
LAN connection, is freed from the
variety of evolutionary system so it is now possible to evolve to an
distance constraints of GPIB.
structures are possible when using all-LAN structure. These systems will
LAN communication along with Scenario 2—GPIB plus LAN. A typical include one or more LAN routers as
LAN-enabled and LXI-compliant next step in the transition to LXI is needed to accommodate all of the
instruments. the addition of a LAN router between LXI instruments (see Figure 17.3).
the PC and the LAN/GPIB gateway Every instrument will be able to
In all cases, the starting point is (see Figure 17.2). This makes it take advantage of LAN’s speed while
a PC with a built-in LAN port: possible to incorporate GPIB, LAN utilizing low-cost I/O cabling. The
unlike GPIB-based systems, the PC and LXI equipment into a single browser-based interface within every
needs no physical modifications. system by connecting GPIB instru- LXI instrument will help speed and
However, the system structure does ments to a LAN/GPIB gateway and simplify instrument—and system—
require the addition of a switch then connecting the gateway and configuration and troubleshooting.
or gateway (external to the PC) to any LAN or LXI instruments to the The long reach of LAN and the
enable communication with multiple router. synchronization made possible by the
instruments. IEEE 1588 precision time protocol
.One important point is worth (PTP) will enable a variety of new
Scenario 1—GPIB-to-LAN. The easiest remembering: although many test capabilities and applications. (Please
initial transition is to use LAN to instruments are equipped with LAN refer to Chapter 10, Using LAN in
communicate with an existing GPIB ports, not all can be controlled via Test Systems: Network Configuration
system. A device such as the Agilent LAN. Some use the LAN port only to and Basic Security, for advice on
E5810A LAN/GPIB gateway (see communicate with external peripher- setting up a private, protected
Figure 17.1) enables remote access als—so it’s best to check the product measurement network using either a
to GPIB instruments via LAN—and manual or built-in help function to router-based or PC-based approach.)
eliminates the need to install a GPIB verify LAN-specific capabilities. Of
card in the PC. Addressing remains course, if an instrument carries the Please refer to Chapter 16, Value,
the same: your system software will LXI logo, it is has passed compliance Performance and Flexibility: the
see the gateway device as a GPIB testing and, at a minimum, can be Promise of LXI, for a closer look
interface even though it communi- controlled via LAN, has a browser- at the fundamental concepts and
cates via LAN. Because your instru- accessible Web interface, is provided advantages of LXI.
ments still look like GPIB devices,

Figure 17.1. A LAN/GPIB gateway can connect Figure 17.2. A router plus a LAN/GPIB gateway Figure 17.3. Using multiple routers enables
GPIB instruments to a PC’s LAN port enables connections of GPIB, LAN and LXI connection of local and remote LXI instruments
instruments to a PC’s LAN port to a PC’s LAN port.

LAN LAN
Router
LAN/GPIB LAN LAN
gateway
LAN/GPIB
GPIB gateway Router
GPIB
Router

GPIB instruments LAN and LXI Local LXI Remote LXI


GPIB instruments instruments instruments instruments

158 17. Transitioning from GPIB to LXI


Setting up an LXI system Step 3: Identify PC interfaces Step 5: Test communication
The Connection Expert, one of the
links
A demonstration is the best way to
see how quickly and easily you can key tools in the IO Libraries Suite If you’d like, Connection Expert can
configure a LAN-based system. To (see Figure 17.4), identifies and automatically test the communica-
provide a virtual demo, the following configures the various interfaces tion link—LAN, USB or GPIB—with
step-by-step procedure outlines the within the PC—LAN, USB, GPIB and every connected instrument identi-
suggested actions and tools that will serial (COM). It starts by automati- fied in Step 4.
simplify system configuration during cally recognizing the manufacturer,
initial setup and future changes. model number and serial number of
installed or attached interface cards Step 6: Configure LXI
and converters. Connection Expert instruments
Step 1: Connect LAN cables completes this step by configuring
the appropriate I/O libraries for each Start any Web browser, type in
The first step is to connect all of the
interface and converter. an LXI instrument’s IP address
instruments to the necessary LAN
or URL, and view the built-in
hardware (router, etc.) using stan-
instrument page. As defined by
dard LAN cables. Next, connect the Step 4: Identify connected the LXI Standard, an instrument
router to the system’s host PC. instruments page includes information such as
manufacturer, model number, serial
Step 2: Insert CD into PC Connection Expert can find and number, firmware revision code
identify instruments from dozens and instrument IP address. LXI
Install the Agilent IO Libraries Suite of vendors then help you configure instruments also provide a configura-
onto the host PC. Provided free with them appropriately. One click on tion page that lets you adjust LAN
Agilent instruments, the IO Libraries any instrument reveals information settings through the Web interface.
Suite works automatically with both such as manufacturer, model number, Agilent instrument pages generally
Agilent and NI interfaces (it is fully serial number and IP address (or include a product photo and links to
compatible with NI-488). URL). The IO libraries communicates additional information. “Intelligent”
with the instrument to find this instruments can also use this page
It typically takes less than 15 minutes information. to download firmware revisions or
to load the IO Libraries Suite and run measurement personalities.
the configuration tools. To simplify
configuration, the software recog-
nizes other installed libraries such Figure 17.4. The Agilent Connection Expert simplifies the configuration of PC-to-instrument I/O.
as NI VISA and configures itself in a
compatible manner.

www.agilent.com/find/open
159
Many Agilent instruments provide Simplifying software via search and replace. For larger
additional built-in pages that let programs or test suites, you can
you interact with the instrument changes modify the device declarations within
and perform various tasks: make the program. You can also use Agilent
Making the transition to LXI doesn’t
measurements, generate signals, IO Libraries Suite, which allows a
require sweeping changes to your
close channels, read values and table of aliases. This approach may
system architecture or your system
display results (see Figure 17.5). cause slightly slower communication
software. Four important items can
Some will also let you try program but provides a convenient way to get
simplify the process of modifying
commands or command sequences your system up and running.
your system software to communi-
and verify the instrument’s response.
cate with LXI-compliant devices.
Agilent IO Libraries Suite, Agilent VXI-11
Connection Expert and the LXI Dual-interface instruments From the perspective of a PC applica-
browser interface are a powerful
tion, many instruments implement
combination that can reduce set Many of Agilent’s GPIB instruments
the VXI-11 communication protocol
up time from days to minutes. Best that are updated to LXI compliance
that makes LAN I/O look just like a
of all, the IO Libraries Suite and will have both LAN and GPIB ports.
GPIB connection. In practice, this
Connection Expert are designed to These instruments can be used via
means software written for GPIB is
work with instruments from virtu- the GPIB port without modifying
likely to work with identical LAN-
ally every manufacturer. Agilent your existing software or through
enabled instruments that implement
customers can download the IO the LAN port with a simple address
VXI-11.
Libraries Suite at no charge from change in your program. For smaller
www.agilent.com/find/open. programs, you can change addresses
from GPIB to IP either manually or Command-compatible
instruments
Figure 17.5. Many of Agilent’s LXI instruments include built-in web pages that let you configure the
Instruments that are command-
device and make measurements. For example, this page on the 34980A multifunction switch/mea-
sure unit makes it easy to configure each module in the system.. compatible with older instruments
can be used with your existing
software. As an example, the Agilent
34410A and 34411A digital multime-
ters have a compatibility mode that
mimics the widely used 34401A or
E1412A DMMs. The LXI-compliant
34410A and 34411A, equipped with
both GPIB and LAN interfaces, can
replace a 34401A in a system with
either no changes (GPIB) or minor
changes (IP addressing for LAN) to
the system software.

160 17. Transitioning from GPIB to LXI


Drivers Conclusion
Many manufacturers are modifying GPIB has served the test and
existing instruments to achieve Class measurement community well for
C LXI compliance. In most of these decades and will continue to be an
cases, the existing driver should important asset for years to come.
work correctly even if you switch to However, LXI provides not only the
the LXI version of the same model. ease-of-use and robustness of GPIB
The IVI drivers required by the LXI but also includes capabilities such
standard support another possible as browser-based configuration and
solution: “class drivers,” which troubleshooting that enable fast,
enable instrument substitution. efficient and cost-effective creation
Instruments within a specific class, and reconfiguration of test systems.
such as the DMM class, for example,
can be substituted for each other With a series of incremental changes
within a test system. The one caveat to your system architecture and
is the possibility of different results software, you can make the shift to
if, for example, you substitute a the speed, distance and performance
class-compatible 4½-digit DMM for a advantages of LAN and LXI.
6½-digit model.

www.agilent.com/find/open
161
162 17. Transitioning from GPIB to LXI
18. Creating Hybrid Test Systems with PXI, VXI and LXI

Introduction Assessing modular Making all of that work with accept-


able performance often requires
It’s common to associate certain systems a powerful PC that can process
types of instrumentation with the and analyze measured data while
Both PXI and VXI require several
stages of your product’s lifecycle. also controlling the hardware and
discrete elements—a mainframe, plug-
For example, benchtop instruments providing the user interface. When
in cards, I/O, PC and software—to
are often used in R&D because they an external PC is used as the system
create the functionality of one
enable interactive control of specific host, it will require the installation
standalone instrument or perhaps
measurements and provide rapid and configuration of an interface
a complete rack-and-stack system
feedback. As your product moves to card. When an embedded controller
(Figure 18.1). Achieving equivalent
manufacturing, modular solutions is used, this may require a larger
measurement and analysis capabili-
such as PXI or VXI are sometimes mainframe that can accommodate
ties requires that large amounts of
used because they can reduce the the controller and the various plug-in
data be moved within the mainframe
size of automated test systems. cards. While this approach elimi-
(or chassis), various plug-in cards
nates the interface to an external
Unfortunately, in the transition from and the host PC. Some amount of
PC, it still requires that a monitor,
benchtop to modular instruments, programming, by the end user or
keyboard and mouse be connected to
the lack of leverage—in hardware, a system integrator, is typically
the embedded PC.
software and test strategy—can be required to achieve the needed level
costly and time consuming. LXI of functionality. The resulting soft- Although this somewhat complicated
offers the potential to change this ware application provides the user approach has become popular in
situation by offering related or interface as well as most (if not all) certain applications, it is not a
identical products in multiple form of the measurement capabilities, data universally useful solution, and it has
factors (including benchtop, modular, displays and data analysis routines. advantages and disadvantages that
and synthetic instruments) and are worth a closer look.
making it easier to leverage your
existing test strategy and system soft-
ware across your product’s lifecycle. Figure 18.1. A typical VXI system
This chapter compares PXI and VXI
with LXI, sketches hybrid system
architectures that incorporate your
existing test assets and describes
what will be possible in the future
as you migrate to fully LXI-based
systems.

163
Advantages of PXI and VXI Disadvantages of PXI and VXI
Programming register-
Both PXI and VXI have useful Both PXI and VXI have shortcom- based devices
advantages in hardware, connectivity ings that can affect your ability to
and programming when compared to create a system that fully satisfies Because PXI and VXI are leveraged
rack-and-stack systems. the budgetary, technical and lifecycle from computer buses (PCI and VME),
requirements of a test specification. their plug-in cards usually depend on
Hardware. One key advantage is the register-based operations to read or
density of switching, sourcing and System host. Unlike a typical rack-and- set attributes, initiate measurements,
measuring capabilities that can be stack system, a PXI- or VXI-based load or unload data, and so on. While
packed into a single mainframe. PXI system can be heavily dependent on this type of low-level programming
and VXI will usually be smaller than the performance of the host PC—and enables detailed computer control
a rack-and-stack system with similar higher performance commands a of each module, it can be quite
functionality. PXI and VXI also have higher price. What’s more, the PC- complicated and time consuming.
an edge over rack-and-stack in trig- dependent approach does not scale
gering and synchronization, thanks well for large, complicated systems: One popular solution is device
to their high-speed backplanes and as more modules move more data drivers, which handle the low-level
included triggering capabilities. more often, the PC can become a details and enable programming
processing bottleneck that slows at a higher level. The best choice
Connectivity. PXI and VXI offer a overall system performance. of driver depends on the type of
variety of I/O alternatives: MXI, hardware or software being used.
GPIB, LAN, USB, FireWire and serial. Embedded controllers come with For example, National Instruments
This allows you to make case-by-case their own set of shortcomings. uses IVI-G drivers with LabVIEW and
tradeoffs between performance and Because these are a specialty item IVI-C drivers with LabWindows. While
convenience. produced in limited quantities, they IVI-C and IVI-G drivers are available
typically cost three to eight times for many Agilent instruments, Agilent
Programming. System creators can as much as an equivalent desktop and others have provided IVI-COM
use graphical or text-based develop- PC. They also tend to lag behind the drivers. These are language- and
ment environments to create the latest advances in performance and platform-neutral and one version will
required measurement and analysis capabilities. work in all Microsoft® COM (and
functionality. While it can be difficult
compatible) environments, and with
to work with register-based PXI Hardware. In addition to the high
Microsoft Excel. Not only does this
and VXI plug-in cards, the use of entry cost of PXI and VXI, you may
provide additional flexibility because
device drivers can greatly simplify need to buy a mainframe that has
you can work in your preferred
communication and programming more slots than needed if you want
development environment, but it
(see “Programming register-based to allow for future expansion. Once
also can enhance your productivity
devices”). The resulting measurement a mainframe is filled, there is also
through features such as IntelliSense
solution may be smaller and faster the potential cost of adding another
pop-up menus that provide onscreen
than an equivalent rack-and-stack mainframe if the system needs just
command-completion help.
system built with benchtop GPIB one more plug-in card.
instruments.
When the required functionality
isn’t available in a modular format it
will be necessary to add bench-type
instruments to the system. Examples
include many RF measurements as
well as high-wattage power supplies.
The inclusion of standalone instru-
ments can increase the complexity
of both system integration and
programming. It may also negate the
size advantages of VXI or PXI.

164 18. Creating Hybrid Test Systems with PXI, VXI and LXI
Connectivity. Using either MXI or GPIB Exploring LAN-based Scenario 1: VXI and GPIB
as the interface adds hardware cost
and configuration complexity to an hybrid systems If a VXI mainframe contains a GPIB
external host PC. slot-0 card, it can be connected to the
As earlier chapters have noted,
PC via LAN by adding an interface
Programming. Because most PXI and LAN is rapidly gaining favor as the
converter such as the Agilent
VXI devices lack any sort of built- interface of choice for automated
E5810A LAN/GPIB gateway (Figure
in user interface—front panel or test systems. While the earliest
18.2). With the gateway connected
browser-based—you typically have to LAN-enabled instruments offered
between the VXI mainframe (GPIB)
purchase, install and configure some inconsistent implementations of
and the router (LAN), any applica-
type of software to control even the the interface, the LXI standard now
tion running on the PC will be able
simplest device. Additional program- ensures a consistent approach that
communicate transparently with the
ming may be required to perform a makes it possible to use compliant
VXI hardware as GPIB devices.
measurement, manipulate the data instruments from multiple vendors.
and analyze the results. What’s more, Chapter 16 offers a closer look at • Advantages. This hybrid structure
T&M-specific software that provides LXI. eliminates the need to install a
these capabilities tends to be much GPIB card in the PC. With the
In most cases, it is relatively straight-
more expensive than commercial gateway, addressing can be kept
forward to create hybrid systems
programming environments available the same so no software changes
that utilize LXI devices alongside
from Microsoft and other vendors. will be required.
GPIB, PXI and VXI hardware. A
Cost. Both PXI and VXI incur a hybrid structure lets you harness • Disadvantages. System performance
large overhead cost in the main- the advantages of each architecture may decrease if the gateway cannot
frame, controller, connectors and within a single system. In addition keep pace with the demands of
I/O subsystem. PXI and VXI both to saving money by protecting your any high performance measure-
require a considerable investment existing investments in test assets, ment cards installed in the VXI
before the first module can be used. this approach also helps you save mainframe.
Additionally, the per-slot overhead time because you can continue using
costs can be prohibitive when the familiar hardware, interfaces and
Figure 18.2. With a router and a LAN/GPIB
PXI or VXI mainframe contains software. gateway, test software on the PC can commu-
low-cost modules such as digital IO, nicate transparently with VXI instruments, as if
A typical LXI-based system starts they were GPIB devices.
DACs, or simple switching.
with a host PC and its built-in LAN
port, which provides a connection to
local and remote LXI-based devices
through commercially available LAN
LAN switches or routers. This is Router
also the starting point for hybrid LAN
configurations that include LXI LAN/GPIB
devices working alongside a VXI or gateway
PXI mainframe. Today, four possible GPIB
scenarios are likely and feasible.

VXI mainframe LAN and LXI


with GPIB slot 0 instruments

www.agilent.com/find/open
165
Scenario 2: VXI and LAN Scenario 3: Embedded Figure 18.3. Adding a LAN slot-0 card to a VXI
mainframe lets you create a LAN-based hybrid
When a VXI mainframe is equipped
controller VXI/LXI system..
with a LAN slot-0 card, adding it If a PXI- or VXI-based system is
to the system network is as simple using an embedded controller within
as connecting it to the LAN router the mainframe, the controller can LAN
(Figure 18.3). Even if the LAN- be connected to the test-system Router
equipped VXI system is not LXI network through its built-in LAN
compliant, it can coexist on the port. The PXI or VXI portion of the LAN
network with any LXI devices. system would still be controlled by
the existing software running on
• Advantages. Every instrument in
the embedded PC. To simplify the
the system—LXI or VXI—can utilize
overall system structure, the existing
LAN’s I/O speed. If the system
software could be modified to control
software is already programmed
the LXI devices, eliminating the need
to communicate with the VXI
for an external PC that controls only
hardware via LAN, addressing
LXI devices (Figure 18.4).
should remain the same so few VXI mainframe LAN and LXI
or no software changes will be with LAN slot 0 instruments
• Advantages. This is a straightfor-
required. Any required program- ward way to add the advantages of
ming changes should be relatively LXI to a PXI- or VXI-based system.
modest, even when you replace an If suitable modular LXI devices are
MXI or FireWire slot-0 card with a available to provide functionality
LAN slot-0 card. that isn’t available in PXI or VXI Figure 18.4. An embedded PC with a LAN port
formats, the resulting system can be used as the system controller in a hybrid
• Disadvantages. Depending on the
may also be simpler and more VXI/LXI or PXI/LXI system.
devices installed, this configuration
compact than one that uses GPIB
may provide less performance than
instruments.
a purely backplane-based system
(e.g., one that uses an MXI inter- • Disadvantages. Modifying the Router
face) but should be faster than the existing software to control the
LAN/GPIB configuration described LXI devices could hinder system LAN
in Scenario 1. performance by putting an addi-
tional burden on the embedded PC;
however, this may have a modest
 One example is the VXI Technology
EX2500 LXI-VXI Gigabit Ethernet
impact given the built-in intel-
Slot-0 Interface. ligence of most LXI devices. This VXI or PXI
system structure also requires the mainframe with
embedded PC
addition of a LAN router, which
will cause a slight increase in LAN and LXI
system cost and complexity. instruments

166 18. Creating Hybrid Test Systems with PXI, VXI and LXI
Scenario 4: LXI-compliant Going beyond hybrid Figure 18.5. An LXI-compliant mainframe brings
the benefits of PXI switching to a hybrid PXI/LXI
mainframe to all-LXI system.

Some manufacturers of PXI-based As an alternative to PXI or VXI,


instrumentation are actively LXI eliminates the overhead and
supporting the LXI standard. To ease LAN
complexity of system develop- Router
the transition from PXI to LXI, at ment with a backplane. When
least one vendor has created Class using benchtop and modular LXI
C LXI-compliant mainframes that LAN
instruments to create a system, the
support a wide variety of switching approach is conceptually similar
modules. With this approach, you to using GPIB instruments: each
simply install the switching cards device contains built-in measurement
in an LXI-compliant mainframe functionality (and intelligence) and
equipped with a PXI slot-1 interface, provides specified measurement
which is connected (through its LAN accuracy. However, LXI adds trig-
port) to the system router (Figure gering and synchronization capabili-
18.5). ties that go beyond GPIB—and can LXI compliant LAN and LXI
rival or exceed PXI or VXI. With PXI mainframe instruments
• Advantages. This solution provides
these capabilities built into LXI
the advantages of existing PXI
instruments, your programming
switching cards, including high
effort can focus on test management
density and a variety of capabili-
and the management, analysis and
ties, within an LXI-based system.
reporting of results. Figure 18.6. Using multiple routers enables easy
For new systems, this approach
connection of local and remote LXI devices to a
is also likely to be less expensive As more LXI-based products PC’s LAN port.
than an all-PXI solution that uses become available, it will be possible
either an embedded controller or a to evolve to an all-LAN structure.
PC-to-PXI interface. These systems will include one or
more LAN routers as needed to
• Disadvantages. Currently, this LAN
accommodate local and remote LXI
approach is supported only for PXI
instruments (Figure 18.6). Every
switching cards. Future develop-
instrument will be able to take Router
ments may make it possible to
advantage of LAN’s speed while
support the demands of register- Router
utilizing low-cost network cabling.
based PXI measurement cards.
The browser-based interface within
All four of these scenarios enable a every LXI instrument will help speed
cost-effective transition that protects and simplify instrument or system
your current investments in system configuration and troubleshooting.
hardware and software. However, The long reach of LAN and the
these hybrid structures also entail synchronization made possible by the Local LXI Remote LXI
IEEE 1588 precision timing protocol instruments instruments
compromises that may be most easily
remedied in the future with a LAN- will enable a variety of new capabili-
centric, all-LXI system architecture. ties and applications.

 The Pickering Interfaces 60-100 and  The use of LXI-based synthetic instru-
60-101 are seven-slot chassis that ments is more similar to PXI and VXI
support a variety of 3U PXI modules. in philosophy and approach. This
topic is covered in detail in Chapter 19.

www.agilent.com/find/open
167
Conclusion
The PXI and VXI architectures offer
a number of advantages over rack-
and-stack approaches, but they also
present some disadvantages than can
limit a test engineer’s ability to meet
technical and economic constraints
in a test system. LAN-based hybrid
systems that incorporate PXI or
VXI instruments can be a cost-effec-
tive way to leverage equipment
and programming efforts across
the product life cycle. This chapter
explored four hybrid options that
deliver the benefits of LAN connec-
tivity while protecting investments
in existing instrumentation. As
LXI solutions are becoming more
pervasive across the T&M spectrum,
the transition to an all-LAN LXI
approach is becoming increasingly
feasible and attractive from both
functional and financial perspectives.

168 18. Creating Hybrid Test Systems with PXI, VXI and LXI
19. Assessing Synthetic Instruments

Introduction This chapter will help you assess These are ambitious goals, but the
the potential value of SI relative to DoD, defense contractors and equip-
For decades, automated test systems your present or future requirements. ment manufacturers believe they can
(ATS) built around benchtop instru- It presents a brief history of SI, be achieved over time by applying
ments have been the dominant compares a rack-and-stack system advances in commercial technologies
test-system architecture. In the late to an SI-based system, describes the (LXI is one important recent example).
1980s, modular VXI-based systems initial applications of SIs and illus-
addressed several shortcomings trates the emulation of conventional The greatest progress toward these
of the rack-and-stack approach. In instruments with SIs. goals is coming from the use of
particular, card-based instruments SIs. According to the Synthetic
mounted in a multi-slot mainframe Reviewing the roots of SI Instruments Working Group (SIWG),
a synthetic instrument is a recon-
reduced the size and weight of
systems. The speed and capabilities In the mid 1990s, the U.S. figurable system that links a series
of the VXI backplane also enabled Department of Defense (DoD) of elemental hardware and software
enhanced triggering and faster assigned the U.S. Navy the task of components via standardized
data transfers. However, all such developing new types of ATS for interfaces to generate signals or
commercial technologies tend to the testing of avionics and weapons make measurements using numeric
have lifecycles that are much shorter systems. This ongoing project has six processing techniques. The key word
than a typical aerospace or defense driving goals: is reconfigurable: the elemental
system, possibly affecting long-term blocks can be arranged and rear-
maintenance and support of an ATS. • Reduce the total cost of ownership ranged via software commands—and
of ATS the signals rerouted via switching—
These issues are the driving force to emulate one or more types of
behind an approach called synthetic • Reduce the time to develop and traditional test equipment.
instrumentation (SI). The concept deploy new or upgraded ATS
is simple: SIs let you configure and To achieve this flexibility, an SI
• Reduce the physical footprint of will contain as many as four major
reconfigure modular hardware and
each system components: signal conditioners,
software elements to create the
functionality of multiple measure- frequency converters, data
• Reduce the logistics footprint via
ment devices. This building-block converters and numeric processors.
decreased spares, support systems
approach makes it possible to update For example, the basic block diagram
and training
or upgrade an ATS or a Test Program shown in Figure 19.1 describes most
Set (TPS) by simply replacing a • Provide greater flexibility through microwave instruments, including
single module such as a digitizer or systems that are interoperable spectrum analyzers, frequency coun-
downconverter. It can also reduce the among U.S. and allied services ters, network analyzers and signal
burden of software updates over the generators.
lifetime of an ATS. • Improve the overall quality of
testing
 Includes joint participation of the
DoD, prime contractors and suppliers.
Figure 19.1. Basic architecture of an RF/microwave synthetic instrument

RF/ Analog Digital


microwave signal data
signal
Signal Signal Down- Signal Digitizer Signal Numeric
input conditioner converter conditioner conditioner processor

Control To/from
embedded
Control CPU

Signal Upconverter Signal Arbitrary Signal Numeric


Signal waveform processor
output conditioner conditioner conditioner
generator

169
Unlike general purpose instruments, Software is another matter. Currently, Comparing present and
which are optimized to perform one substantial effort is required to
task (e.g., spectrum analysis or signal create the software modules that future approaches
generation), the synthetic instru- provide essential functionality such
Whether you view SIs as a near-term
ment architecture is optimized to as the measurements and calibration
requirement, a long-term curiosity or
provide greater efficiency in an ATS routines needed to replace a stand-
something in between, a comparison
by reducing redundant elements such alone instrument. There is also the
with traditional approaches reveals
as the digitizers and downconverters time and effort required to support
some interesting highlights. Within
found in multiple instruments used software written in-house. If you add
the context of the DoD’s driving
within current systems. to that the typical effort required to
goals, it is easy to illustrate the
create the mainline test program or
The DoD expects these SI modules advantages of synthetic instruments
suite of TPS, then the total up-front
to come from a variety of vendors, over GPIB, VXI or PXI solutions.
development cost is acceptable only if
enabling easy mixing and matching SIs are required.
as requirements change or modules Reviewing purpose and usage
become obsolete. What’s more, any Looking ahead, SI vendors recognize
substitution of modules—replacement the need for software tools that will The main purpose for a military-
or “technology insertion”—should reduce effort, accelerate development related system is to test devices or
require only minimal changes to the and ensure accurate, repeatable assemblies in locations such as the
core system software. results. As these tools become readily flight line, an aircraft hangar or a
available and reuse of software repair depot. The same system may
Putting SIs in perspective modules becomes more commonplace, also be used in the original manufac-
the development costs for SI-based turer’s facility.
SIs are clearly intended to address systems should decrease. However,
a specific set of needs that are vendors need to address one key When the test system is fielded for
especially important to the military, issue: the interchangeability of soft- military use, the top priority is
but may also be relevant to some ware components. If vendor substitu- to identify and replace defective
commercial organizations. For tion is equally viable with both the electronic systems or assemblies
example, if your company is bidding hardware and software elements of as quickly as possible to return an
on a contract that requires or gives SIs, then the major benefits of the aircraft or vehicle to operational
preference to the NxTest concept, NxTest vision will be within reach. service. The second priority is
then SI will be required. Longer to repair the defective system or
term, commercial organizations that assembly and put it into the inven-
utilize outsourcing and offshore
Weighing commercial tory of spares.
manufacturing may benefit from the applications
use of SIs in test systems they define The usage model for such test
or provide. If you develop systems within a systems involves rapid deployment,
commercial organization, the busi- perhaps into areas of conflict. Putting
ness model for most automated test the systems closer to the aircraft or
Assessing the situation applications probably can’t support vehicles they support translates into
the higher initial costs of developing higher levels of operational readi-
Two factors will affect the rate SI-based solutions. Of course, this ness—and reduced downtime—for
of SI adoption in the near term: requires a case-by-case assessment, those aircraft or vehicles. In this
hardware availability and software and only you can decide if the poten- scenario, flexibility and easy main-
effort. Gradually, a wider variety of tial benefits outweigh the current tenance are more important than
hardware is becoming available, and tradeoffs. Some early adopters may absolute measurement throughput.
Agilent is in the vanguard of both SI find SI to be very useful in a specific
and LXI. The LXI standard, which application.
addresses the needs of synthetic
instrumentation, is perhaps the most Over the longer term, the promise of
promising platform for SI due to SI is well worth watching for many
the potential longevity of the LAN commercial firms. As more hardware
interface (see Chapter 16 for more and software modules become
on LXI). available, the economic benefits will
increase for commercial applications.

170 19. Assessing Synthetic Instruments


Looking at current solutions VXI and PXI With regard to system longevity,
With these modular architectures, both modular architectures fall short
In this context, systems built around the key advantage is the combination because they are based on computer
benchtop GPIB instruments, modular of measurement performance and backplanes that tend to evolve
architectures such as VXI and PXI, triggering capabilities available in a rapidly then become obsolete. For
or a combination, have noteworthy compact form factor. Also, there is example, VXI is based on the 1980s-
advantages and disadvantages. only one display, which is connected vintage VMEbus, which is gradually
to either an external or embedded disappearing from the computer
GPIB instruments controller. The ability to embed the world. Similarly, PXI is based on the
The foremost advantage of GPIB controller in the VXI or PXI main- PCI bus, which is being replaced by
devices is the combination of frame also saves space and simplifies PCI Express. As time passes, it will
measurement capabilities, perfor- system transport. become more expensive to support
mance, accuracy and repeatability and sustain VXI- and PXI-based
contained in one unit. Essentially Because VXI and PXI are based on systems.
every type of measurement from DC flexible, reconfigurable modules, the
to low frequency to RF is available in SIWG accepts them as SIs within the System software
this format. What’s more, the cumu- DoD NxTest vision. However, some With any of the three major test-
lative expertise of the vendor, the functions or measurements (such as hardware architectures, an essential
science behind an accurate measure- high frequency RF and high-wattage key to success is the ability to reduce
ment, is built into the firmware of power supplies) are not available the time, effort and expense of
each instrument. For system integra- in VXI or PXI. The cost of a VXI- or software development and support.
tion, GPIB is well established as the PXI-based solution is also generally This depends heavily on development
dominant architecture for automated higher than an equivalent rack-and- tools and environments that enable
testing. stack system. greater reuse of software in system
creation or modification. Today, text-
On the downside, a system built with based programming with the variants
just GPIB instruments can be so large Figure 19.2. Redundant or unneeded of C is most commonly used for
and heavy that it is difficult to move hardware such as instrument displays,
high-performance test systems. Other
frequently or across long distances. keypads and digitizers add extra volume
solutions such as Agilent VEE Pro
One obvious reason for this is the and weight to rack-and-stack systems.
and NI LabVIEW provide graphical
number of front-panel displays tools for system creation.
and keypads that go unused in a
computer-controlled system (Figure Whichever tools you prefer, the use
19.2). Less obvious in a large test of device drivers can simplify the
system is the number of redundant programming task. This is especially
digitizers, frequency converters and true with register-based VXI and
other block-diagram elements within PXI devices: drivers allow program-
many of the instruments. ming at a higher level by handling
low-level operations such as reading
It is also costly to upgrade such a and setting card attributes, initiating
system. For example, when a faster, measurements, and loading or
wider-bandwidth digitizer becomes unloading data. Although program-
available, it may take several months ming at the register level enables
before it is available in a GPIB detailed computer control of each
instrument—and it may be necessary module, it can be quite complicated
to replace the existing instrument to and time consuming.
get the benefits of the new digitizer.
What’s worse, changing an instru-
ment may require software modifica-
tions, which entail additional time
and expense to make the system
software work with the new device.

www.agilent.com/find/open
171
Understanding the SI approach type of system is smaller, lighter and Deciding if SIs are right for you
easier to transport. It also simpli-
With SI, the fundamental elements fies support by making it easier to In the near term, SIs offer useful
of multiple instruments are real- replace or upgrade individual instru- benefits that must be weighed against
ized through functional modules ment modules as needed. the tradeoffs. The main overall
such as digitizers, upconverters, benefit of the modular, building-block
downconverters and arbitrary A rear-panel view of the SI system approach is greater flexibility in
waveform generators. By arranging would reveal LAN ports on each less space. This approach will also
and rearranging the interconnec- module. By creating LXI-compliant make it easier to replace individual
tion of these building blocks and SIs, Agilent is providing a PC-to- modules or implement technology
the associated software modules, it instrument interface that delivers the insertion when new, updated
is possible to emulate the function- stability, longevity and performance capabilities are available. Longer
ality of an oscilloscope, a spectrum of LAN. This simplifies PC connec- term, this should also make it easier
analyzer, a power meter and other tivity and also helps lower the total to replace any modules that become
instruments in much less physical cost of ownership for the ATS. obsolete.
space. Operationally, this is a
software-intensive process in which The rear view would also show a Currently, the major tradeoff is the
the system could perform a series of hardware trigger bus cable that intensity of the software effort, but
tests by configuring the hardware, complements a variety of LAN-based as mentioned earlier, this is likely to
any needed switching and the associ- triggering capabilities. In combina- change as hardware vendors begin to
ated software module for one type of tion, these triggering capabilities provide the necessary software tools.
measurement and then reconfiguring equal or surpass the capabilities VXI Looking at the whole system, another
the hardware, switching and soft- and PXI. possible tradeoff is in the ability
ware modules for the next type of of SI-based systems to scale grace-
System software fully: larger systems will tend to put
measurement.
The points mentioned earlier greater demands on the host PC. A
System hardware regarding software development and higher-performance PC may be able
As a comparison, a rack-and-stack maintenance still apply. Currently, to handle the demands of a complex
system containing a spectrum creating the necessary measurement system, but a faster processor (or
analyzer, three microwave sources and calibration functionality requires multiple processors) and more
and a power meter might occupy a significant development effort. memory also means a higher price
18U of rack space. Using a variety However, any software modules for the PC and therefore a higher
of half-rack SI modules that don’t designed for transportability can be total cost for the system. The use of
have displays or keypads, the same reused with other SI-based systems intelligent, LXI-based instruments,
functionality occupies 11U of rack and potentially with other hardware which can offload many computing
space, as shown in Figure 19.3. This modules. tasks from the PC, is another way to
head off this potential issue.
Figure 19.3. An SI-based system can provide equivalent (or greater) functionality in less rack space.

Upconverters

Spectrum
Downconverter analyzer
11U Microwave
sources
IF digitizer 18U
Signal processing for downconverter

Arbitrary waveform generator


Provides modulation for upconverters

Power meter

172 19. Assessing Synthetic Instruments


Exploring the initial The vision is to use a common, Typically, OEM testing occurs before
scaleable hardware platform comple- the card, module or subsystem is
applications mented by common test software delivered to the military and put into
and database management software service. If the same test system—both
Today, SIs are a good fit with certain
that will be networked across all hardware and software—is used by
problems but are not quite ready
levels of service and support, and both the manufacturer and the mili-
for others. For example, SIs are not
across all branches of the military. tary, there can be greater confidence
optimized for single-purpose applica-
In practice, the flow of information in the results and potentially lower
tions (e.g., just spectrum analysis),
starts in the field when an aircraft or costs in system development, deploy-
one-box testers on the production
vehicle detects an anomaly in one of ment and support.
line, benchtop applications in R&D,
its electronic systems. From that, the
or short-lived test systems. As more
hardware and the information flows
software tools become available, the
from one stage to the next:
situation will become more favorable
for these scenarios. • Flight-line test. In this operational,
front-line application, the test
In contrast, SIs are well suited to
system receives a message from
situations that require multiple
the aircraft or vehicle and flags it
identical ATSs or when a system will
for attention. When it returns to
be in service for many years. The
base, the critical need is to quickly
flexibility of SI is also a good match
identify and swap out the correct
when you need to test a wide variety
subsystem. The defective unit is
of similar devices with a limited set
recorded in the central database so
of measurement hardware. These are
it can be tracked through the rest
clearly the major issues facing the
of the process.
DoD and its prime contractors when
creating, supporting and preserving • I-level test. The key need is to
a TPS. identify the defective module
within the subsystem. If it can
As mentioned earlier, SIs must
be removed, it is recorded in the
address four present and future
central database and then sent to
scenarios: flight-line test, inter-
the next stage.
mediate-level (I-level) test, depot
test and at-manufacturer or OEM • Depot test. At centralized repair
test. These represent a continuum centers, the module is tested with
of testing that includes conscious the intent of identifying defective
tradeoffs between size, cost, speed components at the card level.
and performance. The repaired unit will be placed
into the inventory of spares
where it will eventually return to
service—and enable the increased
availability of aircraft or vehicles.

www.agilent.com/find/open
173
Utilizing current SI devices N8212A. This high performance 20 Figure 19.4. Agilent N8211A 20/40 GHz perfor-
mance analog upconverter
GHz vector upconverter functions
In May 2006, Agilent’s initial offering as a microwave source with greater
of six synthetic instruments became than 2 GHz I/Q modulation band-
the first Class A LXI products to width. It features AM, FM and pulse
achieve certification from the LXI modulation (via external or internal
Consortium. These SIs demonstrate modulation) and multisource
Agilent’s ability to leverage proven coherent carrier capability. The
RF technologies into innovative LXI- N8212A is based on the Agilent PSG
based solutions that serve the needs vector signal generator and includes
of the DoD, its prime contractors and options for greater spectral purity
others who can benefit from the flex- and enhanced phase noise.
ibility of modular instrumentation.
N8221A. This 30 MSa/s IF digitizer has
a 7.5 MHz IF input and provides 80
Reviewing the original six dB dynamic range, 14-bit resolution,
and 8 MHz modulation bandwidth.
N8201A. This high performance Figure 19.5. Agilent N8241A arbitrary waveform
26.5 GHz downconverter provides generator
IF output frequencies of 7.5, 21.4
and 321.4 MHz, enabling three
different signal bandwidth capabili-
ties. External mixing can be utilized
to downconvert microwave signals
as high as 110 GHz. The N8201A
is leveraged from the Agilent PSA
Series spectrum analyzers.

N8211A. This high performance


20/40 GHz analog upconverter
generates a stimulus signal with
superior AM, FM and pulse modula-
tion capabilities via external or
internal modulation (Figure 19.4).
The N8211A leverages the Agilent This module was also leveraged from
PSG analog signal generator’s high the PSA Series spectrum analyzers.
output power, low phase noise and N8241A. This arbitrary waveform
excellent level accuracy. This module generator (AWG) features 1.25 GSa/s
is available with a variety of options, output with 15-bit resolution and is
including output power and modula- based on the Agilent N6030A AWG.
tion type. The N8241A offers dual-channel,
single-ended and differential outputs,
with 500 MHz of instantaneous
analog bandwidth per channel
(Figure 19.5).

N8242A. This AWG features a choice


of either 1.25 GSa/s or 625 MSa/s
with 10-bit resolution. It offers
dual-channel, single-ended and
differential outputs, with 500 MHz
or 250 MHz of instantaneous analog
bandwidth per channel.

174 19. Assessing Synthetic Instruments


Others. For signal routing, the L4445A SI measurement unit
microwave switch/attenuator The input signal would be routed to
driver module allows control of a the N8201A downconverter, which
broad range of microwave switches would provide a 7.5-MHz signal to
and attenuators. These LXI-based the N8221A digitizer. Through its
modules provide switching band- LAN connection, the host PC would
width up to 50 GHz. Agilent also acquire one or more data blocks
offers the N8262A, a 40 GHz wide- and apply the appropriate software
band peak and average power meter modules for vector signal analysis
with 100 MSa/s continuous sampling or spectrum analysis of signals from
rate and 30 MHz video bandwidth. devices such as radar systems, cell
This LXI device is based on the phones and wireless networking
Agilent P-Series power meters. equipment (Figure 19.7).

A caveat
Emulating RF instruments You can use SIs to emulate a legacy
instrument up to the point where
This versatile set of modules can be
quickly and easily reconfigured to Figure 19.6. For signal generation, the SI chain includes numeric processing, data conversion and
make a host of measurements that frequency conversion.
would ordinarily require a vector
signal analyzer, spectrum analyzer
and oscilloscope. They can also be
used to emulate the capabilities of an
obsolete instrument such as the HP
uW signal out
8902A measuring receiver. Two brief
examples will illustrate some of the Arbitrary
possibilities. Signal generator waveform Upconverter
software generator
SI stimulus unit
This requires signal generation hard-
ware and software modules to create Figure 19.7. Agilent N8241A arbitrary waveform generator
the required signals and perform
scalar or vector signal analysis. Vector signal analyzer
Signal generation might utilize the software
N8241A AWG module (for maximum
Input
signal bandwidth and accuracy), the
signal
associated signal-creation software,
and the N8211A or N8212A upcon- 7.5 MHz
verter, depending on requirements
High dynamic range
for modulation, output power and Upconverter IF digitizer Radar signals
signal purity (Figure 19.6).

www.agilent.com/find/open
175
the SI hardware is too different.
For example, software can emulate
a legacy instrument that has poor
noise floor; however, it can’t emulate
a legacy instrument that has a better
noise floor than the SI hardware.
Also, most GPIB instruments have
a unique set of timing, network and
bus issues that are very difficult to
reproduce. In other words, SIs can
emulate legacy instruments, but no
emulation will be a perfect duplica-
tion of the original.

Conclusion
The basic premise of synthetic
instruments is very appealing: they
let you configure and reconfigure
building-block modules to create the
functionality of multiple measure-
ment devices. With benefits such
as smaller test systems, easier
transport, single-module updates or
upgrades, long-lived I/O and simpler
software updates, LXI-based SIs
readily support the DoD’s vision for
NxTest.

As SI vendors address the need for


software tools that reduce effort,
accelerate development, ensure
accurate, repeatable results and
enable interchangeability of software
components, the development costs
of SI-based systems will fall and
these solutions will become more
viable for commercial applications.
Over the long-term, it will be worth
watching the growth and develop-
ment of SIs—and worth monitoring
their progress toward a new era of
greater flexibility in automated test
systems.

176 19. Assessing Synthetic Instruments


Section 4. RF/Microwave Test Systems

Overview
The three chapters in this section
explore some of the unique chal-
lenges of automating RF/microwave
tests, particularly as devices and test
requirements become increasingly
complex.

20. Optimizing the Elements of an


RF/Microwave Test System, offers
advice on creating flexible,
long-lived RF/microwave test
systems that will provide accu-
rate, repeatable assessments of
the device under test. The focus
of this article is making it easier
to configure, update and modify
your systems now and in the
future.

21. Six Hints for Enhancing Measurement


Integrity in RF/Microwave Test
Systems, offers insights into
successfully balancing the trad-
eoffs between performance, speed
and repeatability.

22. Calibrating Signal Paths in RF/


Microwave Test Systems, provides
an overview of three approaches
that can be used to calibrate RF
signal paths and produce accu-
rate, repeatable measurements.

177
178 Section 4. RF/Microwave Test Systems
20. Optimizing the Elements of an RF/Microwave
Test System

Introduction Letting the DUT define The ability to meet the needs of
either long- or short-lived DUTs
Whether you need to test the latest “future” improves when the test system
cell phone, a next-generation military includes long-lived hardware, input/
When discussing the future-proofing
radio or an advanced radar system, output (I/O) and software. Careful
of a test system, it’s important to
proving the device’s ability to meet selection of these three elements
clarify what “future” means within
customer requirements depends will enhance a system’s flexibility
the context of the DUT and its
on a test system that can provide and its ability to perform accurate,
expected lifetime. For RF/microwave
accurate, repeatable results. For both repeatable measurements of multiple
test systems, there are two large
parametric and functional testing, DUTs and applications—today and
classes of DUTs that have specific
the ability to achieve accuracy and tomorrow.
future requirements.
repeatability becomes more difficult
as devices become more complex. • Long-lived DUTs. Many devices and
Greater complexity often translates systems developed for aerospace
into more tests, which may mean and defense applications require
longer development time and a test systems that are easy to
more complicated test system. The maintain and update far into the
challenge grows when you try to future. An example of this is the
create a system that meets budget NxTest program from the U.S.
and schedule constraints but is also Department of Defense (DoD).
flexible enough to meet both current Its guiding vision combines a
and future testing needs. common hardware architecture
with software-driven functionality
This chapter offers ideas and
to enable rapid deployment across
suggestions that can help you create
different programs and facilitate
flexible, long-lived RF/microwave test
easy updates in the future.
systems that will provide accurate,
repeatable assessments of the device • Short-lived DUTs. Fast-cycle
under test (DUT). Our focus is on aerospace/defense programs
making it easier for you to configure, and rapidly evolving commercial
update and modify your systems now wireless products require test
and in the future. systems that can be developed
rapidly and within budget. For
example, creating a new test
system from scratch for every new
phone model—or new wireless stan-
dard—becomes less desirable as
introduction cycles become shorter
and budgets get tighter. The ability
to leverage existing investments in
test equipment and software will
accelerate system development and
deployment while also reducing
system cost.

179
Reviewing some essential Specific attributes Constraints on the test system
The electrical attributes of the DUT
considerations often drive the shortlist of viable A combination of business and
instrumentation candidates. Most technical factors will also influence
When it’s time to define and assemble
DUTs contain a mix of circuitry system decisions. On the business
an RF/microwave test system, two
that is becoming less analog and side, budget and timeline are often
major factors will affect your deci-
more digital while going higher the primary drivers of tradeoffs
sions about test equipment: the key
in frequency with every genera- when selecting test equipment.
attributes of the DUT and the various
tion. On the analog side, operating At one extreme, for example, you
constraints on the test system. A
parameters such as frequency range, might need to get the system up and
quick review of important attributes
bandwidth and resolution—along running as quickly as possible—and
and constraints will lay a foundation
with headroom for today’s harmonics the ideal solution may be a one-box
for the discussions that follow.
or tomorrow’s enhancements—define tester, which trades rapid develop-
the essential specifications for signal ment time and optimized measure-
Key attributes of the DUT analyzers, signal generators, oscil- ments for decreased flexibility. At
loscopes and so on. The availability the other extreme, your contract
The attributes of your DUT obviously of test equipment with the necessary may require compliance with NxTest,
affect test-system design, and it’s performance or capabilities will have which specifies the use of modular
helpful to look at them from both a strong influence on the design of synthetic instruments—an approach
general and specific perspectives. your system. that yields tremendous flexibility but
at the expense of development time.
General attributes Greater digital content makes it
At a high level, it’s helpful to possible for new devices to support Within those constraints and
consider the DUT’s complexity, its multiple communication standards. tradeoffs, numerous expectations
stage in the product lifecycle, and the This might be CDMA, TDMA and GSM are placed on the test system.
nature of the manufacturing process. in a cell phone or various protocols These include its capabilities and
For example, multi-function devices in the military’s Joint Tactical performance: inputs, outputs
are often the most difficult to test: Radio System. The need to support and switching; measurement and
cell phones with built-in cameras, all relevant standards will demand analysis; speed, accuracy and
military radios that carry voice much greater flexibility from the repeatability; and data handling and
and data, and LAN devices with test system—and perhaps lead to the reporting. There are also expecta-
both wired and Wi-Fi capabilities use of instrumentation that also has tions about cost effectiveness, which
may require a much wider range of greater digital content in the form of may suggest the use of hardware
measurements and a more costly and advanced digital signal processing elements that are easy to reconfigure
complex test system. (DSP) capabilities. or replace and software that is easy
to modify or reuse.
Whether a product is simple or The physical configuration of the
complex, the early stages of its DUT will also affect choices about Expectations about system longevity
lifecycle generally require thorough handling, fixturing, switching, power, follow from both the length of time
testing of numerous characteris- loads and test accessories. As an the DUT will be manufactured and its
tics—parametric and functional—to example, the number and kind of estimated service life. Those require-
ensure expected performance and ports available for external connec- ments define how long the test
operation. As a product matures, tions may change as the device moves system itself must also be supported
fewer characteristics are tested, and through the manufacturing process. and maintained.
often in less detail. Once the circuitry is loaded into its
enclosure, any built-in test points
Within the manufacturing process, may become inaccessible and the
the product volume and mix also test interface may have to shift from
affect equipment choices. The most hard-wired to antenna-based.
difficult case is high volume and high
mix, which might require several
identical test systems that are able
to measure multiple products or
product variations.

180 20. Optimizing the Elements of an RF/Microwave Test System


Translating requirements In contrast, an ideal test system Example 1: Conventional
into optimized equipment
might use a few well-defined func-
analog instruments
tional modules or building blocks
choices (such as frequency converters, As shown in Figure 20.1, this is a
digital-to-analog converters and DSP complex system that includes three
With the essential attributes, engines) that could be arranged and signal generators, one spectrum
constraints and expectations in programmed via software to perform analyzer and a variety of external
mind, the next step is translating the required measurements. If this accessories—amplifiers, low-pass
those requirements into the best type of “generic” test system were to filters and a combiner. The system
combination of hardware, I/O and contain flexible switching, powerful also includes a PC with software that
software for your system. We will DSP hardware and fast, wideband controls the signal generators and
look at all three elements separately analog-to-digital and digital-to-analog the spectrum analyzer.
but will emphasize the selection of converters, it could analyze and
system hardware. generate virtually any type of signal. Advantages
In many cases, most of the equip-
These two sketches represent the ment may be readily available on an
Comparing hardware types ends of a continuum—and many engineer’s bench, in a central loaner
across a common example of today’s test instruments are pool or from an instrument manu-
hybrids that reside somewhere in facturer. It will typically be relatively
A conventional test system uses a between the conventional and ideal low cost and, as a result, quite cost
variety of instruments that perform approaches. One popular example effective. Because test engineers have
a single function such as spectrum is a category called “vector” instru- been using this type of equipment for
analysis, signal generation or ments. These integrate powerful DSP many years, it will likely be familiar
network analysis. These instruments technology with conventional analog and well understood, enabling rapid
are usually reliable, well understood components to create versatile, development.
and easy to use. However, they lead accurate signal analyzers, network
to large and often inflexible test analyzers and signal generators that Disadvantages
systems that include many redundant can handle highly complex signals The single-purpose nature of conven-
elements (such as displays, keypads and devices. tional analog instruments gives
and mixers) and require complicated them limited functionality and little
switching and fixturing. If used exclusively in a system, each versatility. This has three noteworthy
of these hardware architectures— drawbacks. First, a complete system
conventional analog, next-generation will require numerous instru-
modular and modern vector— would ments and consume a lot of rack
produce a very different block space. Second, the system will be
diagram. To provide a consistent more complex, requiring myriad
comparison, the next three sections interconnections among the various
describe how each approach might instruments and accessories. Third,
be used to create a system that this type of system needs frequent
performs multi-tone testing of a calibration to ensure its accuracy
communication device. and repeatability.

Figure 20.1. A complex multi-tone test system implemented with conventional analog instruments

Amp
Signal Spectrum
generator LPF
analyzer
Combiner

Signal
PC generator LPF DUT

Signal
generator LPF

www.agilent.com/find/open
181
Example 2: Next-generation and its hardware and support costs. Example 3: Modern vector
modular instruments The DoD and others believe the
instruments
building-block approach offers the
Compared to the conventional greatest potential for enabling longer- As shown in Figure 20.3, the use of
approach, this type of system lived test systems. modern vector instruments produces
requires a somewhat less complex the simplest system, requiring just
arrangement of hardware (Figure Disadvantages one vector signal generator and
20.2) that includes four building- Initially, this architecture will require one vector signal analyzer. The PC
block modules: an arbitrary a significant investment in software does more than serve as host and
waveform generator (AWG), an development. The main reason is controller: it also adds functionality
upconverter, a downconverter and a the need to understand, define and via the Agilent Signal Studio soft-
high-speed digitizer. The PC provides create the individual measurement ware, which makes it easy to create
system-control functions that algorithms and analysis func- the required multi-tone signal and
arrange and rearrange the building tions that will utilize data from download it into the vector signal
blocks as needed to send or measure the hardware modules. (This is in generator.
a variety of signals. The PC also runs sharp contrast to a fully integrated
user-written software that provides instrument that has a vendor’s Advantages
system functionality, ranging from measurement expertise built into The tight integration of analog and
calibration to measurement algo- its firmware.) As a result, software DSP technologies delivers excep-
rithms to data analysis. development costs will tend to be tional versatility and functionality.
higher for this type of system. Comparing this system to the conven-
Advantages tional approach, one vector signal
Another key issue is measurement
The modular approach provides the generator replaces three analog
accuracy. Because manufacturers
ultimate in flexibility, enabling a signal generators and seven external
cannot anticipate every possible
high level of hardware reusability accessories. On the measurement
combination of modules, developers
and making it easy to rearrange the side, some vector signal analyzers
will have to create routines that, for
building blocks to create function- also provide waveform analysis capa-
example, calibrate every on-the-fly
ality that is equivalent to multiple bilities, possibly replacing a separate
rearrangement of the modules.
instruments. For example, because digitizer or oscilloscope. These
Consequently, traceability may be an
the AWG can generate virtually any flexible instruments can also be
issue for the earliest systems built on
type of signal, this configuration used for a variety of measurements,
this foundation.
can handle much more than just the not just the multi-tone example. In
multi-tone test. a system, fewer instruments mean
fewer connections, less complexity
Modular hardware also offers  Over time, Agilent expects to provide and fewer opportunities to introduce
the possibility of obtaining better a broad and deep set of software
measurement errors.
performance by simply replacing an tools to accompany its building-block
hardware modules. Possible software
outdated module with a new, higher- Vector instruments can also provide
tools include individual measurement
performance building block. What’s better longevity: because they are
routines (e.g., group delay, VSWR),
more, this approach can also elimi- complete measurement modules (e.g., firmware-based, it is easy to enhance
nate redundant hardware elements, spectrum analysis) and even legacy their functionality and add new capa-
which may reduce a system’s size instrument emulation modules. bilities. Because so much of their

Figure 20.2. The multi-tone test system implemented with LAN-based building-block instruments

LAN

PC
Upconverter Downconverter
AWG Digitizer

DUT

182 20. Optimizing the Elements of an RF/Microwave Test System


functionality is DSP-based, vector accuracy. The ability to expand their Reviewing software and
instruments can often provide better capabilities via firmware updates
communication alternatives
accuracy and performance through vgives them an advantage when
digital corrections to IF stages, testing devices that include evolving Your chosen combination of appli-
filters and so on. These performance communication standards. cation development environment
enhancements are traceable and also (ADE) and instrument communi-
enable longer intervals between full Before deciding which approach
cation method creates tradeoffs
calibrations. is the best fit for your system, it’s
between development time, software
important to also consider the avail-
reuse and system performance.
Disadvantages able choices in connectivity, software
Currently, the hybrid approach and instrument communication. All ADEs are either textual or graphical.
commands a higher cost per unit will affect system development time, Textual environments such as
but, as shown here, a single unit may performance and longevity. Microsoft Visual Studio® have a
replace multiple analog instruments. steep learning curve because they
Also, if greater analog performance
is needed, the whole unit must be
Assessing the connectivity require a detailed knowledge of
commands and syntax. Graphical
replaced when that level of perfor- choices environments such as Agilent VEE
mance is available in a new vector Pro and National Instruments
As discussed in earlier chapters,
instrument. LabVIEW use a schematic approach,
most current-generation PCs
which engineers tend to learn
include one high-speed LAN port
easily. In the past, programs written
Comparing the three and multiple USB ports. In the
in textual languages had a speed
approaches T&M world, an increasing number
advantage at runtime but this differ-
of measurement instruments—and
ence has been reduced with time.
Each of the three approaches has most new Agilent instruments—now
something to offer. Conventional include LAN and USB ports along- Instrument communication has
analog instruments are very familiar side the GPIB connector. been evolving, with direct I/O and
to many system developers and so vendor-specific commands giving
may enable faster system develop- Spurred by the PC industry’s steady
way to industry-standard command
ment. What’s more, they are often advances in LAN performance (and
sets and instrument drivers. Direct
readily available and may be the first commitment to backward compat-
I/O has two important advantages:
to offer the required level of perfor- ibility) the trend in test equipment
speed and access to an instrument’s
mance. Next-generation modular is toward greater use of the future-
full feature set. However, because
instruments will provide tremendous proof LAN interface while continuing
it is instrument-specific, direct I/O
flexibility and potentially greater to support GPIB. As an example,
hinders software reuse. Instrument
system longevity than the other two vector and modular instruments
drivers are high-level pieces of
approaches—but with longer develop- work well with LAN but you can
software that are also instrument- or
ment time and higher software costs. easily incorporate up to 14 GPIB-only
instrument-class-specific but, in
Today, modern vector instruments instruments into a LAN-based system
contrast, they simplify program-
provide the strongest combination via the Agilent E5810A LAN/GPIB
ming by letting you substitute one
of functionality, versatility and gateway.
driver for another if you replace
an instrument in a system. The
Figure 20.3. The multi-tone test system implemented with DSP-based vector instruments tradeoffs are in functionality and
speed: drivers typically access only
Vector signal
the most commonly used commands
analyzer and often communicate more slowly
PC than direct I/O.
with Agilent
Signal Studio
Vector signal
software DUT
generator

www.agilent.com/find/open
183
Pulling it all together test system, we suggest you consider lived or short-lived, (2) the character-
the use of vector instruments, LAN- istics of your DUTs—including both
Table 20.1 compares analog, modular based I/O and instrument drivers. general factors such as stage in the
and vector instruments based on five This combination will provide a product lifecycle and manufacturing
essential aspects that affect system highly future-proof system that volume and specific factors such as
performance: measurement capabili- should be easy—and cost-effective—to degree of digital content and physical
ties, measurement performance, I/O modify in the near-term, maintain configuration—and (3) any financial
connectivity, system software (and and update in the future. If you are and technical constraints on your
instrument communication) and required to comply with NxTest, then test system.
potential longevity. Those elements substitute modular instruments for
capture the value of each approach, vector instruments in the preceding In addition, be sure to consider your
and that overall value provides recommendation. options for connectivity, software
a broader context for the sixth development tools and instrument
element, which is hardware cost. Conclusion communication.

Ultimately, the best answer will For new test systems, our baseline
Conventional analog instruments,
depend on the attributes of your DUT recommendation is a combination of
next-generation modular instruments
and the constraints on your system. vector instruments, LAN-based I/O,
and modern vector instruments
However, if you are creating a new graphical programming and instru-
each offer compelling benefits for
ment drivers. Modify this approach
RF/microwave test systems. Choosing
as needed, of course, but in general it
 In many cases the lack of software the approach for your next system
will provide a high degree of future-
transportability will drive the cost of depends on a number of factors: (1)
proofing and the ability to modify,
developing new software far beyond whether your DUTs tend to be long-
maintain and update quickly and
the hardware cost.
cost effectively.

Table 20.1. Comparing key attributes of the three hardware approaches

Conventional analog instruments Next-generation modular Modern vector instruments


instruments
Measurement Good but limited User creates individual functions, Best, very versatile; easy for manufac-
capabilities gets maximum control turer to update via firmware changes
Measurement May offer best raw measurement Able to mix and match modules May offer best speed, resolution and
performance performance (e.g., frequency range, to achieve desired combination of accuracy
bandwidth) speed, range and bandwidth
Connectivity GPIB LAN Most have GPIB, LAN and USB
Software & Typically used with textual Graphical or textual programming Graphical or textual programming
communication programming and direct I/O with drivers; may require low-level with drivers (and direct I/O, if
(and perhaps SCPI) programming of individual modules necessary)
Potential longevity Good, but must eventually replace Excellent potential: Update software Very good for commercial programs;
to achieve latest performance and as needed to create new capabili- may be too short for aerospace and
capabilities ties; replace single module to obtain defense programs. Can add capabili-
latest performance ties via firmware updates; however,
must eventually replace instrument
to obtain latest analog performance.
Hardware cost Moderate for individual instru- High (initially) for individual modules Somewhat high for individual instru-
ments but may need more than but may provide lower overall cost ments but each one may replace
one of each type due to flexibility and longevity of multiple analog instruments (and
test system provide greater flexibility)

184 20. Optimizing the Elements of an RF/Microwave Test System


21. Six Hints for Enhancing Measurement Integrity in
RF/Microwave Test Systems

Introduction Hint 1 provides a foundation for Hint 1: Prioritize


all six hints. The remaining hints
Even though most RF and micro- address the three major tradeoffs: performance, speed and
wave test systems measure devices Hints 2 through 5 can help you repeatability
within a few broad categories such achieve greater performance, Hint
as amplifiers, transmitters and 6 suggests several ways to improve All test scenarios require a balance
receivers, every individual system measurement speed, and Hints 3 and of performance, speed and repeat-
faces a unique set of circumstances, 4 can help you enhance measurement ability. In most situations, one or
requirements and challenges. As repeatability. In general, these hints two of these will be the dominant
unique as each situation may be, apply to signals in the range of 100 factor that drives your test require-
three universal factors interact when MHz to 26.5 GHz. ments and your equipment choices.
you define any RF and microwave In all cases, a closer look at the
test system: performance, speed and interactions and tradeoffs among
repeatability. Within the unique situ- Figure 21.1. Within any test-system archi- performance, speed and repeatability
ation each system developer faces, tecture, there are numerous opportunities to will help you manage your unique
the ability to make tradeoffs among manage measurement integrity by balancing situation.
these factors is one key to achieving the tradeoffs among performance, speed and
repeatability..
the required level of measurement
integrity.
Building the foundation
To lay the foundation for all six hints,
Opportunities to manage these trad- System controller
it’s essential to clarify our definitions
eoffs can occur at many points along
of performance, speed and repeat-
the pathways between the device
ability in this context.
under test (DUT) and the measure-
GBIP, LAN or USB

Measurement instruments
ment instruments (Figure 21.1). This & power supplies Performance
chapter suggests a framework for In RF and microwave test equipment,
Analog Digital Power
those tradeoffs and offers six sets of Agilent’s definition of “performance”
hints that address common prob- focuses on instrument accuracy,
Switching system
lems that may exist along RF signal measurement range and bandwidth.
pathways. Instrument accuracy includes the
specified absolute accuracy of
Interface & fixturing amplitude and frequency measure-
ments. Measurement range refers
to dynamic range, distortion, noise
level and phase noise, which are the
Device under test (DUT)
attributes that enable precise charac-
terization of signal levels. Bandwidth
refers to the frequency width or
data rate that can be processed and
analyzed.

185
Speed Repeatability measurement. It can be optimized by
Test system speed or throughput For any test system, the ability to minimizing changes to measurement
depends on hardware, input/output produce consistent results—test-to-test settings such as center frequency,
(I/O) and software. Our focus is on and day-to-day—is crucial. However, span and attenuation level.
the hardware and the four factors repeatability does not infer a high
that influence speed: measurement level of precision, which depends Summarizing the interrelationships
set-up time, measurement execution on the performance of individual The test requirements and business
time, data processing time and data instruments. Instead, repeatability drivers for a DUT will help you assess
transfer time. At RF and microwave means a consistent result, whatever the relative importance of perfor-
frequencies, a key aspect of set-up the specified accuracy. For any given mance, speed and repeatability. Once
time is the settling time of the DUT instrument, repeatability may be you’ve identified the dominant factor
or the test system whenever a change different for certain measurements and the intensity of its requirements,
is made (such as switch closures and or modes so it’s important to check sorting through the interactions and
power level). the product specifications or ask their impact on the system becomes
the manufacturer. To some extent, easier. Tables 21.1 through 21.3
repeatability can be improved with summarize the implications of these
more averaging or through modified interactions in two cases: when the
algorithms that produce an accurate intensity of the dominant factor is
approximation of a standardized either high or low.

Table 21.1. When performance dominates, the most important interaction is between performance and speed.

Performance Implications for speed Implications for repeatability


Requirements
Low Can go faster: Will spend less time on tasks such as instru- Probably lower: This situation suggests low performance
ment calibration and measurement averaging. equipment, which may yield greater uncertainty and,
therefore, less consistency from test to test.
High Must go slower: Will probably need to spend more time on Probably greater: High performance equipment with lower
tasks such as instrument calibration, path correction and noise floor, fewer distortion products, greater isolation, and so
error removal to ensure greater precision. on, will tend to provide less uncertainty and greater measure-
ment consistency.

Table 21.2. When speed dominates, the key relationship is between speed and repeatability.

Speed Implications for performance Implications for repeatability


Requirements
Low Greater precision: Can spend more time on calibration, path Greater consistency: Can increase the number of averages,
correction, error removal, etc. However, this situation may number of samples or sweep time (with average detectors).
suggest lower-cost instruments, which often have fewer May be able to use methods such as long RMS detection,
performance-enhancing features narrow video bandwidth or precise, time-intensive algorithms.
High Lower precision: The need for speed may lead to compro- Lower consistency: Less time available for measurement
mises such as less accurate measurement techniques, lower averaging and intricate, precise algorithms may mean greater
measurement resolution, fewer sweep points and faster uncertainty and lower consistency..
sweep speeds.

Table 21.3. When repeatability dominates, the key relationship is once again between repeatability and speed.

Performance Implications for performance Implications for speed


Requirements
Low May be lower: Low repeatability implies a larger error budget, Can go faster: When repeatability has low importance, less
which may also infer lower-performance instruments (less time will be spent on improving measurement consistency
absolute accuracy).

186 21. Six Hints for Enhancing Measurement Integrity in RF/Microwave Test Systems
Repeatability and performance Hint 2: Review the nature a wide frequency range. Hint: Use
In Tables 21.1 and 21.3 there is an high precision cables and acces-
important secondary relationship and behavior of the DUT sories, and fully characterize their
between repeatability and perfor- actual impedance using a vector
A typical automated test system
mance. This is an indirect relationship network analyzer (VNA), especially
performs three basic tasks: sourcing,
linked by measurement uncertainty. if the DUT is an active device.
measuring and switching. Decisions
When dealing with uncertainty, some
about which signal generators, power • Minimize VSWR. The combination of
system developers create an “error
meters, spectrum analyzers, network a switch matrix, its connectors, its
budget,” the size of which depends on
analyzers, switch matrices and cables internal and external cables, and
the margin between test requirements
to use depend on the electrical and even the bending radius of any RF
and system uncertainty. The two
mechanical attributes of the DUT. cables can induce errors caused
major contributors to uncertainty are
At RF and microwave frequencies, a by voltage standing waves in the
absolute accuracy (instrument perfor-
few essential characteristics require DUT. Hint: To minimize this error,
mance) and measurement consistency
special attention. use a switch matrix with a voltage
(repeatability). If the instruments in
a system have high absolute accuracy, standing wave ratio (VSWR)
then there is a wider margin in the Electrical parameters specification of 1.2:1 or better.
error budget for lower repeatability.
The basic nature of the DUT is a key • Enhance isolation. If your test
If the instruments provide consistent
consideration: Is it passive and linear requirements call for simulta-
results, that leaves more room in the
or active and nonlinear? Passive, neous measurements of high- and
budget for somewhat lower absolute
linear devices are easier to deal with low-level signals then the isolation
accuracy.
because they typically have fixed gain specifications of the switch matrix
Multiple “high” requirements and phase shift at any allowed input will affect measurement integrity.
Satisfying requirements such as “high power level across their operating Hint: If there are multiple pathways
speed with high repeatability” or bandwidth. In contrast, active through the DUT, use a signal
“high performance with high speed” devices demand greater care because generator and spectrum analyzer
will probably require sophisticated they usually have a nonlinear oper- to characterize the isolation
instrumentation that is somewhat ating region that is highly sensitive properties to the extent possible.
more expensive than less-capable to input power, producing different If this can’t be done then the
equipment. However, many high results at different levels. Within system should be configured and
performance instruments may a test system, this may suggest the programmed to route high- and
include hardware accelerators that addition of amplifiers or attenuators low-level signals on non-adjacent
speed up time-consuming operations to precisely control power levels, and pathways or through separate
such as averaging and calibration. perhaps the addition of couplers to switch units.
Some models may also include split off and verify the power level
multiple algorithms for calculating being delivered to the DUT. These Mechanical attributes
parameters such as adjacent channel additions should not be taken lightly:
power (ACP). At high frequencies, every system One set of details to consider is the
element has a complex-valued imped- number and type of connectors for
If all three requirements rate “high” ance (with associated S-parameters), signals and power (AC or DC). This
then every element of the system—test and every additional connection will influence factors such as the
equipment, switching, cabling, creates the possibility of undesirable required size of the switch matrix
connectors, and so on—must be scru- interactions with the DUT. and the complexity of system cabling.
tinized. The best solutions will likely Hint: Use a switch matrix with enough
demand a high price, but may provide • Avoid mismatches. An impedance ports to let you make all system-
additional capabilities and benefits. mismatch at any connection to-DUT connections just once. This
can cause insertion loss, which will minimize delays while waiting
robs power from any sourced or for signals to settle, and minimize
 As an example, some Agilent PSA measured signal. As a truism, the chances of damaging the switch
series spectrum analyzers include power is expensive at high frequen- matrix or DUT with sudden changes
a standard “ACP mode” and a “fast cies—and it becomes more expen-
ACP mode.” The fast mode provides in power level.
sive if it has to be delivered across
an accurate approximation of the
standard-compliant measurement.

www.agilent.com/find/open
187
Hint 3: Understand, Correcting active pathways Dealing with DUT distance—
characterize and correct The performance of active devices
near or far
RF signal paths may vary with changing input power. Accurate correction can be difficult
The process required to improve whether the DUT is mounted in a
Without additional correction, measurement accuracy depends on fixture at the test system or located
product specifications extend only whether the device is operating in several meters away in a test
as far as the “calibration plane” that the linear or nonlinear portion of its chamber. Fixture-based measure-
exists at an instrument’s input and response. If an active device such as ments are challenging because
output connectors. To achieve accu- an amplifier is operating in its linear pathways often include transitions
rate, repeatable measurements—and region—well below its 1-dB compres- from coaxial cables to microstrip-
corrected DUT results—we suggest sion point—during both calibration based shorts, opens and loads. Hint: If
that you push the calibration plane and measurement operations, high quality microstrip elements are
out as close as possible to the DUT. then corrections can be accurately not available it will be necessary to
There are several ways to achieve applied at any power level within measure the fixture with a network
this, whether the pathways are that region. Hint: If the active device analyzer, model the impedance
passive or active and the DUTs are is operating in the nonlinear portion and remove those effects from the
local or remote. of its response then the power level measurements.
used for a measurement must also
be used during calibration to ensure When the DUT is remote, the main
Handling passive pathways accurate correction. If measurements issues are path attenuation in long
As just noted, passive devices have will be made at multiple power levels cable runs and path variation due to
fixed gain and phase shift at any in nonlinear mode, then individual temperature fluctuations and cable
allowed input power level across calibrations must be made at each of flexion. Hint: Characterize path atten-
their bandwidth. However, every those levels and stored for later use. uation either by measuring the entire
connection along a passive path may pathway between the instrument and
Hint: Check the frequency response of the DUT (if possible) or by measuring
have an impedance mismatch, which the active device over the frequency
will cause insertion loss and phase all elements along the path and
range of the DUT. Again, you should using vector math to combine their
shifts (or delays). At high frequencies either measure the entire path at
seemingly simple passive elements complex-valued responses.
specific power levels or characterize
become complex transmission-line the S-parameters of each interface
elements, precluding simple algebraic and use vector math to create a
addition of losses and phase shifts model that can applied after-the-fact
along the path. Hint: Use a VNA to or in real time.
either measure the entire connected
path or characterize the S-param- Hint: To simplify the process of
eters of each element and use vector characterizing and correcting RF
math to model the total loss and signal paths, some system developers
phase shift of the entire path. These minimize the use of active devices.
values can be stored in the system PC This reduces both the calibration
and applied as needed to correct a effort and the chance of errors
measurement, or they can be applied caused by variations in power level
by a network analyzer, for example, when operating in nonlinear mode.
to enable real-time adjustment of
filters and other variable DUTs.

 To learn more about S-parameter


measurements, please see Application
Note 154, S-Parameter Design, and
Application Note 1287-3, Applying
Error Correction to Network
Analyzer Measurements.

188 21. Six Hints for Enhancing Measurement Integrity in RF/Microwave Test Systems
Hint 4: Be aware of Semi-rigid Avoiding switch-related
As suggested by the name, these problems
everything connected to cables do not easily change shape,
an instrument ensuring excellent performance Switching is central to overall
and repeatability. High quality system functionality, automating
Test equipment manufacturers semi-rigid cables achieve additional the connection of signals and power
specify the performance of every stability during the manufacturing supplies between instrumentation
instrument up to the front-panel process through techniques such as and the DUT. Because most sourced
connectors that source and measure MIL-standard temperature cycling. and measured signals pass through
signals. From there, everything When applied after the forming the switch matrix, any shortcom-
that comes between the instrument process, temperature cycling can ings in its specifications can affect
and the DUT can affect instrument eliminate internal stresses that measurement performance, speed
performance and measurement may cause later deformation of the and repeatability. At high frequen-
repeatability. At RF and microwave preformed cable. cies, three specifications are particu-
frequencies and power levels, the larly important: isolation, VSWR and
three worst offenders are typi- The quality of the dielectric used insertion loss.3
cally cables, switches and signal in these cables also affects their
conditioners. measurement performance. Solid • Maximize isolation. Leakage between
PTFE on is the most common signal paths can make it very
but contributes to insertion loss. difficult to measure low-power
Selecting the right type of cable Expanded PTFE is currently the best signals in the presence of one or
alternative, providing lower insertion more powerful signals. (This is
When specifying a test system you
loss and wider frequency range. All most likely to occur when high-
will need to decide what type of
of this attention to detail is reflected and low-power signals are routed
cabling to use for device interconnec-
in the cost of these cables, which is through a switch matrix simultane-
tion, and you may be able to specify
considerably higher than conform- ously.) Hint: Choose a switch with
the type used within the switch
able or flexible cabling. isolation specifications of 90 dB
matrix. As a general rule, a stable
cable will provide lower insertion or better. This will reduce leakage
Conformable and potentially minimize the need
loss, better VSWR and, therefore, These cables offer less stability
greater measurement repeatability. to route signals through physically
than semi-rigid cables because they separate switch assemblies.
At high frequencies, the three most are easily shaped and reshaped.
commonly used types of cabling are Their flexibility affects measure- • Minimize VSWR. High VSWR can
semi-rigid, conformable and flexible. ment repeatability and long-term cause phase errors and therefore
reliability. affect the accuracy of vector and
modulation measurements.4 VSWR
Flexible in a switch matrix is directly
Sometimes called “instrument-grade related to the VSWR of the coaxial
cables,” these typically offer good switches used within the matrix,
phase stability and low insertion loss and the VSWR of an individual
but at a relatively high price. They switch depends on its mechanical
also tend to be high maintenance, dimensions and tolerances.
requiring careful handling because
severe deformation can alter their
electrical properties and cause inac- 3 For detailed information, please see
curate measurement results. the Agilent Custom Switch Matrices
product note, publication number
5966-2961.
4 Phase repeatability is another impor-
tant specification to consider when
making these measurements.

www.agilent.com/find/open
189
Hint: You can further minimize Evaluating signal conditioners Attenuators
VSWR by using cables that are Electromechanical and electronic
short compared to the required As described in Hint 3, the DUT, its designs provide different levels of
bandwidth. If this is not practical test requirements and its location flexibility and precision in managing
because of wide bandwidth or may dictate the insertion of passive signal levels. Electromechanical
mechanical requirements, the best or active signal conditioners into the attenuators use discrete switches
alternative is to add insertion loss signal paths. These can be standalone that typically provide stepped
to the transmission lines via pads devices or may be built into the resolution of 1 or 10 dB. Electronic
or lossy cables. This will reduce switch matrix. Amplifiers, attenua- attenuators provide virtually
the amplitude of VSWR-induced tors and frequency converters are continuous settings with 0.1 or 0.25
ripples over the frequency range the most commonly used signal dB resolution; however, those that
of interest, but at the expense of conditioning devices. use PIN diode-type switches can
higher overall insertion loss. produce “video leakage” spikes that
Amplifiers may contaminate measurement
• Manage insertion loss. This tends A signal might need additional gain results. Hint: Cascade electrome-
to become a problem at higher if a precise amplitude measurement chanical and electronic attenuators
frequencies and is typically speci- is required or if it is being sent over as needed to provide greater control
fied versus frequency in tabular a long cable run. Several key speci- of attenuation.
or equation form. Hint: As a switch fications will help you determine
ages, its insertion loss may change an amplifier’s suitability for your Hint: Pay attention to the plating
so look for specifications such application. material used on attenuator connec-
as “insertion loss repeatability” tors. As an example, nickel becomes
or “insertion loss stability” that • VSWR. Amplifiers are notorious for nonlinear at high power levels and
are valid through the end of having poor VSWR. Hint: Alleviate will cause intermodulation distor-
the product’s expected lifetime. VSWR problems by connecting an tion. Instead, choose a higher quality
Knowing this type of worst-case attenuator or an isolator (though conductor such as gold.
value can help you manage your these have limited bandwidth) to
error budget. the amplifier output. Frequency converters
When the DUT is remote from the
• Intermodulation. Amplifier test system, you can reduce inser-
bandwidth is important when tion loss in long cable runs by using
measuring intermodulation distor- a downconverter to shift signals to
tion or spurious signals outside the a lower frequency range. Hint: At
bandwidth of the DUT. Hint: Beware the test system, upconversion can
of amplifiers with poor dynamic be used to restore the signal to its
range or a low 1-dB compression original frequency, but it may be
point, which can produce enough necessary to also apply filtering to
intermodulation distortion to remove unwanted frequency compo-
affect harmonic measurements nents created during the conversion
in the presence of a strong processes.
fundamental.
Hint: If multiple signals, paths or
• Spurs. Switching power supplies conversions are used when making
may cause spurs that are related vector or modulation measurements,
to the switching frequency, which some form of phase locking must be
is typically 100-200 kHz. Hint: used to ensure accurate results. You
Avoid using amplifiers or any other can do this by connecting the instru-
devices that contain switching ments and frequency converters to
power supplies. a common frequency reference and
then measuring the phase of each
signal relative to the reference signal.

190 21. Six Hints for Enhancing Measurement Integrity in RF/Microwave Test Systems
Hint 5: Examine the Latching versus non-latching Advanced features: Built-in
operational attributes of Internally, electromechanical
signal conditioning
switches switches use either latching or One advantage of having a switch
non-latching relays. Most latching matrix in a system is that signal
When deciding what type of tech- types need a 100-200 msec pulse conditioning can be built into the
nology to use in a switch matrix, of DC power to open or close the matrix by the manufacturer. As an
it can be helpful to go beyond the relay. Non-latching switches require example, Agilent’s custom switch
electrical performance and look at constant powe—typically 24 V at 200 matrices can be configured with a
operational attributes such as device mA—to maintain contact. In a large variety of devices, including ampli-
longevity, power requirements and switch matrix non-latching switches fiers and attenuators; filters and
fail-safe operation. can generate enough heat within a isolators; and phase- and frequency-
system rack to affect measurement translating devices such as mixers,
performance. Hint: If you choose to
Electromechanical versus use non-latching switches, check
doublers, and dividers. These devices
are permanently connected with
electronic the actual heat rise and be prepared semirigid coaxial cables and no
to include additional cooling in the additional external cabling is needed.
With numerous moving parts and system rack.
physical contacts, electromechanical The result is a compact, convenient,
one-box solution.
switches tend to suffer from rela- Hint: It’s essential to know how
tively rapid degradation, declining either type of switch will behave
repeatability and limited life. In after a power failure or emergency
contrast, electronic switches have no shutdown. For maximum safety,
moving parts so offer longer life and select a switch matrix that returns to
greater repeatability. In practice, the a known condition or configuration
best choice depends in part on the when power is restored. Non-latching
actual number of switching cycles switches are often the default failsafe
a system will require; consider the choice because they open when
number of closures per test, the power is removed and won’t close
number of tests per day, the expected again until power is applied by the
lifetime of the system and so on. test program. However, latching
switches can be made fail-safe if they
Another practical consideration is include hardware and firmware that
the power level of the routed signals. will latch them into a safe mode at
Switching of high power signals will power down.
damage most switches, lowering
repeatability and shortening lifetime.
Hint: To prevent the premature
demise of either electromechanical
 Another hint: To minimize power
or electronic switches, program the
requirements, some developers
system instrumentation to reduce program the system to actuate these
signal levels before opening or switches serially or in small batches,
closing any switches in the matrix. though this causes longer total
switching time.

www.agilent.com/find/open
191
Hint 6: Accelerate states as needed. If the system needs This method also reduces wear on
to load arbitrary waveform data test-port connectors and calibration
measurement set up during a test, download the minimum standards.
and execution number of points and use binary
Hint: The application of correc-
format rather than ASCII.
Whether you gauge system perfor- tion data is usually faster when
mance as devices tested per unit Power meters performed inside the analyzer
of time, tests per unit of time or The biggest potential time savings rather than externally in the system
another time-based metric, measure- come from models that offer built-in controller. With most VNAs you
ment speed depends on two essential calibration capabilities that extend can save the calibration curve for a
factors: the time required to set up the cal interval from hours to specific test and recall it as needed.
the system and the time required to months. Hint: Use digitizing power Note that this method is more
perform the measurement. The three meters that offer wide video band- effective when used over a series
major elements of any system— hard- widths and fast data sampling. Some of somewhat narrow frequency
ware, I/O and software—can help or of these units can generate 1,000 or spans than with one extremely wide
hinder both processes. Chapter 7, more corrected readings per second, measurement span.
Maximizing System Throughput improving measurement accuracy
and Optimizing System Deployment, and repeatability through averaging.
offers several useful tips about
software design, system I/O and Spectrum analyzers Conclusion
low-frequency instrumentation. With any spectrum analyzer, the
To complement that material, this three key adjustments are frequency Every test system faces a unique
hint adds new information specific span, points per measurement and set of challenges, but in all cases
to RF/microwave instruments and resolution bandwidth (RBW). Hints: the ability to manage the direct and
systems. Using the fewest necessary points indirect tradeoffs among perfor-
and the widest possible RBW is the mance, speed and repeatability
easiest way to reduce measurement will help you achieve the required
Fine tuning individual time. Utilize a current-generation level of measurement integrity. The
instruments spectrum analyzer that automatically ability to manage crucial tradeoffs
speeds things up by switching to Fast also applies to the selection of
Any configurable device used in a Fourier Transform (FFT) mode when instrumentation, I/O connections
system can become a bottleneck measuring narrow spans. and software elements for your test
that limits measurement speed. The system. Agilent is helping reduce the
latest generations of RF/microwave Hint: To gain maximum benefit, use number of compromises you have
instruments—signal generators, automatic input ranging selectively. to make by offering system-ready
power meters, spectrum analyzers When used to measure signals of instrumentation, PC-standard I/O
and network analyzers—offer flexible rapidly varying amplitude, auto and open software environments.
features and capabilities that can ranging may frequently change the By creating complementary system
minimize bottlenecks and enhance input attenuator settings and slow elements and supporting continually
system performance. the measurement. However, if signal advancing standards such as LXI,
levels are low and relatively constant, Agilent can help you optimize—and
Signal generators auto ranging can improve the even maximize—system performance
Many of these are available with signal-to-noise ratio and also shorten now and in the future.
built-in modulation and arbitrary measurement time by allowing use of
waveform capabilities, potentially wider span and RBW settings.
reducing the number of instruments
in a system, simplifying system Network analyzers
cabling and lessening software Calibration of VNAs can be very time
complexity. Hints: Instrument configu- consuming, especially the manual
ration may be somewhat complex connection of shorts and standards.
and time consuming, but you can Hint: Agilent’s line of electronic cali-
significantly reduce test time by bration or “ECal” modules automates
creating states ahead of time, saving this process, offering faster and more
them in memory and then program- repeatable calibrations on one to four
ming the system to recall the saved ports through a single connection.

192 21. Six Hints for Enhancing Measurement Integrity in RF/Microwave Test Systems
22. Calibrating Signal Paths in RF/Microwave
Test Systems

Introduction with a network analyzer while the This method requires measurements
scalar measurements are typically of both the magnitude and phase
In any RF test system the ability to performed with a signal generator characteristics of the RF path. This
achieve instrument-port accuracy and a power meter or spectrum can be done by either performing
at the device under test (DUT) will analyzer. a network analyzer calibration at
enhance measurement accuracy the DUT’s input and output ports,
and repeatability. Unfortunately, This chapter provides an overview or by using a calibrated network
the non-ideal nature of the cables, of three approaches that can be analyzer to measure the S-param-
components and switches in the used to calibrate RF signal paths eters of an RF path (see sidebar). The
paths between the instruments and and produce accurate, repeatable latter method provides a complete,
the DUT can degrade measurement measurements. It’s important to note complex-valued characterization of
accuracy. Vector or scalar calibration that these calibrations are a comple- the signal path.
is usually required to characterize ment to—not a substitute for—the
and correct for this loss of accuracy. calibration of individual instruments
within a system. Scalar calibration
The proper calibration method
This approach characterizes only
depends on both the type of Understanding vector and the magnitude characteristic of
measurement and the signal path.
For example, measurements of gain scalar calibration the RF path, which is equivalent
to measuring only the magnitude
and phase require complex-valued
Within any test system, common portion of the S21 transmission
vector calibration, which is typically
elements such as fixturing, switching coefficient in a vector calibration.
performed with a network analyzer.
and cabling will introduce offsets and A common technique involves
As another example, measurements
errors that will affect measurement driving one end of the path with a
of power levels and frequency
accuracy. The two types of calibra- signal generator and measuring the
content may be vector measurements
tions used to account for and correct signal at the other end with a power
of modulated signals (accurate
these errors are vector and scalar meter. The magnitude portion of
phase information is essential) or
calibration. the path response is determined by
scalar measurements of continuous
subtracting the source power level
wave (CW) signals. In these cases,
vector measurements are performed Vector calibration

Reviewing S-parameters • S21, Transmission Coefficient. The ratio of the transmitted


signal measured at port 2 to the signal applied to port 1.
Scattering parameters, commonly referred to as S-parameters,
• S22, Reverse Reflection Coefficient. The ratio of the reflected
are used to describe the way any device, component or path
signal measured at port 2 to the signal applied to port 2.
modifies an applied signal. The computed S-parameter coef-
ficients are ratios of measured and applied signals at the ports • S12, Reverse Transmission Coefficient. The ratio of the
of the device. transmitted signal measured at port 1 to the signal applied
to port 2.
In S-parameter annotation, subscripts are used to indicate the
ports of the device: the first number specifies the port that is To learn more, please see Application Notes 1287-3, Applying
measured; the second number specifies the port where the Error Correction to Network Analyzer Measurements (pub.
signal is applied. For example, S21 indicates a ratio of the signal no. 5965-7709E), and 1364-1, De-embedding and Embedding
measured at port 2 versus the signal applied to port 1. In the S-Parameter Networks Using a Vector Network Analyzer (pub.
case of a two-port device (Figure 22.1) there are four S-param- no. 5980-2784EN).
eters, each one describing the reflection or transmission of an
applied signal: Figure 22.1. Modeling the RF signal path as a two-port device provides
the S-parameters needed for calibration and correction.
• S11, Reflection Coefficient. The ratio of the reflected signal
measured at port 1 to the signal applied to port 1.
Two-port device
Port 1 Port 2

193
setting (in dBm) from the measured Table 22.1. Comparing the advantages and disadvantages of vector and scalar calibration.
power level (also in dBm). This
is repeated at multiple frequen- Calibration Advantages Disadvantages
cies across the band of interest to type
determine the overall magnitude Vector • Enables complete characteriza- • Higher cost than scalar because
characteristic. tion of the path and, therefore, network analyzer is required
more accurate measurements • Doesn’t account for inaccura-
Scalar calibrations can achieve very • Allows adapter embedding and cies internal to instruments
good results as long as high quality de-embedding connected to the signal path
components, adapters and cables are • Provides excellent confidence in
used in the system. This helps mini- path integrity
mize measurement uncertainty and
Scalar • Lower cost approach (network • Not a complete characterization
increase measurement repeatability.
analyzer not required) of the path (magnitude only)
However, when compared to a full
• Can compensate for inaccura- • Doesn’t support adapter embed-
vector calibration, scalar calibration
cies internal to instruments ding or de-embedding
is less likely to detect any changes in
connected to the path, which • Provides less confidence in path
impedance match along a signal path.
may result in better overall integrity
accuracy
Comparing the two methods
The best choice of calibration method
depends on factors such as the test Figure 22.2. The essential elements of a simplified RF/microwave test system
specification and its measurement
and accuracy requirements, the
likelihood of inaccuracies internal to Signal Network Spectrum
generator analyzer analyzer
the measurement instruments, and
the availability of a network analyzer.
The advantages and disadvantages
of each method are summarized in
Table 22.1. RF switching

Defining our reference point


We will describe the application of
vector and scalar calibration to the DUT
types of RF signal paths that are
present in most systems. The basic
system diagram shown in Figure 22.2
will be our reference point as we
explore three different methods that
can be used to characterize RF paths:

• Vector calibration of a network-


analyzer path

• Vector calibration of a non-


network-analyzer path

• Scalar calibration of a non-


network-analyzer path

Performing vector
calibration of network-

194 22. Calibrating Signal Paths in RF/Microwave Test Systems


analyzer paths The connection of a mechanical stan- 22.4) and ensures characterization
dard or electronic calibration module of just the signal paths of interest. In
Network-analyzer paths are those to the DUT cables will often require this example, the embedding process
that connect a network analyzer an adapter on one or both ports of moves the calibrated reference plane
to the DUT. A vector calibration the DUT cables. The addition of these to the end of the DUT cable from the
enables the network analyzer to adapters may induce errors such as end of the adapter, where the calibra-
precisely measure the complex- impedance mismatches, reflections tion standards are attached during
valued S-parameters that fully and delays. network analyzer calibration.
describe changes in magnitude and
phase versus frequency. S-parameter You can remove these effects by using
a process called adapter embedding,
Performing vector
calibration of non-
measurements of the DUT are made
using a swept continuous wave (CW) which moves the calibration plane
signal generated by the network towards the network analyzer (Figure
analyzer (Figure 22.3).
Figure 22.3. Network-analyzer paths to and from the DUT
Network analyzers have built-in
routines that allow the instrument
Signal Network Spectrum
to compensate for any cabling and generator analyzer analyzer
RF components that lie between the
instrument and the DUT. Mechanical
or electronic standards with known
characteristics (e.g., shorts, opens
RF switching
and throughs) are used for this
purpose. By substituting the stan-
dards for the DUT and measuring
the response, the network analyzer
can generate and store error terms DUT
that are recalled as needed to correct
measurements of the DUT. In this
case, the path data is retained in
a set of error terms stored in the
analyzer’s memory. Figure 22.4. Adapter embedding moves the reference plane closer to
the network analyzer, ensuring characterization of just the signal paths
When calibrating network-analyzer of interest
paths it is important to use the same
conditions that will be used to test Network
the DUT: all switch settings, power analyzer
levels, frequency ranges and so on
should be identical. This is especially
important if the DUT is an active
device that has linear and nonlinear
operating modes.
Reference plane Reference plane

Removing adapter effects with


embedding Adapter Cal Standard Adapter

www.agilent.com/find/open
195
network-analyzer paths additional benefits come from data after a system calibration is
network-analyzer characterization of completed. This makes it possible to
Non-network-analyzer paths connect the system paths used for modulated account for separately characterized
instruments other than a network DUT measurements. One is greater adapters such as test fixtures or
analyzer to the DUT. The measured confidence in path integrity, which circuit boards that interface to the
signals may be either modulated comes from the ability to easily DUT. Combining these elements with
or CW. measure characteristics such as the existing path data requires that all
return loss of the path (S11 and S22). S-parameters be known for both the
Vector calibration of these paths This allows for a more comprehen- adapter and the path.
is accomplished by connecting a sive self-test of the system and helps
calibrated network analyzer to the
path and measuring its S-parameters.
minimize the uncertainties caused by Performing scalar
input and output mismatches.
Prior to measuring the RF path, the
network analyzer is calibrated in a The other noteworthy advantage
standalone configuration with special is the ability to modify the path
calibration cables. The results of
these path-calibration measurements
are stored in the system controller Figure 22.5. When calibrating paths such as signal-generator-to-DUT-input,
for later recall and application. adapter de-embedding moves the reference plane away from the network
analyzer, ensuring characterization of just the signal path.

Removing adapter effects with Signal Network


de-embedding generator analyzer

Adapters may be required to connect


the network analyzer to each system
path during the calibration process. Adapter
The effect of these adapters is usually
very small if high quality adapters Reference
are used; however, if their effect is plane Reference
plane
significant it can be removed using
a process called adapter de-embed-
ding. Adapter de-embedding effec- Adapter DUT
tively moves the calibration plane
away from the network analyzer
(Figure 22.5) to ensure characteriza-
tion of just the signal path of interest.
In this example, the de-embed-
ding process moves the calibrated
reference plane from the end of the
calibration cable (where the calibra-
tion standards are attached during
network analyzer calibration) to the
end of the adapter where the system
path is connected.

Deriving additional benefits


In addition to high accuracy, two

196 22. Calibrating Signal Paths in RF/Microwave Test Systems


calibration of non- only the magnitude is calculated; Characterizing the path from
network-analyzer paths
there is no phase information. This
the DUT output
is usually acceptable because the
absolute phase of the signal incident To complete the scalar calibration,
While the primary measurement
at the DUT input is not important as we measure the signal path from the
instrument for vector calibration is a
long as the magnitude response is DUT output to the spectrum analyzer
network analyzer, the main instru-
relatively flat and the phase response (Figure 22.7). The loss through
ment used for scalar calibration is
is linear over the frequency band of this path can be characterized by
a power meter, which is the most
interest. applying a known signal source,
accurate way to measure absolute
power. Scalar calibration also reading the power level measured
Note a key assumption here: The
requires a signal generator, which by the spectrum analyzer then
accuracy of this method depends on
is used to provide signals of known subtracting the path to the DUT input
minimal mismatch between the input
frequency and power. This method (described in the previous section).
impedance of the DUT and the input
typically requires a two-part process impedance of the power meter. It is
that first characterizes the pathway important to verify these impedances
to the DUT input then the signal path because a large difference will cause
from the DUT output. significant measurement errors.

Characterizing the path to the


DUT input Figure 22.6. By substituting a power meter at the DUT input, you can
measure loss through the input path.
The first path to measure is the one
that connects the signal generator
output to the DUT input (Figure Signal Spectrum
generator analyzer
22.6). You can characterize the loss
through this path using a power
meter connected to the end of the
DUT cable (in place of the DUT
input). RF switching

The signal generator is configured


to provide signals at the range of
frequencies and power levels that Power DUT
will be used when testing the DUT. meter
The power meter measures the power
output at each frequency and power
level, and the offsets (in dB) are
Figure 22.7. By substituting a feed-through for the DUT, you can measure
calculated and stored in the system
loss from the DUT output to the spectrum analyzer.
controller for later use. The calcu-
lated offset accounts for path loss as
well as some inaccuracies internal to Signal Spectrum
the signal generator. generator analyzer

This is a scalar measurement because

RF switching

Feed-through

www.agilent.com/find/open
197
You can do this by (1) using a Conclusion
feed-through to connect the DUT
input cable directly to the DUT The use of vector and scalar calibra-
output cable, (2) setting up the signal tion can increase measurement accu-
generator to output the required racy by helping you correct for errors
range of frequencies and power levels in the RF signal paths. Each method
and (3) making power measurements has advantages and disadvantages,
with the spectrum analyzer. and the choice depends on both the
type of measurements you’re making
The spectrum analyzer should be and the nature of the signal path.
configured just as it will be for DUT
measurements. This is especially This chapter reviewed three different
true of the input attenuator settings, to methods of characterizing the
which often cause wide variations RF path: vector calibration of
in the spectrum analyzer’s input network-analyzer paths, vector
impedance. The resulting calculated calibration of non-network-analyzer
offsets will account for path loss as paths and scalar calibration of
well as some inaccuracies internal to non-network-analyzer paths. When
the spectrum analyzer. performing vector calibration of
network-analyzer paths, the tech-
Note a key assumption here as well: nique of adapter embedding ensures
The accuracy of this calibration characterization of only the signal
depends on the impedance of the paths of interest. Adapter de-embed-
DUT output cable being very similar ding provides the same benefits
to the input impedance of the power when you’re performing vector
meter. It is important to verify these calibration of non-network-analyzer
impedances because a large differ- paths. Within the context of your
ence will cause significant measure- specific measurement needs, each
ment errors. method provides valuable calibration
benefits.
Measuring adapter effects
Accounting for adapters necessary
to perform scalar-path calibrations is
usually accomplished by estimating
or measuring adapter loss at various
frequencies of interest and then
accounting for those losses in the
offset calculations. However, this is
much less accurate than the adapter
embedding and de-embedding
procedures described in the vector
calibration sections.

198 22. Calibrating Signal Paths in RF/Microwave Test Systems


Glossary of Test-System Development Terms

Adapter — the LAN card and connector Firewall — a hardware device or software Router — a LAN device that joins multiple
that provides an electrical interface to the program (or combination) that protects networks and enables creation of small,
network a computer network from unauthorized private networks
access
ATE — Automated test equipment SI — Synthetic instrumentation
Gateway — a hardware device that
ATS — Automated test system connects devices that use different stan- SIWG — Synthetic Instruments Working
dards and protocols (e.g., LAN to GPIB) Group
AWG — Arbitrary waveform generator
GPIB — General Purpose Interface Bus; SPX — Sequenced Packet eXchange; a
Bridge — a LAN device that connects communication protocol used in the Novell
the dominant 8-bit parallel I/O connection
segments of a network Netware network operating system
for test equipment and test systems
CASS — Consolidated Automatic Support Subnet — a group of connected network
Hub — a multi-port LAN device that
System devices; used to partition networks into
connects multiple devices together, usually
in a star topology segments for easier administration
COTS — Commercial off-the-shelf
ICS — Internet connection sharing Subnet mask — a setting that accom-
DDNS — dynamic domain name server;
panies an IP address and defines the
a service that allows a network device to
IF — Intermediate frequency boundaries of a subnet
establish its host name when it connects
to the network. This lets other devices IP— Internet protocol; requires an address Switch — a LAN device that connects
use that host name with DNS to find the to communicate multiple devices to a single LAN line;
device’s IP address and connect to it. however, unlike a hub, it preserves full
IPX — Internetwork Packet eXchange; a network bandwidth to each device
DHCP — dynamic host configuration communication protocol used in the Novell
protocol; a method of automatically Netware network operating system TCP/IP — Transfer Control Protocol and
obtaining an IP address for a LAN- Internet Protocol; the two standards that
connected device (e.g., PC, router, LAN — local area network provide the data communication foundation
instrument, etc.) of the Internet
LXI — LAN eXtensions for Instrumentation
DMZ — De-militarized zone; a firewall Technology insertion — The introduction
configuration that helps secure the private MAC — media access control; every LAN
of new or improved hardware or software
LAN device has a unique MAC address
capabilities into an existing system
DNS — domain name server; maps NAT — network address translation; maps
TPS —Test program set
specific names to IP addresses, enabling private addresses to one or more public
use of names in place of IP addresses in addresses to enable access to an intranet USB — Universal Serial Bus; designed to
testprograms or the Internet replace the RS-232 and RS-422 serial buses
used in PCs
DoD — United States Department of NetBEUI — NetBios Extended User
Defense Interface; a network communication VME or VMEbus — Versa Module
protocol used in many versions of Windows Eurocard
DUT — device under test; the component,
subassembly or product to be measured by NxTest — Next-generation Automatic Test VXI — VME eXtensions for Instrumentation
the test system Systems

eCASS — The modernized version of CASS OEM — Original equipment manufacturer

Ethernet — a specific LAN technology PCI — Peripheral Component Interconnect


that is the dominant implementation of the
PXI — PCI eXtensions for Instrumentation
physical and data link layers; also known as
IEEE 802.3 RF — Radio frequency

199
Agilent Email Updates
Remove all doubt www.agilent.com
Our repair and calibration services For more information on Agilent
www.agilent.com/find/emailupdates
will get your equipment back to you, Technologies’ products, applications or
Get the latest information on the products
performing like new, when promised. services, please contact your local Agilent
and applications you select.
You will get full value out of your Agilent office. The complete list is available at:
equipment throughout its lifetime. Your www.agilent.com/find/contactus
Agilent Direct equipment will be serviced by Agilent-
trained technicians using the latest
www.agilent.com/find/agilentdirect
factory calibration procedures, auto- Americas
Quickly choose and use your test
mated repair diagnostics and genuine
equipment solutions with confidence. Canada 877 894 4414
parts. You will always have the utmost
Latin America 305 269 7500
Agilent confidence in your measurements.
United States 800 829 4444
Open
Agilent offers a wide range of additional
www.agilent.com/find/open expert test and measurement services Asia Pacific
Agilent Open simplifies the process of for your equipment, including initial Australia 1 800 629 485
connecting and programming test systems start-up assistance onsite education China 800 810 0189
to help engineers design, validate and and training, as well as design, system Hong Kong 800 938 693
manufacture electronic products. Agilent integration, and project management. India 1 800 112 929
offers open connectivity for a broad range Japan 81 426 56 7832
of system-ready instruments, open industry For more information on repair and Korea 080 769 0800
software, PC-standard I/O and global calibration services, go to Malaysia 1 800 888 848
support, which are combined to more Singapore 1 800 375 8100
easily integrate test system development. www.agilent.com/find/removealldoubt Taiwan 0800 047 866
Thailand 1 800 226 008

Europe
www.lxistandard.org
Austria 0820 87 44 11
LXI is the LAN-based successor to
Belgium 32 (0) 2 404 93 40
GPIB, providing faster, more efficient
Denmark 45 70 13 15 15
connectivity. Agilent is a founding
Finland 358 (0) 10 855 2100
member of the LXI consortium.
France 0825 010 700
Germany 01805 24 6333*
*0.14€/minute
Ireland 1890 924 204
Italy 39 02 92 60 8484
Netherlands 31 (0) 20 547 2111
Spain 34 (91) 631 3300
Sweden 0200-88 22 55
Switzerland (French) 41 (21) 8113811 (Opt 2)
Switzerland (German) 0800 80 53 53 (Opt 1)
United Kingdom 44 (0) 118 9276201
Other European Countries:
www.agilent.com/find/contactus
Revised: May 7, 2007

Windows is a U.S. registered trademark


of Microsoft Corporation.

Product specifications and descriptions


in this document subject to change
without notice.

© Agilent Technologies, Inc. 2007


2012
Printed in USA, May
June7,27,
2012
2007
5989-5367EN

También podría gustarte