Data Acquisition KEYTHLEY
Data Acquisition KEYTHLEY
Data Acquisition KEYTHLEY
GREATER
MEASURE
OF
CONFIDENCE
Data Acquisition
and Control
Handbook
1st
Edition
www.keithley.com
Data Acquisition
and Control
Handbook
A Guide to Hardware and Software for
Computer-Based Measurement and Control
Preface
The Data Acquisition and Control Handbook is a comprehensive
overview of issues that influence the selection and use of equipment
for computerized data acquisition and control. The handbook is primarily a guide to building test and measurement systems that use a
personal computer as a controller and a variety of plug-in boards and
external instruments to gather data and control external processes.
These processes cover multiple industries and markets, including the
fields of factory automation, semiconductors, optoelectonics, telecommunications, automotive, medical, computers, peripherals, aerospace,
research, and education. The goals of this handbook include:
Identifying basic electrical theory that applies to measurement
and control, regardless of the application or selected instrumentation.
Identifying the fundamental building blocks, sensors, and
processes of data acquisition, in order to help the reader form a
sound approach to system design.
Discussing common data acquisition applications that can
serve as models for developing similar systems.
The history behind some current practices is also noted.
Journals, texts, and the World Wide Web are good sources for more
information on specific applications and topics. Search engines can be
invaluable for identifying vendors specializing in many types of sensors, along with recommendations on instrumentation suitable for
specific applications.
For background on making more accurate measurements of lowlevel signals, request a copy of Keithleys Low Level Measurements,
which provides a thorough grounding in the field of sensitive electronic
measurement.
TA B L E
OF
CONTENTS
SECTION 1
1.1
Definition
Although concepts like data acquisition and test and measurement can
be surprisingly difficult to define completely, most computer users,
engineers, and scientists agree there are several common elements:
A personal computer (PC) is used to program test equipment
and manipulate or store data. The term PC is used in a general sense to include any computer running any operating system
and software that supports the desired result. The PC may also
be used for supporting functions, such as real-time graphing or
report generation. The PC may not necessarily be in constant
control of the data acquisition equipment or even remain connected to the data acquisition equipment at all times.
Test equipment can consist of data acquisition plug-in boards
for PCs, external board chassis, or discrete instruments. External
chassis and discrete instruments typically can be connected to a
PC using either standard communication ports or a proprietary
interface board in the PC.
The test equipment can perform one or more measurement and
control processes using various combinations of analog input,
analog output, digital I/O, or other specialized functions.
The difficulty involved in differentiating between terms such as
data acquisition, test and measurement, and measurement and control
stems from the blurred boundaries that separate the different types of
instrumentation in terms of operation, features, and performance. For
example, some stand-alone instruments now contain card slots and
microprocessors, use operating system software, and operate more like
computers than like traditional instruments. Some external instruments now make it possible to construct test systems with high
channel counts that gather data and log it to a controlling computer.
Plug-in boards can transform computers into multi-range digital
multimeters, oscilloscopes, or other instruments, complete with userfriendly, on-screen virtual front panels.
For the sake of simplicity, this handbook uses the term data acquisition and control broadly to refer to a variety of hardware and software solutions capable of making measurements and controlling
external processes. The term computer is also defined rather broadly; however, for most applications, a computer means an IBMcompatible PC running Microsoft Windows 95 or later, unless otherwise noted.
1.2
SECTION 1
1.2.1
1.2.2
SECTION 1
Figure 1-1.
Table 1-4.
SECTION 1
SECTION 2
Communication Buses
and Protocols
2.1
2.2
Processor
PC manufacturers introduce faster, more powerful PCs continually by
making improvements in architecture, processor speed, disk storage,
memory, peripherals, etc. Often, these improvements are incremental,
so they may not provide sufficient incentive to the user to replace an
existing PC. Therefore, the installed base of PCs used in test and measurement will contain several product generations, each with varying
degrees of suitability for a desired application.
A survey of computing hardware recommended for use with various data acquisition products will show that few require the use of a
cutting-edge PC to function. While the minimum system requirements
for installing and running most new software applications continues to
escalate, these requirements are typically a few generations behind the
current state of PC technology. For example, when a typical high-end
PC included a Pentium III processor and 64128MB of RAM, the minimum workable system for many data acquisition hardware and software products was still an 80486 processor with just 832MB of RAM.
A recommended system would fall somewhere between the extremes;
for example, a Pentium-class PC with a 233MHz processor, 64MB RAM,
510GB of fixed disk storage, and a VGA display adapter capable of 256
colors at 800600 resolution.
Be aware that while a minimum PC configuration may offer sufficient resources to manage the test and measurement task, it probably
cant handle much more. Spreading resources too thin by running multiple programs during data acquisition can result in sluggish program
response, lock-ups, or other problems.
Increasing the amount of on-board RAM can boost system performance dramatically, especially with Windows operating systems.
For large or concurrent applications, adding RAM can reduce the need
for the system to swap information to and from disk drives, which is far
more time-consuming than retrieving the same information from
RAM. Compared to upgrading a processor, motherboard, or an entire
system, installing more RAM is a relatively easy and inexpensive way to
extend the useful life of an older machine.
SECTION 2
In 2001, most newer PCs contain PCI expansion slots, but few (if
any) ISA slots. Although the PCI architecture offers some advantages in
terms of speed of interrupt handling, some users may find it easier to
continue using ISA if they have a sizeable investment in ISA-based test
and measurement systems platforms, software, and maintenance
resources. Even as PCI-based machines assume architectural leadership, PC manufacturers have begun to discuss producing slotless PCs
that will require the use of external test and measurement hardware.
2.3
Bus Architecture
Over the PCs history, a number of internal PC buses have been developed. The original ISA (Industry Standard Architecture) bus and the
current PCI (Peripheral Component Interconnect) bus are the two
most common architectures employed for data acquisition products.
A few other architectures, notably IBMs Micro Channel
Architecture (MCA), the Enhanced Industry Standard Architecture
(EISA), and the Video Electronics Standards Association (VESA) local
bus, were introduced prior to the PCI. All these buses were designed to
replace or augment the ISA bus with advanced features that are now
common to PCI. These features included higher speed, 32-bit operation, Plug-and-Play operation, and bus mastering. The simple but wellestablished ISA bus has actually outlasted all of them. While a few
Micro Channel and Apple data acquisition products were developed,
neither architecture took lasting root in the data acquisition market.
Today, neither is regarded as a mainstream data acquisition platform.
2.3.1
ISA
The ISA bus was a core element of the original IBM PC (ca. 1981),
although the term ISA was not adopted until the bus was well established and other buses were introduced by IBM and other computer
manufacturers. Initially, the ISA bus was an 8-bit, 4.77MHz bus
designed to satisfy the speed and data path requirements of the PCs
8088 processor. In 1984, the ISA bus was upgraded to 16 bits and 8MHz
for the 80286 processor used in the IBM PC/AT, and the card-edge connector was physically extended to provide a 16-bit data path. Both the
8-bit and 16-bit variations are included under the general term ISA.
ISA plug-in data acquisition boards and communication interfaces still
exist today. Some have only the primary 8-bit card edge connector and
will fit an 8- or 16-bit ISA slot. Sixteen-bit boards include the secondary
card edge extension and will only fit a 16-bit ISA slot.
Direct Memory Access (DMA) and Plug-and-Play (PnP) are two
noteworthy features of the ISA bus. DMA improves data transfer
between peripherals and memory by enabling an expansion board to
write to system memory directly, without intervention of the microprocessor. Strictly speaking, Plug-and-Play was introduced on later ISA
2.3.2
PCI
Intel introduced the 32-bit PCI (Peripheral Component Interconnect)
bus in 1993. It appeared first in Pentium and later-generation 486
machines. PCI is the current PC bus standard and was the only internal
PC bus approved by Intel and Microsoft as of January 2001.
The PCI bus offers a number of performance advantages over the
ISA bus. The PCI bus runs at 33MHz compared to 8MHz for the ISA bus.
PCIs improved PnP capability allows jumperless installation of PCI
boards and automatic allocation of interrupts, I/O addresses, and DMA
channels. Interrupts can be shared by different PCI devices. PCI also
features bus mastering, which, like DMA, allows PCI devices to take
control of the bus and perform data transfers directly to memory, without intervention of the processor. PCIs improved design allows simultaneous bus mastering of multiple devices.
Since the introduction of the PCI bus, the total number of slots on
motherboards has dwindled, and there are few (if any) ISA slots.
However, a PCI-based machine with three or four PCI slots still maintains a high level of expansion capability. Hard disk controllers, serial
and printer ports, sound, video, and other system resources that usually required separate interface boards in an ISA platform are now populated on PCI motherboards directly, leaving the few existing slots free
for other peripherals. PCI data acquisition boards are available for
SECTION 2
most applications implemented with ISA boards and provide for easier
installation and better performance than ISA.
2.3.3
PCMCIA
Most laptop computers now include at least one Personal Computer
Memory Card International Association (PCMCIA) slot, which enables
the computer to accept data acquisition boards, interfaces, and other
PCMCIA peripherals. In terms of architecture and performance, the
PCMCIA bus most closely resembles the ISA bus with added Plug-andPlay and hot-swapping features. PCMCIA data acquisition boards are
readily available, although the selection is limited in comparison with
ISA and PCI versions. The PCMCIA bus also has less to offer in terms of
channel counts, high resolution A/D, and A/D speeds greater than 100
kilosamples/second.
PCMCIA boards are roughly the size of a credit card, which requires
cabling to an external connector pod or terminal block. This tiny form
factor precludes some useful features typical of full-size boards, such
as power supply regulation, advanced signal conditioning, and maximum tolerance of electrostatic discharges.
2.4
Connectivity
The topic of connectivity includes a variety of external buses and ports
that are available on PCs, either as standard equipment or as plug-in
interface options. These include parallel printer ports, the traditional
RS-232 serial port, RS-422 and RS-485 serial ports, IEEE-488, and
newer high speed buses such as the Universal Serial Bus (USB), IEEE1394 FireWire bus, and Ethernet. These buses are summarized in
Table 2-1.
2.4.1
Table 2-1.
External PC buses
Generic
Name
Industry
Designation
Typical
Max.
Distance
Typical
Max.
Speed
Serial
RS-232
15m (50ft)
115kbits/s
Serial
RS-422
1220m
(4000ft)
115kbits/s
Serial
RS-485
1220m
(4000ft)
115kbits/s
Supports up to 32 transmit or
receive devices on one bus.
Normally requires a plug-in
RS-485 adapter.
Parallel
(Printer
Port)
SPP, EPP,
ECP
~15m
(50ft)
100+ kB/s
General
IEEE-488
Purpose
Interface
Bus (GPIB)
~2m (6ft)
Can be
extended
1MB/s
Universal USB
Serial Bus
5m (16.5ft)
per cable
drop; 15m
(50ft) total
12Mbits/s
(480Mbits/s
planned)
FireWire
Ethernet
10BaseT,
100BaseT
Features/Advantages
~925m
10Mbits/s,
(3000ft);
100Mbits/s*
farther on
LANs or
over Internet
SECTION 2
2.4.2
Parallel Port
A parallel printer port can be found on nearly every PC. The original
purpose of this port was to drive a Centronics-compatible printer at a
distance up to 50 feet. Over the years, other non-printer parallel
peripherals have been introduced, including scanners, disk drives, and
tape drives.
The parallel interface uses eight separate transmission lines, allowing data to be transmitted a byte at a time, and resulting in higher
speeds than RS-232. More recently, the IEEE-1284 standard was drafted to describe five different uni-directional and bi-directional hardware configurations and operating enhancements for the parallel port.
The first three modes are uni-directional and support data transfer
rates up to 100 kbytes per second. The last two, EPP (Enhanced Parallel
Port) and ECP (Enhanced Capability Port), are bi-directional, and offer
even higher transfer rates. These enhanced operating modes require a
parallel port and cabling that supports high speed, bi-directional operation. Most new PCI-based systems with communication ports populated directly on the motherboard include an enhanced parallel port.
Despite its current all-but-universal availability and high speed
capability, the parallel port hasnt been embraced as a mainstream
interface for test and measurement, although there is some data acquisition equipment with parallel interfacing. The reason for this lack of
popularity may be as simple as the fact that the parallel interfaces distance and speed capabilities are already duplicated or surpassed by
other standards, such as USB and FireWire. Furthermore, parallel ports
have been implemented in hardware in different ways, which can
sometimes make it difficult to get parallel devices operating properly.
Finally, the parallel port, like the ISA slot, may disappear from PCs altogether as printers and other parallel peripherals increasingly come
with USB or FireWire interfaces.
2.4.3
IEEE-488 (GPIB)
The IEEE-488 bus was developed by Hewlett-Packard in 1965 as the
HP Interface Bus (HP-IB) to provide a standardized communication
interface for lab instruments, recorders, and related equipment. The
interface proved to be both popular and versatile; it was ultimately
renamed GPIB (General Purpose Interface Bus) by the IEEE. GPIB is
also known generically as IEEE-488, although the complete standard
consists of the IEEE-488.1-1987 (hardware specification) and IEEE488.2-1992 (a superset of IEEE-488.1 dealing with software and communication).
SECTION 2
2.4.4
2.4.5
IEEE-1394 FireWire
FireWire is a high-speed serial interface thats outwardly similar to
USB. The technology was originally developed by Apple Computer for
digital video, audio, and related high-speed applications, then proposed as a standard to the IEEE. In 1995, FireWire received the designation IEEE-1394 (sometimes shortened to 1394.) FireWire offers
high transmission speeds, simplified low-cost interconnects, and the
ability to daisy chain up to 63 devices on one bus.
The current FireWire standard describes data rates of
100400Mbits/second over distances up to 15 feet (4.5m). Speeds of a
gigabit/second or higher are planned, and future enhancements are
expected to extend the maximum transmission distance. Like USB, a
FireWire device can be hot plugged and is Plug-and-Play compatible.
Windows 98, Windows Me, and Windows 2000 contain drivers for
FireWire. Windows 95 will not support FireWire, at least not through
driver products offered by Microsoft. FireWire has replaced the SCSI
SECTION 2
port on more recent Apple machines. FireWire ports are not yet common on PCs, so FireWire support must usually be added to currentgeneration PCs by using a plug-in adapter.
The FireWire cable and connector are outwardly similar in appearance to USB, although the two standards are neither physically nor
electrically compatible. Cabling consists of dual shielded/twisted conductor pairs, plus two additional conductors to carry power to FireWire
peripherals. Sonys iLINK is a variation on FireWire that uses only
four conductors to carry signal. Power is not transmitted, but the signal
protocol is essentially the same as FireWire.
FireWire has been embraced for applications in digital video (DV)
and audio, which is not surprising, given that these are the traditional
strengths of Apple machines. The technology is a natural fit for any
application that requires moving large amounts of data at high speed,
and is adaptable to virtually any type of peripheral. In comparing the
speed of FireWire with USB, it appears that both standards will continue to leapfrog each other in order to gain temporary speed advantages.
In the end, FireWire may prevail in speed, but may offer less in the way
of distance and device support (63 vs. 127 peripherals). However, both
buses are relatively new, and both may ultimately become standard
equipment on PCs as complementary technologies.
As far as FireWire and data acquisition are concerned, there are few
FireWire-compatible data acquisition devices at this writing. However,
it is significant that FireWire apparently leads USB in being considered
as a replacement for GPIB in test and measurement applications.
Protocols have been developed for transmitting IEEE-488.1 and -488.2
messages and command/control sequences on a FireWire bus. This
encourages the use of GPIB (SCPI) commands with FireWire.
2.4.6
2.4.7
SECTION 2
ply allow two pieces of equipment with different interfaces to communicate with each other, with distance being a secondary consideration.
Common types of interfaces and converters include serial to IEEE488, serial to Ethernet, and IEEE-488 to Ethernet. In each case, the user
must determine whether using these devices achieves the desired goal
more cost-effectively than another method. For example, a computer
may contain RS-232 serial ports, while the application requires an
instrument with IEEE-488 interface. The user must determine whether
it is better to use a serial to GPIB adapter or to install an IEEE-488 interface board in the computer.
SECTION 3
Software
Overview
3.1
System Software
Surveys indicate roughly 80 percent of test, measurement, and data
acquisition applications are computer controlled. These automated
test systems typically use PC-based data acquisition hardware and
software. These two aspects are interdependent and equally important.
The best choice for data acquisition software for a given task
depends on any number of factors, including computer platform,
operating system, user programming skills, and application type. While
some of these items are a matter of personal preference, others are dictated by conditions beyond the users control, such as corporate policy,
financial concerns, the need for compatibility with other software or
hardware, etc. Operating systems and computing platforms other than
Microsoft Windows can be used successfully for data acquisition, but
the full burden for program development, hardware control, and support typically rests with the user. Therefore, users who strongly prefer a
non-Windows environment may still find that the economics and
greater ease of system development encourage them to use Windows
for data acquisition applications.
3.2
3.2.1
SECTION 3
3.2.2
SOFTWARE OVERVIEW
SECTION 3
TEXT
GRAPHICAL
C=A+B
D=E+F
Figure 3-1.
A
B
E
F
ple lines (wires) from one icon to another. Although Visual Basic and
Visual C/C++ are graphics-intensive, they are still considered textbased languages because the code behind the Graphical User Interface
(GUI) is written in text format.
The issue of choosing between text-based or graphics-based software revolves around which method is the most intuitive and easy to
learn. The answer is mostly a matter of personal preference. For example, text-based programming has a top-to-bottom organization that is
similar to the English language. On the other hand, graphical syntax
can be considered more intuitive and easy to remember because it is
based on pictures rather than alphanumeric characters. Further, the
wires and icons approach is less susceptible to typing errors and other
syntactical errors that can occur in text-based languages.
The top-to-bottom organization of text-based programming is
invalid in a graphical language, so there must be another method to
establish the order in which instructions are to be implemented. In the
text-based example in Figure 3-1, C=A+B executes before D=E+F.
The graphical method requires an additional wire connecting both +
icons to accomplish the same thing. In LabVIEW, this wire is referred to
as artificial data dependency and its only purpose is to establish the
execution order.
Program documentation is another issue to consider when choosing between text- and graphic-based programming. Documentation is
more or less automatic in text-based programming because the program can be printed with non-executing comments to explain lines of
code. In the graphical method, wires and diagrams may be difficult to
consolidate on a printed document. This complicates documentation,
which may become quite tedious in a long and complicated program.
3.2.2.3 Programming Efficiency
Program execution speed and response can be important, even critical,
to the success of a test and measurement application. Typically, a proprietary programming package adds extra software to a basic data
acquisition engine to provide simplicity and automation for the user.
Every current proprietary development package is itself a Windows
application, typically written in a C/C++ environment. This architec-
SOFTWARE OVERVIEW
SECTION 3
3.2.2.5 Debugging
Efficient debugging is critical to the success of a software development
project and limited debugging tools may increase development time
and stall progress. The component-based architecture of todays open
programming systems simplifies software development and debugging. Extensive and powerful debugging tools are available with Visual
C/C++ and Visual Basic.
3.2.2.6 Application Deployment
Application programs are sometimes created by software developers,
then distributed to end users. Deployment can be problematic for
applications developed with proprietary packages because the user
does not have the development package. The difficulty lies in the runtime program that is part of the proprietary layer. Deployment is much
less of a problem with COM-based applications because the compilers
are smaller and more efficient, and the runtime library is usually part
of Windows.
3.3
3.3.1
3.3.2
Device Drivers
A device driver is the software interface between a computers operating system (such as Windows) and any data acquisition plug-in board,
GPIB instrument, or communication interface attached to the computer. The driver is the abstraction layer that shields the program
developer from the complexities of a hardware device. All the com-
SOFTWARE OVERVIEW
Test
Application
Developed in VB
API
Application Level
Driver
Package
Device Driver
Figure 3-2.
Kernel Level
Device
Under Test
SECTION 3
SOFTWARE OVERVIEW
3.3.3
SECTION 3
SOFTWARE OVERVIEW
3.4
FIFO
Data In
Half Full Interrupt
Reading 3
Reading 2
Reading 1
Figure 3-3.
CPU
Data Out
FIFO operation
SECTION 3
3.4.1
3.4.2
SOFTWARE OVERVIEW
3.4.3
Tight Control
A programmer can take advantage of Windows events and messaging
by using Visual C/C++ and Visual Basic programming tools to create a
deterministic application that runs fast and provides tight control.
Rather than constantly status polling to determine if data are ready for
collection, such programs can use the CPU for additional tasks such as
database or network access until interrupted by the data acquisition
hardware.
This tight coordination between data availability and CPU execution also makes event-driven applications more robust and portable
across computers of vastly different CPU speeds.
The hardware deployed for real-time applications in Windows is
important. Event-driven programming may be necessary, but is not
necessarily sufficient for some real-time applications. Contrary to what
the words might indicate, real time tends to be a relative term, the
meaning of which varies with the application and user requirements.
In some applications, users consider a response time of 100 milliseconds to be a real-time response. In a different setting, a one microsecond response might be needed. The Windows operating system,
whether its Windows 95, 98, Me, NT, or 2000, isnt well suited for fast,
real-time applications.
Real-time applications tend to work better with dedicated operating systems running on embedded processors. This implies instrument
SECTION 3
3.4.4
SOFTWARE OVERVIEW
ilar signal after it has acquired the data following a delay, based on its
own internal program. This kind of programming approach results in
higher production rates.
SECTION 3
SECTION 4
Basic Component
Theory
4.1
Introduction
This section of the handbook provides an overview of the types of electronic components used in data acquisition. Its intended to help users
understand and work with components used in the construction of test
setups, to give users insight into data acquisition hardware so they can
understand analog and digital measurements concepts, and to help
users optimize their test procedures.
Test and measurement systems are developed and operated in a
variety of ways, ranging from a single individual to a team of system
integrators, programmers, system maintenance staff, and operators.
These people often have widely varying degrees of technical expertise
and specialization. This section assumes that the reader is familiar with
the concepts of voltage, current, and resistance, and the mathematical
relationship between them.
4.2
Passive Components
Ideally, a sensor or signal source can be connected directly to an instrument or data acquisition board input without the need for specialized
signal conditioning. In practice, it is often necessary to add passive
components (resistors, capacitors, inductors, or diodes) to a circuit to
remove noise, alter signal levels, or achieve some other goal.
4.2.1
Resistors
The function of a resistor is to impede the flow of electric current.
Resistance is measured in ohms (). The most important characteristics
of resistors are resistance, power handling ability, and construction.
These factors are interrelated and most often mutually exclusive. For
instance, it may be difficult to find a resistor that combines very high
resistance and very high power handling ability; such a device might be
prohibitively large or expensive. Some types of resistors are more sensitive than others to signal frequency or ambient temperature.
Resistors are manufactured with several basic techniques. The
resistive element can be molded from a mixture of carbon and clay or
deposited as a resistive film on an insulating substrate. Alternately, a
resistive wire can be wound on a suitable form. Varying the thickness,
length, or composition of the resistive element allows the manufacturer to control resistance and other properties. The complete package
can be made in a variety of forms and sizes with different styles of wire
leads or no leads at all in the case of surface-mount devices.
The general differences in resistors manufactured with these techniques are summarized in Table 4-1. Note that the information is typical
and may vary considerably from one manufacturer to another. Also note
that some characteristics may be less relevant for certain applications.
SECTION 4
Table 4-1.
Wirewound
Resistors
Value
Approx. 0.5 to
several million ohms.
Approx. 0.05 to
several thousand ohms.
Accuracy
0.1% to 5%.
Power Handling
Up to 5W.
1W to 100W.
Frequency Effects
Performance generally
Wound construction can
independent of frequency result in inductive
unless film has been
effects for AC signals.
deposited on the substrate
as a spiral.
Relative Physical
Size
Characteristic
Medium to large.
R
Current = 25mA
+
5V
Figure 4-1.
0.7V
Current limiting
In this example, the voltage drop across the LED is 0.7V, leaving
4.3VDC (5.0 minus 0.7) dropped across resistor R. The desired current
is 25mA, so the value of the resistor can be calculated using Ohms Law:
R =V / I
R = 4.3V / 0.025 A = 172.
A 172 resistor may be difficult to find, and the value is not critical.
A slightly higher standard value of 180 will do nicely. To be safe, its
important to check the power to be dissipated by the resistor:
P =V I
P = 4.3V 0.025 A = 0.1075 watts.
Resistors are available in a variety of power ratings, including 0.125
and 0.25 watt types. Either would work in this application. The 0.25W
type would provide some margin of safety.
Example: Voltage Division
Figure 4-2 shows resistors used to scale down a voltage to a value compatible with existing measurement hardware. In this case, a signal with
a maximum amplitude of 36V must be measured with an A/D board
with an input limit of 10V.
For this example, assume that the signal has a low source impedance, which is represented by the resistor symbol in the Signal Source
box. Source impedance is an important concept that appears often in
test and measurement applications. For a complete discussion, see
Keithleys reference handbook, Low Level Measurements.
Briefly, any voltage source can be thought to include a resistance
through which the generated current must flow (Figure 4-2). This resistance, which is called the source resistance or source impedance, is
expressed in ohms. At a given voltage, current compliance varies
+36VDC
Max.
R1
Out HI
Signal
Source
R2
Out LO
Figure 4-2.
Voltage divider
SECTION 4
020mA
Out HI
R
Current
Source
Figure 4-3.
Out LO
Current shunt
4.2.2
Capacitors
A capacitor stores electrical energy in the form of an electrostatic field.
The general mechanical principle of the capacitor is two conductive
surfaces (plates) separated by a dielectric (typically an insulator such
as Teflon, polystyrene, or Mylar polyester film). Capacitance is directly proportional to the total shared surface area of the plates, and
inversely proportional to the distance between them.
Capacitors are manufactured using a variety of construction techniques and materials. This can cause capacitors of identical capacitance value to differ in other electrical properties, making one type or
another more suitable for certain applications. Some of these characteristics are listed in Table 4-2.
SECTION 4
Table 4-2.
Capacitor characteristics
Characteristic
Variation
Polarity
Working Voltage
Frequency
Leakage
ESR
C
Equivalent
Capacitor
Figure 4-4.
Equivalent capacitor
DC Current
+
5V
Figure 4-5.
AC Current
AC
Source
Figure 4-6.
(Figure 4-5). When connected to AC, charges move in and out of the
capacitor as the polarity of the voltage alternates (Figure 4-6). The
apparent result is that the capacitor blocks DC, but conducts AC.
Note that a perfect capacitor presents a resistance to the flow of AC
that decreases with frequency. This resistance is called capacitive reactance or XC and can be calculated as:
SECTION 4
XC = 1 / (2 F C)
where: F = the frequency
C = the capacitance in farads
As an example, the reactance of a 0.047F capacitor at 10kHz
would be calculated as:
XC = 1 / (2 F C)
XC = 1 / (2 3.14159 10 103 0.047 106)
XC = 1 / 2.953 103
XC = 338.63
Qualitatively, the equation reveals that at DC, capacitive reactance
(XC)is infinite, while at very high frequencies, XC approaches zero. This
property makes capacitors useful for selectively passing high frequencies while blocking DC; a common application is bypassing an A/D
input in order to filter noise from a signal. Capacitors can also be used
in rudimentary anti-aliasing filters, although the roll-off of a capacitor
is only 6dB per octave.
Another capacitor application that may be useful in data acquisition is based on the fact that a resistor in series with a capacitor produces a circuit that charges at a fixed time constant. The circuit in
Figure 4-7 exhibits an RC Time Constant, which is the time needed
for the voltage across the capacitor to rise to 63% of the applied voltage.
The RC time constant for the circuit in Figure 4-7 can be calculated as:
T = RC
T = 470000 10 106
T = 4700000 106
T = 4.7 seconds
After five RC time constants (5RC) have elapsed, the voltage on the
capacitor will have risen to more than 99% of the power supply voltage.
Conversely, a fully charged capacitor will take 1RC to discharge to 37%
4.7s
9.4s
100%
80%
63%
R = 470k
5V
0
1
2
RC Time Constants
Figure 4-7.
C = 10F
RC time constant
of its initial voltage, and 5RC to discharge to less than 1% of its fully
charged voltage.
The characteristics of capacitors make them useful in a number of
areas in test and measurement. Their ability to pass higher frequency
signals permits capacitors to be used as simple high frequency noise
filters, particularly where the signal of interest is a DC voltage.
Similarly, a knowledge of time constants and capacitor settling behavior is important in designing test and measurement systems where circuit capacitance is relatively high and signals change rapidly.
4.2.3
Inductors
The inductor is the third passive component. The principle behind the
inductor is that if a magnetic field moves past a conductor, a current
will be induced in the conductor. Conversely, when an electric current
flows through a conductor, a magnetic field is generated around the
conductor. If the conductor (wire) is wound in the form of a coil, both
effects become more pronounced and form the basis of the electromagnets used in motors, generators, transformers, and related devices.
However, even a single loop can increase the inductive effect.
Understanding this principle can be of value in minimizing some types
of noise pickup in data acquisition setups.
A closer analysis of inductors shows that current flow sets up a
magnetic field in the coil, which causes the inductor to generate a back
voltage (or back EMF) equal to the forward voltage. The faster the current changes, the greater the back EMF will be. An important aspect of
back EMF is that when the source current is instantaneously disconnected from an inductor, the resulting magnetic collapse can generate
a substantial voltage spike, which induces noise in surrounding circuits. This is why a diode is usually connected across a relay coil; the
diode suppresses the back EMF that results when the coil is deenergized.
The unit of inductance is the henry (H), with typical inductor values in circuits on the order of millihenries or microhenries.
Like capacitors, inductors are constructed using a variety of materials and techniques that affect inductance. An ideal inductor would be
a lossless coil exhibiting only inductive effects. However, a real-world
inductor behaves more as a pure inductance in series with a resistance
(Figure 4-8). This resistance is a result of the conductive properties of
the wire winding and can vary with gauge, length, and composition of
the wire. This resistance is important because it is a potential source of
energy loss in the inductor.
The core of an inductor is also extremely important in establishing
inductive properties. Inductor cores are fashioned from a variety of
metallic materials in different shapes and dimensions, but torroids and
cylindrical bars are the most common. Common core materials
SECTION 4
L
Equivalent
Inductor
R
Figure 4-8.
Equivalent Inductor
include iron and ferrite. However, the core can be omitted, resulting in
an air core inductor. Small-value inductors can also be etched flat on
printed circuit substrates.
The resistance of an inductor is frequency dependent. However,
inductive reactance mirrors capacitive reactance in that it is 0 at DC,
then increases with frequency. Inductive reactance (XL) can be calculated as:
XL = 2 F L
where: F = the frequency
L = the inductance in henries
As an example, the reactance of a 0.5 millihenry inductor at 3kHz
would be calculated as:
XL = 2 F C
XL = 2 3.14159 3 103 0.5 103
XL = 9.42
Their coiled construction means that inductors tend to be more
expensive than resistors and capacitors and are available in fewer values. Therefore, circuits are usually designed to achieve the desired performance using resistors, capacitors, and other components where
possible.
4.3
Op Amp Theory
An active electronic device used extensively in solid-state electronic
circuits is the operational amplifier or op amp. Op amps get their
name from their original application, in which they were used to perform mathematical operations in analog computers. Today, op amps
are used as general analog building blocks in a wide variety of circuits.
Unlike digital electronics, which have two valid output states (e.g.,
high or low, on or off), op amps are linear circuits where the output
4.3.1
Types
Op amps are transistor circuits fabricated using a variety of semiconductor processes, including bipolar, JFET, CMOS, and mixed processes.
Some operating parameters associated with op amps relate directly to
the fabrication process, such as input impedance, power consumption,
noise, drive capability, and bandwidth. These factors need to be considered when selecting components to ensure the desired result. For
example, it is sometimes necessary to work with sensors with a low
output level or high output impedance. In both cases, an op amp can
be used to build a simple buffer amplifier to condition the signal. This
application would best be served with an op amp with a very high
input impedance, so one with FET inputs would be a good choice.
4.3.2
Power Supply
The power requirement for most op amps, especially older components, is a symmetrical, positive and negative supply in the range of 3
to 30VDC. Power supplies in AC-powered equipment containing op
amps typically provide 12 to 18VDC for op amp circuits. More recent
trends in op amp design have been toward low power, applicationspecific devices that operate at lower voltages and currents, frequently
5VDC or less.
As a class of devices, op amps require a relatively low operating current. However, current requirements vary sufficiently to make some
families suitable for battery-powered circuits, while others are best
used in AC-powered equipment. Again, consult specific op amp manufacturers data sheets when contemplating an op amp project. Low
power consumption is usually accomplished at the expense of other
performance criteria.
4.3.3
SECTION 4
(+) Supply
V+
+
Gain
(A)
VOUT
V
() Supply
Figure 4-9. Op amp
4.3.4
Gain
The schematic symbol and simplified model of an op amp are shown
in Figure 4-9. An op amp is a differential amplifier and will amplify
the difference between the voltages applied to the inverting (V) and a
non-inverting (V+) inputs. The equation describing an op amps function is:
VOUT = ((V+) (V)) A
where V+ and V are input voltages, VOUT is the output voltage, and A is
the gain.
Note that the maximum output voltage from an op amp circuit
depends on the supply voltage. A calculated output is valid only if the
power supply voltages exceed the voltage by one to two volts. This is
why most data acquisition boards can tolerate input voltages of only
up to approximately 10VDC. The boards are powered through an
expansion slot from the computers 12VDC supply.
4.3.5
Feedback
Op amps possess extremely high open loop gain (up to 100,000 or
more), which is usually reduced with other components to a level suitable to the application. These components comprise the negative
feedback loop of an op amp circuit, and are illustrated by R1 and R2 in
Figures 4-10 and 4-11. Negative feedback is the mechanism by which
op amp closed loop gain can be adjusted and a circuit made stable.
R2
R1
Gain
+
+
Gain
VIN
R1
VOUT
R2
4.3.6
SECTION 4
4.3.7
VNM
V+
+
Gain
V
VOUT
VCM
its source, because it cannot be filtered out of the final data without
affecting the data as well.
In contrast to normal mode voltage, common mode voltage (VCM in
Figure 4-12) appears between an amplifiers inputs and ground. Both
inputs see the same common mode voltage in addition to the voltage
differences attributable to the signal. As mentioned previously, an op
amp amplifies the difference in voltage appearing at its (+) and ()
inputs, and will naturally reject a signal appearing at both inputs. The
degree of this rejection is called Common Mode Rejection Ratio
(CMRR). A typical value for CMRR is 120dB, meaning that a voltage
appearing on both sides of a differential input will be reduced by a factor of one million.
In data acquisition, the effects of common mode voltage are sometimes noted as noisy measurements or inexplicable measurement
errors. One situation where common mode voltage can present a problem occurs when individual circuit common points in a test setup are
tied to ground at different locations. If each ground point is not a true,
low impedance path to ground, a voltage gradient can exist across the
grounds and current will flow (see Figure 4-13). This phenomenon is
known as a ground loop. A ground loop may be produced when each
end of the shield of a long cable is connected to separate chassis
grounds. The voltage above true ground at one end of the shield can be
higher than the other, floating one ground above the other, which
results in current flow through the ground system. As a result, the
acquired data will have an offset because it was not referenced to
ground. The solution is to ground the shield at only one end.
A second example of a problem related to common mode voltage
is where a sensor is allowed to float, without a bias current return to
ground. For instance, if a thermocouple is connected to an A/D input,
the circuit may stop working after a few minutes. What has happened
SECTION 4
Signal
HI
LO
GND
Ground Loop
Current Flow
Voltage
Gradient
Thermocouple
V+
+
Gain
V (A)
VOUT
Figure 4-14. Thermocouple A/D input with ground return resistor (R)
is that the inputs gradually charge from the applied signal, increasing
the common mode voltage on the inputs until they are too close to the
power supply rails for the op amp to function. The solution is to install
a resistor (R) between input high or input low and ground (Figure
4-14). A typical value for this resistor is one mega-ohm or more. This
situation highlights the fact that the possibility of common mode voltage must be considered when a signal is connected to a data acquisition A/D input, and the total voltage at an input kept within 10V
relative to power supply ground.
4.3.8
Unipolar
Bipolar
+10 V
12-Bit
4096 Counts
2.44 mV/Bit
+10 V
4.88 mV/Bit
0V
0V
10 V
Resolution
10 V
Common Input Ranges
10 V
5
2.5
1.25
10 V
1
.1
.02
necessarily tied to ground. In the case of a differential input, the measurement instrument responds to the difference in voltage between
signal high and signal low. The differential method is often used to
carry low-level signals, so the signal-carrying cable can actually consist
of two signal leads plus a ground shield.
The terms bipolar and unipolar are normally used to describe
whether a signal remains positive with respect to ground or whether it
can also assume a negative level. These terms can apply to inputs as
well as outputs. A bipolar signal can be positive or negative with
respect to ground, while a unipolar signal generally goes no lower than
0V. The main benefit of using a unipolar range for digitized analog
input or output is to enhance resolution. The available number of A/D
or D/A bits remains the same, but is divided between only half the total
voltage range of a bipolar configuration. Therefore, each bit provides
twice the resolution. Figure 4-15 shows the resolution on a 12-bit A/D
in unipolar and bipolar configurations.
SECTION 4
Channel N HI
Channel N LO
Signal
Source
RS
Rb
Rb
Data Acquisition
Board
LL GND
Channel N HI
Channel N LO
Signal
Source
RS
Rb
Data Acquisition
Board
LL GND
4.3.9
4.4
Filters
Some data acquisition applications can benefit from the use of filters to
condition a signal. There are many types of filter designs, which can
broadly be divided into passive and active types. Passive filters are relatively simple circuits constructed with resistors, capacitors, and
Low-Pass
High-Pass
Band-Pass
Band-Reject
inductors, but are generally less effective than active types. Active filters can provide more aggressive filtering action than passive filters.
However, active filters are more complex in design, and also require a
source of operating power. Bessel, Butterworth, Chebyshev, and Cauer
(elliptical) filters are common active filter designs that use a combination of op amps and passive components.
The response curve or cut-off of a filter describes how well the filter
blocks or passes a band of frequencies. Response is usually expressed
as decibels (dB) of amplitude change per frequency span. Typically, the
frequency span is specified per octave (amplitude change between fre-
SECTION 4
4.5
Digital I/O
Many data acquisition processes involve digital signals that are either
on or off, high or low, etc. This is in contrast to analog signals where the
signal voltage can range anywhere between an upper and lower voltage
limit. One gauge of the quality of analog I/O is bits of resolution, with
12- and 16-bit A/D and D/A being common in data acquisition.
Conversely, a digital signal is a 1-bit phenomenon; the signal is ultimately represented as a single 1 or a 0. While this sounds simple in
concept, there are many factors that can complicate digital measurement and control.
Digital signals are usually generated or read by digital gates, which
can have a single output and single or multiple inputs. Normally, an
integrated circuit package will contain two to six gates, depending on
the number of pins the package can support. There are a variety of
Boolean logic functions for gates with multiple inputsAND, NAND,
OR, and NOR being the most common (see Figure 4-18). For more
information on this topic, consult a text such as the TTL Cookbook or a
manufacturers data book.
Note in Figure 4-18 that the various types of digital gates can be
subdivided into non-inverting and inverting types. A non-inverting
gate produces a logic 1 output when the logical input function of the
gate is satisfied. For example, an AND gate requires all inputs to be at
logic 1 for an output of logic 1. The inverted form, the NAND gate, produces a logic 0 output when all inputs are at logic 1. Also note that versions of the inverting and non-inverting gates exist where there is only
one input. The inverting version is simply called an inverter, while the
non-inverting version is called a buffer.
AND GATE
NAND GATE
OR GATE
All Inputs = 1
For Output = 1
All Inputs = 1
For Output = 0
Any Input = 0
For Output = 0
Any Input = 0
For Output = 1
A
V
AND
B
V
NAND
C
V
NOR GATE
OR
D
V
NOR
4.5.1
SECTION 4
4.5.2
TTL Logic
One of the first and most common semiconductor processes used to
fabricate digital gates is Transistor-Transistor Logic (TTL). TTL gates
are constructed with bipolar transistors, which provide relatively high
current source and sink capability and high speed, but also consume
more operating power than some newer types of devices. The standard
power supply voltage for TTL logic is +5VDC.
The voltages and current levels corresponding to logic 1 and logic 0
for TTL are:
Logic 0 = 0.00.8 volts. For conventional TTL, control signal
must be capable of sinking at least 1.6mA from a digital input.
Newer implementations of TTL-type logic have substantially
reduced this current requirement to as little as 10A.
Logic 1 = 2.05.0 volts. The actual output voltage of TTL
devices is usually between 3.5V and 5V. Typical output source
current is 0.4mA (400A). New types of TTL logic may have lower
source current capability.
For TTL, note that the input range is neither symmetrical nor continuous. There is a gap in the values between 0.8 and 2.0 volts in which
the signal is ambiguous, defined neither as a 1 nor a 0. In some situations, such as when trying to read an analog or slow-moving signal,
this can cause problems. However, several options are available for
dealing with ambiguous or slow-moving digital input signals. These are
discussed elsewhere in this book.
Because of its design, a TTL output is effective at sinking current to
ground to create a logic 0. However, sufficient variation exists in the
design of TTL output stages that a logic 1 output voltage must be
defined more broadly. Some TTL outputs swing to 3.5V or higher and
Table 4-3.
0.02mA
0.4mA
2.7V minimum
0.5V maximum
0.4mA
8.0mA
4.5.3
CMOS Logic
CMOS (Complementary Metal Oxide Semiconductor) technology was
developed after TTL as a low power alternative to existing bipolar transistor technology. CMOS technology is used in linear as well as digital
devices, and offers such advantages as operation over a wide range of
supply voltages and extremely low current consumption. Therefore,
many products that use CMOS devices can be operated from batteries
or from much smaller power supplies than those required for TTL.
The disadvantages of CMOS logic relative to digital I/O applications include sensitivity to static damage and incompatibility with TTL
signal levels. The threshold voltage that differentiates logic 1 from logic
0 with a CMOS input is roughly half the power supply voltage. The transition from log 1 to logic 0 does not contain any appreciable dead zone,
as does TTL. The current sink capability of a CMOS gate is also relatively low. However, buffer devices are available that can drive TTL
from CMOS.
SECTION 4
SECTION 5
Basic Analog
and Digital I/O
5.1
A/D Conversion
Voltage measurement during data acquisition relies on a process
known as analog-to-digital conversion (often abbreviated as A/D or
A-to-D). An analog input board contains an A/D converter and support
circuitry (Figure 5-1), which conditions and digitizes the incoming
voltage. The following list summarizes the individual circuit stages and
operation of a typical complete A/D circuit. Specialized analog input
boards may depart from this description, with multiple A/D converters, large FIFO buffers, circular buffers, triggering, or other features.
Signal conditioning (optional)
- Sensor excitation
- Filtering
- Input protection
Multiplexer (selects a channel on multi-input A/D boards)
Programmable instrumentation amplifier (applies gain)
A/D converter (digitizes the signal)
FIFO buffer (temporarily stores measurement data)
Control circuitry (retrieves data from FIFO buffer)
Input
Protection
Multiplexer
Instrumentation
Amplifier
.
.
.
A/D
Conversion
A
Gain
Select
Data
FIFO
Channel
Select
Bus
Data
CTRL
Control
Figure 5-1.
5.1.1
SECTION 5
5.1.2
Resolution
The function of an A/D converter is to generate a series of unique digital output states corresponding to a specific range of analog input
voltages. The ideal A/D converter would accept an infinite range of
input voltages and digitize the range into an infinite number of output
states. This is, of course, technically impossible. Fortunately, the factors
that limit real-world A/D resolution are easy to identify and understand.
As a general rule, the input voltage range of any A/D input is limited by the voltage used to power the circuit. A plug-in A/D board for a
computer receives operating power (a nominal 12VDC) from the
computer expansion slot in which it resides. The analog input board
requires 12V of headroom, limiting the actual input range to about
10VDC. This is, in fact, a very common input voltage limit for analog
input boards. Gain stages in front of the A/D converter can increase
sensitivity and reduce the permissible input to 5VDC, 2.5VDC,
1.25VDC, or some other fraction of 10VDC, but the maximum signal
voltage farther into the A/D circuitry will not exceed 10V. Stand-alone
instruments can be powered by internal supplies that arent affected by
this limitation, so they may offer a broader input dynamic range.
Standard resolutions of plug-in A/D boards are 8, 10, 12, and 16
bits, while stand-alone instruments can offer 1824 bits of resolution or
more. This represents the number of output bits the A/D converter has
available to digitize an analog input voltage. The voltage resolution per
bit (VRES) can be calculated as:
VINPUT
VRES = _________
2(No. of bits)
For example, an 8-bit converter can output 0000 0000 to 1111 1111
(binary). This corresponds to 28 or 256 discrete steps. An input range of
10V divided by 256 steps equals 20V/256 or 78.125mV per step. A 16bit converter would have a resolution of 20V/216 or 1.22mV per step for
the same 10V input.
Most A/D boards can also be configured for unipolar operation,
where the input range extends from 0 to +10VDC, 0 to +5VDC, etc. The
method for calculating the resolution of bipolar measurements is also
applicable to unipolar ones. Table 5-1 compares resolution and other
A/D characteristics as a function of A/D converter bits.
This table highlights several facts concerning A/D converters. First,
an A/D can not read a voltage equal to its maximum range (i.e., 10V on
a 10V range), even in unipolar mode. In the case of each converter
range shown in Table 5-1, the maximum readable voltage is one bit less
Table 5-1.
10
12
16
256
1024
4096
65,536
39.06 mV
9.765 mV
2.441 mV
152.59 V
19.53 mV
4.883 mV
1.221 mV
76.29 V
78.12 mV
19.53 mV
4.883 mV
305.2 mV
Resolution, 5V input
39.06 mV
9.765 mV
2.441 mV
152.59 V
19.53 mV
4.883 mV
1.221 mV
76.29 V
9.76 mV
2.441 mV 610.35 V
38.15 V
9.960
9.990
V 9.9976
V 9.99985
than the range. Second, an averaged reading at zero volts will equal
zero only for a measurement made in bipolar mode; in unipolar
modes, there are no negative readings to bring the average to zero.
Typical reading jitter with a digital input is at least one A/D count, placing the average for a series of readings made in unipolar range somewhere between zero and a few A/D counts. These observations apply
more to plug-in A/D data acquisition boards than to instruments.
Third, and perhaps less obvious, is that A/D offset errors can
swamp gain errors, especially for lower resolution boards. For the sake
of comparison, consider the maximum reading on a 010V scale for 8and 16-bit A/D converters. For the 8-bit converter, one bit of uncertainty represents 39mV, which calculates as 100 (0.039V/9.96V), or
0.39%. At 16 bits, the error is 152V, which corresponds to 0.0015%. In
comparison, gain errors of 0.01% to 0.05% are common for analog
input boards. This observation can apply to stand-alone instruments
as well.
Total error figures for a specific measurement situation depend on
the input voltage as well as the equipment and the environment. The
key to specifying the correct resolution for an application is to match
the resolution of the board to the resolution required of the measurement. In general, higher resolution A/D converters are more expensive
than their lower resolution counterparts. Buying capability somewhat
beyond current needs can provide insurance against obsolescence. On
the other hand, purchasing more capability than will ever be required
has no benefit. For example, if an application uses a pressure sensor
accurate to 1% (1 part in 100), a 16-bit A/D board will likely add needless expense to the system. Also note that, even if the application justifies the cost, a very high resolution A/D can still be a waste of money if
the less significant A/D bits are swamped by noise in the measurement
environment or from the sensor. Signal averaging can help the situa-
SECTION 5
5.1.3
Input Accuracy
Input accuracy is related to, but not equal to, input resolution. The
accuracy of a data acquisition board depends on its whole analog front
end, including the input multiplexer, the programmable gain amplifier, and the A/D converter.
Accuracy can be specified as absolute accuracy or relative accuracy. Absolute accuracy at a given A/D output code is the difference
between the actual and the theoretical voltage required to produce that
code. Relative accuracy is the deviation from the theoretical value after
the full-scale range has been calibrated.
Input accuracy can be specified in a number of ways. Three of the
more common specification methods, along with the formulas
required to convert the specifications into voltage accuracies, are
shown in Table 5-2. All calculations assume a 12-bit A/D converter and
a 10V full-scale input.
Table 5-2.
0.024 ____
1
______
+
= 4.8mV
100
212
Note that in the examples, the A/D accuracies are specified differently, but the results are identical.
5.1.4
5.1.5
A/D Techniques
The mainstream A/D conversion methods for data acquisition and
measurement instruments include successive approximation, integrating, and flash converters. Each conversion method offers a different
combination of performance and price that makes it suitable for a specific set of data acquisition applications. There are also several other
varieties of A/D conversion, which may be used in more specialized
data acquisition applications.
Normally, instrument and board manufacturers select an A/D
technology appropriate for the primary goals of a product. The three
most important characteristics of A/D product design are speed, resolution, and cost. Frequently, the user has to accept compromises in one
area to obtain essential performance in another area. It is important to
be aware of the limitations associated with different conversion methods. Table 5-3 briefly describes some of the main characteristics and
tradeoffs of mainstream A/D converter technologies.
Table 5-3.
Converter
Type
Typical
Resolution
Noise
Immunity
Relative
Cost
Successive
Medium
Approximation (10kHz to 1MHz)
616 bits
Little
Low
Integrating
Slow
(10Hz to 30Hz)
1224 bits
Very Good
Low
Flash
Very Fast
(1MHz to 500MHz)
48 bits
None
High
Sigma-Delta
Slow to Medium
(Up to 1MHz
or higher)
16 bits
or more
High
Low
SECTION 5
5.1.6
SECTION 5
Cutoff Frequency
Attenuation Slope
Stop-Band
Amplitude
Pass Band
Stop-Band
Ripple
Frequency
Figure 5-2.
of the analog-to-digital converter to eliminate the high frequency components before they get into the data acquisition system. Among the
more common types of anti-aliasing filters are Butterworth, Bessel,
and Cauer, each of which has specific filter characteristics. Figure 5-2
shows a typical anti-aliasing response curve. The pass band indicates
the frequencies that pass through the filter unchanged. The stop band
includes the frequencies that are attenuated by the filter. The filter type
determines the slope of the attenuation curve and the amount of ripple in the stop band. Cauer filters have the sharpest cutoff; however,
their transient response is not as good as that of the others. The Bessel
filter has the slowest cutoff of the three types and also has the best transient response.
5.2
D/A Conversion
Digital-to-Analog (D/A or D-to-A) conversion is the process used to
generate an analog output voltage, usually in response to digital data
supplied by a computer or other control circuitry. To some degree, D/A
conversion is the inverse of A/D.
A common D/A converter design couples a reference voltage with
a resistor network and control logic to generate specific voltages in
response to binary input data. As with A/D converters, multiplexers
can be included in D/A designs to provide multiple output channels
using one converter.
5.2.1
5.3
SECTION 5
Table 5-4.
Supply Voltage:
5VDC
0.02mA
0.4mA
2.7V minimum
0.5V maximum
0.4mA
8.0mA
5.3.1
To digital input
Figure 5-3.
Pull-up resistor
5.3.2
Contact Debouncing
When a mechanical switch snaps shut, there is a short periodtypically
15mswhen the contact surfaces bounce against each other. Some
logic inputs, notably digital counters, read this contact bounce as a
burst of pulses or ON/OFF signals (Figure 5-4). Solutions to contact
bounce can be implemented in software or hardware, although
debouncing in software is often preferred because it is less expensive.
A common software technique involves performing multiple readings
until the signal becomes stable. This may impose a slight delay in the
control program. Hardware debouncing is relatively instantaneous and
also more suitable where software is not used to read switch contacts.
Hardware debouncing requires a flip-flop circuit for each digital input
channel to provide a clean signal. Figure 5-5 shows a common
example.
Contact Bounce
Period
1
0
Switch Activated
Figure 5-4.
Contact bounce
+V
OUT
OUT
Figure 5-5.
SECTION 5
5.3.3
Dry Switching
Ordinary relay contacts designed for relatively high currents (>100mA)
have large surface areas made of arc-resistant materials. These materials can be unreliable for switching currents of a few milliamps or less,
because the limited signal energy cannot break through the film that
tends to build up on contact surfaces. Switches designed for dry circuits
have softer crosspoint contacts that will work well with small voltages
and currents. This is one case in which specifying a higher rating for the
contact may actually be less reliable.
5.3.4
Sensed as 1
2.0
Logic level is ambiguous
0.8
Sensed as 0
1
0
Figure 5-6.
5.3.5
5.3.6
SECTION 5
+5V
012V
Logic
Level
TTL
Logic Level
to Board
CD4049
(1 of 6 gates)
Figure 5-7.
CMOS-to-TTL buffer/inverter
Supply
Voltage
470
min.
NAND
Figure 5-8.
nal. These modules have two additional advantages: they are usually
mounted on external circuit boards, which locates these elevated voltages at a distance from the computer, and they provide up to 4000V of
electrical isolation. Isolation ensures that the test and measurement
equipment can handle signals referenced to different grounds safely.
Solid-state relay modules also offer an advantage in controlling
inductive AC loads such as solenoids. Unlike mechanical relays, where
contacts can be subjected to large voltage arcs when they are opened,
the solid-state relay will continue to carry current until it drops to zero,
then turn off.
5.4
Isolation
Electrical isolation refers to a condition where no electrical connection
or any common reference exists between two signals. An isolated
measurement is a measurement performed without an electrical connection between the signal source and the data acquisition input chan-
5.4.1
Digital Isolation
Digital isolation is simpler and less expensive to implement than analog isolation. Figures 5-9 and 5-10 show methods suitable for isolating
digital inputs and outputs. Both use an opto-isolator that provides an
electrical barrier between the digital input or output and the external
equipment. Note that both circuits maintain separate grounds and
power supplies on each side of the isolation barrier.
In the case of the isolated digital input in Figure 5-9, the diode side
of the opto-isolator is powered and controlled by external equipment,
Equipment
Digital I/O
+5VDC
10k
External
Ground
OptoIsolator
Figure 5-9.
SECTION 5
Digital I/O
Equipment
+5VDC
Digital
Ground
External
Power
OptoIsolator
Load
External
Ground
while the transistor switch in the isolator controls a digital input. For
the isolated output shown in Figure 5-10, a digital output channel controls the opto-isolator diode, while the opto transistor switches power
to external equipment. Generally, opto-isolators are low-power
devices, but they can be connected to a relay, power transistor, or other
device capable of controlling higher currents or voltages.
These circuits can be added externally to digital I/O channels,
although some test and measurement boards and instruments offer
isolated channels. External, solid-state, or mechanical relays can also
provide digital isolation.
5.4.2
Analog Isolation
Although analog isolation can be desirable for the same reasons as digital isolation, the nature of analog signals makes isolation more complex. Typically, isolation of analog signals involves converting the signal
into a form that can be coupled from one circuit to another without
physical connection. Further, the complexity and space requirements
of analog isolation make it difficult to implement a multichannel isolated analog input board that plugs into a PC. It is also questionable
practice to plug a board that carries high voltages or other potentially
dangerous signals into a PC. Therefore, it is more common to find isolated analog I/O channels on external or industrial data acquisition
systems where adequate room is available for circuit boards.
5.5
Ground Loops
Improper grounding is a common source of problems affecting analog
measurements. A perfect circuit ground sits at 0V with reference to
earth ground and represents an impedance of 0 at any frequency. In
reality, a good DC ground requires some effort to achieve and still may
not constitute a perfect ground at all frequencies.
When a piece of equipment is plugged into a three-wire grounded
AC outlet, in theory, the chassis is at ground potential. However, there
can be a considerable electrical path and a slight but significant resistance between the chassis and true ground. No problems should result
as long as the chassis is used as a central grounding point for all other
sensors and equipment. When instruments, sensors, and other components of a data acquisition system are plugged in AC mains at different physical locations in a facility, the chassis of each can be
established at a slightly different ground potential. The resulting voltage gradient between these different grounds can cause current to flow
through cable shields or other parts of the ground system, resulting in
a ground loop (Figure 5-11).
HI
Signal
A/D In
LO
GND
Ground Loop
Current Flow
Voltage
Gradient
Ground loops can occur in any type of measurement setup, but are
most troublesome for analog measurements. For single-ended measurements, ground loops result in current flow through circuit common
or cable shields. In the case of differential measurements, the voltage
gradient can add to the common mode voltage. As a result, measurements can be degraded through noise or suffer from reduced signal
input range.
SECTION 5
SECTION 6
Temperature
Measurement
6.1
Temperature
Temperature is one of the most frequently measured physical phenomena. Several sensor technologies are available for this purpose,
including thermocouples, resistive temperature detectors (RTDs),
thermistors, and various semiconductor devices. The measurement
range, accuracy, and ease-of-use of these sensors differ considerably,
so the best choice of a sensor depends on the application and temperature range.
6.2
Thermocouples
Thermocouples are probably the most widely used sensor for temperature measurement; they are used in labs, industry, and even consumer devices. As such, thermocouples are used in a large base of data
acquisition applications, including those employing many channels,
automated data logging, and process control, to name a few.
Thermocouple cards are also available for mainframe scanners, making it possible to add temperature monitoring to bench-type or rackbased systems. Even some low cost, hand-held DMMs have
thermocouple inputs to support temperature monitoring.
6.2.1
SECTION 6
Thermocouples lend themselves to a variety of packaging techniques that can be adapted to many types of applications.
Thermocouples offer a very wide overall temperature measurement range, spanning about 100C to higher than 2500C.
The typical accuracy of thermocouples is on the order of 12C,
which is more than adequate for the accuracy requirements of
most industrial applications.
While thermocouples have relatively few disadvantages, these disadvantages affect their usage and the hardware needed to read them
significantly. Thermocouple output is on the order of microvolts per
degree, and thermocouples are sometimes located far from the data
acquisition equipment. In order to compensate for these factors, differential measurement mode, high gain, filtering, and other signal conditioning techniques are used to maximize the signal and minimize
noise. These practices result in relatively slow measurement rates for
thermocouples, typically, a maximum of only a few hundred readings
per second. Furthermore, thermocouple output is non-linear, so linearization routines must be built into the hardware and/or software
used to convert thermocouple voltages to a temperature reading. This
is more of a concern for custom-written software, because commercial
software normally provides linearization capabilities.
Finally, thermocouple measurements require the use of a reference
junction. Rather than resorting to a separate thermocouple junction
and reference temperature for each channel, A/D boards designed for
thermocouples usually incorporate an isothermal block with an
embedded reference temperature sensor. The isothermal block provides a large thermal mass, which ensures that all thermocouple terminals on the A/D board are at the same temperature. Although these
features result in higher complexity and higher hardware costs, they
simplify the use of thermocouples.
6.2.1.2 Operating Principle of the Thermocouple
In the early 1800s, Thomas Seebeck discovered that the junction
between two metals generates a voltage that is a function of temperature. A thermocouple is simply a practical application of the Seebeck
Effect. It is a temperature sensor that consists of two wires of dissimilar metals joined at one end. These metals are shown as Alloy 1 and
Alloy 2 in Figure 6-1 and form junctions J1 and J4.
Historically, temperature measurement with thermocouples relied
on a second thermocouple element to sense a known temperature as a
reference. The easiest and most precise way of producing a reference
temperature was to immerse this reference junction (J4) in an ice bath,
which gave it the name cold junction. The magnitude of the voltage
generated in this scenario now depends on the temperature difference
TEMPERATURE MEASUREMENT
Alloy 3 (Cu)
J2
J3
Alloy 2
Alloy 2
Voltage proportional
to temperature difference
Alloy 1
J1
J4
Unknown
Temperature
Reference
Junction
(Ice water, 32F)
Figure 6-1.
between J1 and J4, and the types of metals used for Alloy 1 and Alloy 2.
The result can be expressed by the following equation:
V = (TUNKNOWN TREF)
where is the Seebeck Coefficient. Different types of thermocouples
have different coefficients, which are listed in most thermocouple references. With this configuration, it was only necessary to read the voltage, then look up the corresponding temperature in a table for the Alloy
1/Alloy 2 thermocouple type referenced to 0C.
Note that the connection of the thermocouple to the voltmeter
forms additional, potentially unwanted junctions J2 and J3. In effect,
these junctions are also thermocouples, but they are of like composition and opposing polarities. If the temperatures of J2 and J3 are equal
(a condition that can be reached relatively easily through proper hardware design), these junctions will have no effect on the measurement.
We now have a basic model that can be used to develop a more sophisticated instrumentation system for reading thermocouples.
6.2.1.3 Simplifying the Measurement System
Elimination of the ice bath and corresponding reference junction for
each thermocouple would be desirable for most applications, but particularly for industrial applications. It would not only simplify the use
SECTION 6
of thermocouples, but eliminate the need for a potentially large number of additional data acquisition input channels and sensor readings
for reference junctions.
As a first step in this process, we can assume that the thermocouple
measurement instrument or data acquisition board has been designed
and constructed so that its internal circuitry provides proper compensation against thermoelectric EMFs. This is, in fact, the case with good
circuit designs, and even truer for those designed to read low-level
voltages.
Next, we can concentrate on what happens between the input terminals and the thermocouple. The chief reason for immersing the reference junction in an ice bath was to force the junction to a known
temperature (0C). However, any temperature will suffice, as long as it
is known. Recall from Figure 6-1 that connecting the thermocouple to
a voltmeter input introduces extra junctions into the circuit at the
points of connection, each of which can also generate thermoelectric
EMFs. Ideally, these terminals (J2 and J3) will be at the same temperature. This can be ensured by mounting them on an isothermal block
that offers sufficient mass to withstand fluctuations in ambient temperature while maintaining the terminals at the same temperature
(Figure 6-2a).
Next, we can move the reference junction out of the ice bath, onto
the isothermal block to produce the circuit in Figure 6-2b. This ensures
that the instrument terminals and the reference junction (J2 , J3 , and
J4) are all at the same temperature. This temperature can be read with
a sensor that does not require a reference junction, such as a thermistor or semiconductor temperature sensor in contact with the isothermal block. Thus, we have succeeded in eliminating the need for a
separate reference temperature source and can measure the temperature of the terminals and the reference junction.
The final step in simplifying this thermocouple input circuit is to
eliminate the length of Alloy 2 wire that extends from the reference
junction (J4) to the instrumentation input (J3). The Law of Intermediate Metals states that a third metal inserted between two dissimilar
metals of a thermocouple junction will have no effect on the output
voltage, as long as the two junctions formed by the additional metal are
at the same temperature. As these junctions are all mounted to the
isothermal block, their temperatures are equal. The thermocouple
junction in this case must be visualized as being formed by copper and
Alloy 1, with Alloy 2 as the intermediate metal.
By removing Alloy 2, we have achieved the input circuit commonly
used for modern thermocouple instrument inputs (Figure 6-2d). A
fixed reference temperature and thermocouple are no longer required
because a non-thermocouple reference sensor is now used to read the
temperature of the isothermal block and input terminals. Multiple
TEMPERATURE MEASUREMENT
a.
HI
Cu
LO
Cu
Data
Acquisition
System
Alloy 2
J2
J1
Alloy 1
Alloy 2
J3
Isothermal Block
J4 Ice Bath
TREF = 0C
TREF = ?
T
b.
Data
Acquisition HI
System
Cu
LO
Cu
Alloy 2
J2
J1
Alloy 1
Alloy 2
J3
J4
Isothermal Block
TREF = ?
T
c.
Data
Acquisition HI
System
Cu
LO
Cu
Alloy 2
J2
J1
Alloy 1
J3
Isothermal Block
Cold
Amplifier
d.
A/D
Converter
Cu
Fe
Cu
Fe
C
+5V
(Constantan)
Alternate
Temperature
Sensor
Typical input for a J-type thermocouple, using a semiconductor
temperature sensor as the reference junction.
Figure 6-2.
SECTION 6
TEMPERATURE MEASUREMENT
Therefore, the voltage read by the data acquisition instrument would be:
Vmeasured = 5.268 1.019 = 4.249mV
In reality, given that the hot junction temperature is unknown
(100C), the reverse process is applied. The data acquisition device
takes two voltage measurements: one from the thermocouple
(4.249mV) and another one from the cold reference junction Vnew (note
that Vnew is different from Vcold). Then, the software would take over; it
would convert the Vnew to an actual cold junction temperature, Tcold
(25C), based on the properties of the cold junction sensor. Having
Tcold, the software would figure out the equivalent voltage (1.019mV)
according to the Type J look-up tables. It would then add this voltage to
the measured voltage (1.019 + 4.249 = 5.268mV) to obtain the final hot
junction voltage. The final step would be to convert the hot junction
voltage (5.268mV) to an actual temperature (100C) by using the same
Type J look-up tables.
6.2.1.5 Thermocouple Alloys, Extensions, Terminal Pins,
and Other Interconnects
When thermocouples are connected to data acquisition board terminals or other readout devices, the connections form additional junctions that can generate unwanted thermoelectric voltages. A copper
terminal pin plugged into a copper socket will not generate a thermoelectric EMF. However, a constantan pin or socket crimped to a copper
wire results in a J-type thermocouple junction that will generate a
thermoelectric EMF. Extension wire and connector pins made from
thermocouple metals are available to permit connection of like metals.
Attention must be paid to every conductor and termination throughout a thermocouple circuit to ensure that unwanted junctions are not
introduced into the circuit.
Also note that the purity of alloys directly affects the accuracy of
temperatures calculated from a junction voltage. The wire used for
making sensors has a higher accuracy than the extension grade
thermocouple cabling used for long cable runs. Its important to keep
this fact in mind when constructing thermocouple circuits.
6.2.2
SECTION 6
Thermocouple
Wire
Sheath
Extension
Figure 6-3.
Connector
TEMPERATURE MEASUREMENT
6.2.3
SECTION 6
Table 6-1.
Thermocouple types
Type
Gauge
F Range
C Range
8
14
20
24
70 to 1400
70 to 1100
70 to 900
70 to 700
57 to 760
57 to 593
57 to 482
57 to 371
8
14
20
24
70 to 2300
70 to 2000
70 to 1800
70 to 1600
57 to 1260
57 to 1093
57 to 982
57 to 870
8
14
20
24
70 to 2300
70 to 2000
70 to 1800
70 to 1600
57 to 1260
57 to 1093
57 to 982
57 to 870
14
20
24
70 to 700
70 to 500
70 to 400
57 to 371
57 to 260
57 to 200
8
14
20
70 to 1600
70 to 1200
70 to 1000
57 to 871
57 to 649
57 to 538
R, S Platinum vs.
Platinum/13% Rhodium
24
50 to 2650
46 to 1454
24
32 to 2650
0 to 1454
Table 6-2.
Type
()
Conductor
Thermocouple
Jacket
Extension
Jacket
White
Red
Brown
Black
Yellow
Red
Brown
Yellow
Orange
Red
Brown
Orange
Blue
Red
Brown
Blue
Purple
Red
Brown
Purple
Black
Red
Green
Black
Red
Green
Gray
Red
Gray
TEMPERATURE MEASUREMENT
to 1700C, and as references for testing other types. To avoid the possibility of contamination at high temperatures from metal vapors, they
should be used inside a non-metallic sheath.
Type R: Industrial standard for high temperature (to 1450C).
Prone to contamination when contacting other metals. Stable in
oxidizing atmospheres, but degrade rapidly in vacuum or reducing atmospheres.
Type S: Similar to Type R. Not used extensively as an industrial
sensor.
Type B: Similar to Types R and S, but useful to 1700C. Best used
at temperatures higher than 250C. A weak, non-linear output at
low temperatures and a dip in output voltage from 0C to 50C
make the B type thermocouple unusable at temperatures less
than 50C.
6.2.3.3 Other Types of Thermocouples
Type C, D, and E thermocouples are more difficult to use because of
their brittle nature and susceptibility to oxidation and breakage. These
types must be used in inert atmospheres, and are useful to 2315C.
Type C: Tungsten/5% Rhenium vs. Tungsten/26% Rhenium
Type D: Tungsten/5% Rhenium vs. Tungsten/26% Rhenium
Type G: Tungsten vs. Tungsten/26% Rhenium
6.3
Figure 6-4.
Simple RTD
SECTION 6
is often expressed as a percentage of resistance at a specified temperature. For instance, a Class B RTD is specified by the International
Electrotechnical Commission (IEC) as 100 0.12% at 0C. IEC Class A
accuracy provides 0.15C at 0C. However, the calibration is performed at two or more temperatures suitably spaced over the stated
RTD working range. Frequently, an interchangeability tolerance is also
specified for RTDs. This specification indicates the maximum tolerance error an RTD of a particular design will have. A typical value is
0.1C.
6.3.1
Construction
Several techniques are used to manufacture RTDs. These techniques
provide various tradeoffs between cost, durability, ease-of-use, and
performance.
The classic RTD configuration is a length of platinum wire wound
on a glass or ceramic bobbin (Figure 6-4). The RTD is then encapsulated in glass or other protective material.
A second variety of RTD is constructed by depositing a conductive
film on a non-conductive substrate, which is then encapsulated or
coated to protect the film. RTD assemblies often include connectors,
metallic sheaths, and handles that make them resemble thermocouple
probes.
6.3.2
Principle of Operation
RTDs are based on the principle that the resistance of most metals
increases with an increase with temperature. An ideal metal for RTDs
would exhibit the following characteristics:
High resistivity (resistance per unit of length), which minimizes
the amount of wire required to provide a high resistance.
The change in resistivity vs. temperature is adequate to provide
the desired measurement resolution.
The change in resistivity is linear, simplifying the conversion to
a corresponding temperature.
Mechanical properties and durability of the metal facilitate construction and ensure the reliability of the measurement device.
Tungsten, nickel, and platinum all possess relatively high resistivities. However, tungsten is fragile and nickel has a non-linear response.
Platinum wire is fragile, but it is only slightly non-linear in its response.
Platinum is highly resistant to contamination and exhibits a predictable change in resistance with temperature. Therefore, most
general-purpose RTDs are made of platinum wire.
The resistance of platinum RTDs ranges from tens of ohms to several thousand ohms, but most platinum RTDs have been standardized
to a value of 100 at 0C. Depending on the purity of the platinum
TEMPERATURE MEASUREMENT
6.3.3
Application of RTDs
Unlike a thermocouple, an RTD needs no reference junction. It might
seem a simple matter to connect a standard DMM to the RTD, measure
the resistance of the RTD, then convert to a corresponding temperature. In practice, the resistive properties of the RTD and associated
wiring usually require sensitive instrumentation optimized for low
resistance measurements. For example, a 100 RTD having =
0.00385//C produces a resistance change of only 100 0.00385/
/C or 0.385/C. The wire leads connecting the RTD to the ohmmeter might have a value of several ohms. With a 100 RTD, 1 amounts
to an equivalent temperature error of about 2.5C.
Traditionally, RTDs have been implemented either as part of a
Wheatstone bridge (ratiometric) circuit or in a four-wire (direct voltage
or resistance measurement) configuration. Both methods are capable
of minimizing the effects of lead resistance to provide accurate readings, but each imposes certain requirements. Wheatstone bridges
require additional resistive components to complete the bridge and
the resistance of wire leads from the bridge to the RTD must also be
taken into consideration (Figure 6-5). The bridge design shown in
Figure 6-6 is a refinement of the basic bridge and uses a separate voltage sensing lead from the voltmeter to the RTD to minimize the effects
of lead resistance (a three-wire arrangement). Further developing and
simplifying the bridge produces the four-wire measurement circuit in
Figure 6-7. Here, a current source is used to excite the bridge.
VS
Rref
VS
Voltage
Source
VS
2
Rref
Voltmeter
VM = VR
VS
2
RL
RTD
RL
Lead Resistance
Figure 6-5.
SECTION 6
VS
Rref
VS
VS
2
Voltage
Source
Voltmeter
V
VM = VR S
2
Sense Current = 0
VR
Rref
RL
RL
RTD
Lead Resistance
Figure 6-6.
RL
Current = I
RM
0
Current
Source
VM
VR
Current = 0
RM
RTD
RL
Lead Resistance
Figure 6-7.
Four-wire RTD
TEMPERATURE MEASUREMENT
meters usually offer a four-wire measurement mode, and use an onboard excitation source optimized for precise, high resolution measurements of low resistances.
The following subsections describe the theory and calculations for
three-wire and four-wire RTDs. These are offered for reference purposes. The two-wire RTD is not discussed in detail here, although a diagram of it is shown in Figure 6-5. The two-wire configuration is more
suitable for applications where the distance from the bridge to the RTD
is short and some measurement error can be tolerated. Higher gauge
lead wires can be used to minimize these errors. However, the four-wire
RTD configuration is recommended in most applications.
6.3.4
(VS + 2VM)
RL
RTD = (R + RL) ___________
(VS 2VM)
The current through the RTD side of the bridge is:
VS + 2VM
IRTD = ___________
2R
If the RTD is on the supply side of the bridge, the formula is:
SECTION 6
(VS 2VM)
RL
RTD = (R + RL) ___________
(VS + 2VM)
and the current through the RTD is:
VS 2VM
IRTD = ___________
2R
If RL is known, it can be included in the formula. If RL is not
entered, the worst-case error for the value of the RTD will be about half
that obtained in the two-wire configuration. As the value of the RTD
approaches R, the error will approach zeroan advantage of choosing
R equal to the RTDs value at the temperature of greatest interest.
6.3.5
6.3.6
TEMPERATURE MEASUREMENT
t=
2 (VRTD IRTDR0)
IRTDR0 [
A2
Table 6-3.
Standard
RTD
Temperature
Coefficient ()
C*
DIN 43760
0.003850
3.9080 103
5.8019 107
4.2735 1012
American
0.003911
3.9692 103
5.8495 107
4.2325 1012
ITS-90
0.003926
3.9848 103
5.870 107
4.0000 1012
* Used for temperatures less than 0C only. For temperatures higher than 0C, C = 0.
6.3.7
SECTION 6
6.4
Thermistors
The thermistor (thermally sensitive resistor) is a second variety of resistive temperature detector commonly used in data acquisition applications. Although RTDs and thermistors are both resistive devices, they
differ substantially in operation and usage.
Thermistors are passive semiconductor devices. Both negative
temperature coefficient (NTC) and positive temperature coefficient
(PTC) thermistors are available. The resistance of an NTC thermistor
decreases as its temperature increases, while the resistance of a PTC
thermistor increases as its temperature increases. For temperature
measurement applications, NTC types are used more commonly than
PTC thermistors.
Very small thermistors can be manufactured and this small size
allows them to respond quickly to slight temperature changes.
However, they can be prone to self-heating errors. Thermistors are also
relatively fragile, so they must be handled and mounted carefully to
avoid damage.
Thermistors offer a significantly broader range of base resistance
values than RTDs do, with base resistance values of kilo-ohms to megaohms readily available. Compared to RTDs, the temperature coefficient
of a typical thermistor is relatively largeon the order of several percent or more per degree Celsius. This high temperature coefficient
results in a resistance change of up to several thousand ohms per
degree Celsius. Therefore, the resistance of the wires connecting the
instrumentation to the thermistor is insignificant, so special techniques such as high-gain instrument inputs and three- or four-wire
measurement configurations are unnecessary to achieve high accuracy.
While thermistors have relatively few drawbacks associated with
them, its important to be aware of these limitations in order to achieve
accurate, reliable measurements. For example, thermistors are relatively low temperature devices, with a typical measurement range of
50C to 150C, although some thermistors can be used at temperatures up to 300C. This range is significantly narrower than that of
thermocouples and RTDs. Exposure to higher temperatures can decalibrate a thermistor permanently, producing measurement inaccuracies. Thermistors are highly non-linear in their response, and are not
as standardized as thermocouples and RTDs. They tend to be more
appropriate for applications that require sensitive measurements over
a relatively restricted temperature range, rather than for generalpurpose temperature measurements.
6.4.1
TEMPERATURE MEASUREMENT
6.4.2
Current
Source
Lead Resistance
Current
Source
Lead Resistance
Figure 6-8.
SECTION 6
6.5
6.6
Thermal Shunting
All temperature detectors possess some mass in the form of a sensor
element, protective sheath or encapsulation, leads, and other physical
components. When the sensor is placed in contact with a medium to
TEMPERATURE MEASUREMENT
i = 1A/K
10mV/K
10k
To DVM
Current
Sensor
Figure 6-9.
To
DVM
Voltage
Sensor
measure its temperature, the sensor will absorb some heat energy from
the medium, thereby altering its heat content and temperature. This
process is called thermal shunting.
Thermal shunting can be minimized by using temperature sensors
of the smallest possible mass. However, the choice sometimes imposes
tradeoffs. For example, although thermocouples generally have lower
mass than RTDs, they are less accurate. Powered resistive sensors of
lower mass are more prone to joule heating than more massive sensors.
Temperature sensors with lower mass can also be more susceptible to
damage or other problems.
SECTION 6
SECTION 7
Strain
Measurement
7.1
Strain
Studying the physical behavior of mechanical structures frequently
includes measuring a phenomenon known as strain. Strain is defined
as a physical distortion of an object in response to one or more external stimuli applied to the object. Typical stimuli include linear forces,
pressures, torsion, and expansion or contraction due to temperature
differentials. Strain can result in elongation or contraction; these phenomena are noted by the use of a (+) sign for expansion or a () sign for
compression.
Strain information is important in structural engineering because
it can be used to determine the stress present in an object. Stress data
can then be used to assess factors such as the structural reliability and
service life of the object. The basic principle of strain measurement is
also used in other types of force-related measurements, such as pressure, torque, and weight.
Strain is calculated as the change in length of an object divided by
the unit length of the object. Normally, this change is extremely small
in relation to the objects length. For example, the length of a onemeter rod might change by only 0.01mm under compression. This
change can be calculated as 0.01mm/1000mm, and is expressed as
0.00001 strain or ten microstrain.
L
Strain () = ____
L
7.2
Poissons Strain
When a bar is strained with a force along the length, causing the bar to
elongate, a phenomenon known as Poissons Strain causes the girth of
the bar to contract. This contraction is a material property denoted by
Poissons Ratio () for the specific material (Table 7-1). Poissons Ratio
is defined as the negative ratio of the strain in the transverse direction
(perpendicular to the force) to the strain in the axial direction (parallel
to the force) or .
t
= ____
7.3
Strain Gauges
Strain is measured using strain gauge sensors. While there are piezoelectric and semiconductor strain gauges, the majority are passive
resistive devices constructed by depositing or etching a wire or foil
sensing grid on a substrate known as the carrier matrix. Figure 7-1
SECTION 7
Table 7-1.
Material
Poissons Ratio ()
Aluminum
0.32
Red Brass
0.33
Cast Iron
Polycarbonate
Steel 1018
0.285
0.285
Steel 4130/4340
0.280.29
0.25
0.270.29
Titanium
0.34
Gauge Length
Figure 7-1.
Solder
Tabs
Usually, strain gauges are attached to a test object using an adhesive designed to transmit strain from the object to the gauge, as well as
to insulate the gauge and dissipate heat from the gauge to the object. A
protective coating may also be applied to the outside of the mounted
strain gauge to seal it from the environment.
Resistive strain gauges are used in a Wheatstone bridge configuration (Figure 7-2). The Wheatstone bridge is effective in detecting an
imbalance between resistances comprising the bridge. However, a
four-wire measurement setup similar to that used for RTDs can also be
used for measuring the resistance of one strain gauge (see Section 6,
STRAIN MEASUREMENT
R1
R2
G
R3
Figure 7-2.
R4
SECTION 7
VS
VS
Regulated
Voltage
Source
R4
R1
Voltmeter
(VOUT)
R3
R2
+
Strain
VOUT
Figure 7-3.
Force
R1
R3
R2
R4
Gauge Placement (1, 2, 3, 4)
Figure 7-4.
Accurate measurement of strain gauges requires a low noise, regulated voltage source to eliminate unwanted variation in VOUT. The current requirement can be calculated according to Ohms Law as I = VS/R,
where R is the total resistance of the bridge. These current requirements are typically quite low; a 120 bridge operating from 5V would
require 5/120 or about 42mA. Recommended maximums for the strain
gauge supply voltage (VS) range from 12V up to 25V or more. The
applied voltage should not exceed the strain gauge manufacturers recommendations.
STRAIN MEASUREMENT
7.4
Gauge Factor
The term gauge factor (GF) describes the ratio of the change in resistance with respect to strain. The complete expression for GF is:
R/R
R/R
GF = ______ = ______
L/L
A typical gauge factor is two; however, the strain gauge manufacturer should supply the actual gauge factor and tolerance for individual
product samples. Ten microstrain applied to a gauge with a gauge factor of two results in a resistance change of 20 micro-ohms (20 106).
The maximum strain likely to be encountered with most metallic
objects is about 5,000 microstrain, which, with GF = 2, corresponds to
a change in resistance of 10,000 micro-ohms (0.01). Therefore, measuring strain accurately requires instrumentation that can resolve at
least 1 or 1V.
7.5
Sources of Error
Like other types of resistive sensors, the accuracy of strain gauges can
be affected by electrical noise, thermoelectric EMFs, and joule heating.
Therefore, strain gauges should be installed using shielding where necessary and taking connector metals, supply voltage, and ambient temperature into consideration.
Note that quarter and half bridge configurations are more susceptible to non-linearity errors than a full bridge as the bridge moves out
of balance, as well as to errors caused by the resistance of measurement leads. Using a full bridge will minimize or eliminate these error
sources.
To minimize self-heating, the voltage used to power a strain gauge
bridge should be only high enough to achieve the desired result, and
should not exceed the manufacturers recommendations. Note that a
rated maximum supply voltage might only be permitted for applications where the test object can adequately sink heat from the gauge.
Excitation can be applied only during measurements as a means of
reducing self-heating.
Strain gauges are often accompanied by a reference temperature or
temperature range for which the gauges specifications are valid.
A full bridge strain gauge can tolerate temperature change with
minimal effect on the bridges basic accuracy, because all four legs of
the bridge presumably have the same temperature characteristics and
are affected equally. For quarter or half bridge configurations, temperature-dependent errors can be compounded by the possibility that
bridge completion resistors are located some distance from the strain
gauge, and that they have thermal characteristics that differ from the
rest of the circuit. Therefore, it may be necessary to compensate for
SECTION 7
temperature effects. This process requires measurement of gauge temperature, and application of temperature coefficient information supplied with the strain gauge.
In actual applications, temperature changes can result in dissimilar rates of expansion between the strain gauge and the test object.
These dissimilar expansion rates appear as mechanical strain in the
test object, even though the object has not been subjected to any distorting force. This apparent strain can be minimized by maintaining
the test object and strain gauges at a consistent temperature, and by
matching strain gauges to test objects according to thermal expansion
characteristics. Strain gauge vendors frequently offer gauges matched
to the thermal expansion properties of plastics, aluminum, steel alloys,
and other common structural materials.
7.6
Operation
Unlike bridge-based measurements with resistive temperature sensors, strain gauge bridges are used in applications where the incremental change in resistance is of greater interest than the absolute
output level of the bridge. Normally, bridge output vs. strain closely
approximates a linear relationship. The output of a strain gauge is relatively small, up to a few thousand microstrain, because the bridge does
not move very far out of balance, even with the test object loaded to
maximum.
A variety of techniques exist for converting bridge behavior into
strain. These range from bridge rebalancing to a simple reading of the
voltage across the bridge. This direct reading method assumes a linear
relationship between bridge output voltage (VOUT) and strain (). A
bridge that is balanced under no load conditions is helpful in minimizing possible linearity errors.
The following paragraphs describe formulas for calculating basic
strain measurements for a Wheatstone bridge, based on the supply
voltage (VS), the bridge type, gauge factor (GF), and the bridge output
voltage (VOUT). The formulas make use of an additional variable, voltage ratio (VR), which is calculated as follows:
VOUT (Strained) VOUT (Unstrained)
VR = __________________________________
VS
7.6.1
STRAIN MEASUREMENT
VR
GF
2VR
GF( + 1)
2VR
GF[( + 1) VR( 1)]
VS
VS
Regulated
Voltage
Source
R2
R4
R1
+
Voltmeter
(VOUT)
R3
+
Strain
VOUT
Figure 7-5.
7.6.2
SECTION 7
Where R3 and R4
measure normal
strain:
2VR
R
1+ L
GF
RG
Where R3 measures
Poissons Strain and
R4 measures normal
strain:
2VR
4VR
R
1+ L
GF
GF[( + 1) 2VR( 1)]
RG
VS
R1
VS
Regulated
Voltage
Source
R2
RL
Voltmeter
+
0
R4
RL
(VOUT)
RL
R3
Lead Resistance
Figure 7-6.
7.6.3
STRAIN MEASUREMENT
VS
VS
R1
+
Regulated
Voltage
Source
R2
RL
Voltmeter
+
0
R4
RL
(VOUT)
RL
R3
Lead Resistance
Figure 7-7.
7.7
2VR
4VR
R
1+ L
GF
GF(2VR + 1)
RG
7.8
Shunt Calibration
The normal procedure to verify the output of a strain gauge measurement system relative to some predetermined mechanical input or
strain is called shunt calibration. Shunt calibration involves simulating
strain gauge loading by connecting a known high resistance (R1) across
one leg of the bridge (R2). The resulting resistance (RT) for that bridge
leg can be calculated by:
SECTION 7
R1 R2
RT = ________
R1 + R2
The output of the bridge can then be measured and compared to
the expected voltage value. It can also be used to correct span errors in
the entire measurement path or to verify general operation of the test
setup.
Caution: The shunt calibration is a convenient way to simulate
strain electrically. However, it does not check the mechanical function
of the sensor, so it may not detect errors caused by cracks, deformation, or other mechanical problems. To check for these kinds of problems, apply a known weight or other suitable physical stimulus
periodically to verify that the sensor responds appropriately.
7.9
STRAIN MEASUREMENT
2. These transducers are designed for process control or other commercial applications, as opposed to traditional strain gauges that
are used for experimentation or research.
3. Transducers may be based on traditional resistive strain gauges or
on other sensor technologies. They must be powered from an
external excitation voltage specified by the manufacturer. The output is frequently a low-level signal, so it often requires amplification and signal conditioning for best results. External drift
compensation, calibration, and zero adjustment may be required
to provide accurate, long-term results.
4. Sensing elements are fully integrated into the transducer. They are
frequently sealed from the environment and inaccessible to the
user.
7.10.1 Acceleration
Acceleration is the rate of change of velocity that a mass undergoes
when it is subjected to a force. It is defined by the formula:
Force = mass acceleration
Assuming that mass and force remain the same, then acceleration
is constant, meaning that an objects velocity will continue to change at
a uniform rate. Acceleration is expressed as distance per time squared,
with meters/sec2 and feet/sec2 being common units. Earths gravity
exerts a force of 9.8m/sec2, or 32ft/sec2; this amount of acceleration is
often referred to as 1g (g for gravity). Sensors designed to measure
acceleration can measure values ranging from millionths of g (g) to
hundreds of g or more. They are frequently designed to withstand overloads of thousands of g without damage.
Note that velocity is a vector quantity and consists of components
for speed and direction. Therefore, an object undergoes acceleration
when its speed, direction, or both change. Furthermore, the direction
of the acceleration can be multi-dimensional, requiring a multi-axis
accelerometer for complete measurement. Accelerometer mounting
can be critical for achieving satisfactory results; a misalignment of only
a few degrees can have profound effects on the final result.
SECTION 7
7.10.2 Shock
Shock is a special case of linear acceleration in which the acceleration
(or deceleration) time approaches zero. In the real world, the time cannot equal zero, but it can equal a very small fraction of a second. The
result of a large change in velocity over a short time can produce an
acceleration of hundreds of g or more.
For shock studies, the measurement range of the accelerometer
must be able to handle the acceleration expected in the specific shock
situation. This value can be calculated by dividing the change in velocity by the time interval:
V
a = ____
t
For example, an object traveling at 100m/sec that strikes a surface
and stops in 0.5 seconds (a relatively mild shock, by some standards)
would experience a deceleration of 200m/sec2. The force of gravity is
9.8m/sec2, so this deceleration corresponds to approximately 20g. For
purposes of comparison, this shock might be fatal to a human, but
some computer hard drives are specified to withstand a 30g shock
while operating, and up to 300g while unpowered.
7.10.3 Vibration
Vibration is a continuing change in the position of a body, typically
occurring in a cyclic pattern with a constant or near-constant period.
Vibration is a common characteristic of machines; it is of interest in
manufacturing because its measurement can provide an indication of
the health of machinery. Periodic monitoring and analysis of vibration
levels can reveal specific problems, such as worn bearings, loose fasteners, or out-of-balance rotating components, before they become
severe enough to be noticed or to cause complete failure. Vibration is a
cyclic changing of position, so it can be detected by using an
accelerometer.
STRAIN MEASUREMENT
SECTION 7
Table 7-2.
TYPE
FEATURES
Strain Gauge/Mass
(or strain)
Accelerometer
Piezoelectric
Accelerometer
Spring-resistive
Accelerometer
STRAIN MEASUREMENT
SECTION 7
STRAIN MEASUREMENT
SECTION 8
Related Topics
of Interest
8.1
Current Measurements
Electrical currents can be measured with data acquisition systems, but
the method selected will depend on the current level and number of
required channels. An important characteristic of a current loop is that
any lead resistance in the circuit does not affect current flow as long as
the source can supply the required voltage. That makes current loops
ideal where theres an appreciable distance (i.e., >2m) between the signal source and the instrumentation.
Measuring current is necessary under two sets of circumstances.
The first case is where the sensor or signal source outputs a current,
rather than a voltage. In these circumstances, the current is an indicator of some other phenomenon to be measured, so it must be converted into appropriate engineering units. A pressure transducer with
420mA output is one example of this situation. A reading of 4mA corresponds to no pressure (zero pounds per square inch), while 20mA is
the transducers full-scale output in pounds per square inch.
The second application of current measurement is where the actual current reading is the parameter of interest, such as tracking the load
current drawn by a device over time. Here, its important to remember
that the current may be relatively high, which requires extra care in
selecting a dropping resistor.
8.1.1
Voltage Burden
The concept of voltage burden is important to achieving the best
results in a current measurement setup. Voltage burden is defined as
the voltage drop across the input of an ammeter when it is inserted into
a circuit. In Figure 8-1, the dropping resistor (R) and A/D voltage input
constitute an ammeter, and the current flow can be calculated from the
voltage drop across a resistor.
The resistor value will normally be selected to provide a voltage
drop corresponding to the A/D boards input range when the maximum anticipated current flows through the resistor. For example, a
20mA current produces a 10V drop across a 500 resistor. A 490
resistor will provide some safety margin in the measurement without a
significant loss of resolution. Note that the sensor or current source
must be capable of a minimum 1011V output to achieve the full voltage drop across the resistor. If the circuit is powered only by 6V, the circuit can not drive more than 12mA through the resistor.
The power dissipated by the resistor must also be considered. For a
20mA current through a 500 resistor, dissipation (P) can be calculated as:
P = I 2 R = (0.02)2 500 = 0.2W
This application could be handled with a 0.25 or 0.5 watt resistor.
SECTION 8
Cable
Resistance
Sensor
or
Signal
Source
Current
I
Dropping
Resistor
R
A/D Input
+
V
I=
V
R
8.1.2
8.2
Connection Theory
Most electronic measurements, including those typical of data acquisition, require an electrical connection between the data acquisition
hardware and signal source. The validity of these measurements
depends largely on how well cables and connectors are matched to the
signals, and how carefully the measurement setup is constructed and
routed.
Data acquisition applications usually deal with DC signals in the
range of 1mV to 10V, but stand-alone instruments can be used to measure signals far above and below this range. While many concerns common to low level or high level measurements, such as triboelectric
effects, thermoelectric effects, and insulation properties, are less of an
issue in data acquisition applications, they are still critical concerns in
other measurement scenarios. Electromagnetic noise, cable length, and
cable capacitance can affect the quality of any type of measurement.
8.2.1
Cable Type
A particular type of wire or cables suitability for data acquisition
depends largely on the nature of the signal and the test environment.
When evaluating a cable for this application, consider these issues:
How much electrical noise exists in the environment? Noise
can be defined as any undesirable signal that is impressed upon
a signal of interest. Sources of electromagnetic noise include AC
power lines, motors and generators, transformers, fluorescent
lights, CRT displays, computers, radio transmitters, etc.
Depending on the nature of the signal and the noise, it may not
be possible to separate them once the signal has been acquired
What is the distance between the signal and data acquisition
input? Wire exhibits some electrical resistance, which depends
on the composition, length, and gauge of the wire. Resistance
increases with increasing wire length and with decreasing wire
diameter. This resistance becomes a part of the analog input circuit as shown in Figure 8-2. For most voltage-based analog
measurements, the source resistance of the signal will be low
(i.e., less than 100), while the input resistance of the analog
channel will be on the order of 10100M or higher. Therefore, a
few ohms resistance in interconnect cabling will not appreciably
affect measurements. However, a high cable resistance in conjunction with low A/D input resistance can result in a significant
voltage drop through the interconnect wiring. For data on the
resistances of common wire gauges, refer to Appendix C.
Is the data acquisition channel a single-ended or differential
input? Single-ended signals, i.e., those referenced to ground,
can be transmitted with two wires or with a shielded cable where
SECTION 8
Cable Effects
A/D Input
Sensor
Source
Resistance
Input Bias
Current
Input
Resistance
+
V
8.2.2
Conductors
The conductors used in shielded or unshielded cable can be solid or
stranded wire. Solid wire results in minimum signal attenuation, but
stranded conductors provide more flexibility. Often, conductors are
plated with silver or tinned with solder.
8.2.3
Shielding
Shielding is employed to reduce the amount of noise picked up by signal leads, but shielding can also be helpful in reducing signal radiation
from conductors carrying high frequency signals. Shielding can be
constructed with different types of wire braid or a combination of wire
braid and foil. Multi-layer or multi-braid shields are more effective
than single layer shields in attenuating signal pickup or radiation, but
can also make cables stiffer and more difficult to position.
TYPE
ADVANTAGES
DISADVANTAGES
Single Conductor
Inexpensive.
Easy to connect.
Twisted pair
Single Conductor
with Shield (Coax)
Higher cost.
Connection to equipment
more difficult.
Shielded Twisted
Pair or Shielded
Multi-conductor
Cabling
Higher cost.
Connection to equipment
more difficult.
Ribbon Cable
SECTION 8
8.2.4
Cable Capacitance
A typical signal behaves like a voltage source in series with a resistance.
Similarly, an analog instrument input resembles a meter with infinite
input resistance in parallel with the instruments actual input resistance.
During a measurement, the instrument input absorbs a small bias current that the source must be able to generate. The interconnect cabling
is an essential part of this circuit, and can introduce resistance, capacitance, and inductive effects that depend on length, gauge, composition,
routing, and environment. Figure 8-2 shows a dashed box around a portion of the signal path that represents the sum of these effects.
For high speed, rapidly changing signals, circuit inductance and
capacitance can be serious obstacles to measurement speed, even if
signal and instrument impedances are properly matched. Generally,
high impedance signals take longer to stabilize at the instrument
because the signals limited current requires more time to charge cable
capacitance.
SECTION 9
Application
Examples
9.1
Introduction
This section provides examples of real-world applications that employ
data acquisition products to monitor or control industrial processes.
These examples are intended simply to demonstrate what is possible,
rather than providing details such as programming examples and
wiring diagrams. For in-depth information, contact Keithley Instruments Applications Engineering department.
9.2
SECTION 9
9.2.1
Design Considerations
It would be nearly impossible to characterize a typical OEM or factory automation application. Systems that can measure and control
almost every parameter in a process have been implemented throughout nearly every industry. The nature and physical environment of an
application will help determine its basic system design requirements.
For example, consider what would be involved in an application
designed to control a 2000-ton hydraulic press and its associated
robotic parts-handling equipment. In this situation, a high degree of
determinism (i.e., precisely known and controlled response times to
stimuli) is required, along with control signals and transducers that can
function in electrically noisy environments. If the system builder were
to implement a solution based on a PC platform, plug-in data acquisition boards, TTL inputs and outputs (I/O), and the Windows 98 operating system, its likelihood of success would be questionable. The
system requirements listed above would make a system based on
Programmable Logic Controllers (PLCs) with 115VAC control I/O much
more appropriate for this application. PLC processors are designed to
operate with very deterministic control loops, and the 115VAC control
signals are inherently immune to noisy environments.
Next, consider an application that involves measuring a number of
thermocouple inputs from a process every 10 seconds, generating outputs to maintain a specific temperature, routing unit-under-test (UUT)
signals, and measuring DC test parameters. In this case, a PC-based
system with a GPIB interface, a Keithley Model 2700 Multimeter/Data
Acquisition System would function well. Given that temperature is a
slow-moving parameter by nature, temperature control can easily be
maintained through PC-based I/O and control software. One measurement per second is typically sufficient. The time-critical UUT switching and measurements can be supported through the deterministic
control provided by the Model 2700.
To build such systems successfully, the designer is responsible for
determining the following requirements:
Critical process parameters
Measurement of process parameters
Generation of control algorithms
Generation of control signals
APPLICATION EXAMPLES
9.2.2
Measurement Integrity
It not unusual to obtain significantly different test results from an automated test system than from a manual system that uses the same
instrumentation. In other words, during the system design phase, an
engineer may obtain perfectly acceptable test results from a manual
test sequence on a bench-top system. However, the test results are significantly different once this system is transferred to the test rack,
where signal switching and routing are under computer control and
additional fixturing and longer signal paths are involved. Whats going
wrong?
In data acquisition and control systems, signal integrity depends
on many factors unrelated to the actual measurement device. The
measurement device might be an 8-digit multimeter capable of
nanovolt resolution. If the system switching and interconnects introduce many microvolts of thermal offset, the result will contain these
errors as well. Furthermore, if the signal from a D/A board is transmitted through many feet of cable and switching, the resulting signal at
the UUT may not be the value that was programmed.
So what are the primary areas of concern when trying to maintain
signal integrity? A variety of factors can contribute to measurement
error, including:
Thermal offsets
EMI/RFI
Grounding
Cable lengths/cable routing/switch speed
A/D input configuration
Thermal offsets are generated where two dissimilar metals are
joined. This junction can be at a screw terminal panel, quick disconnect panel, or even at relay contacts. When a system contains multiple
connections of this type, each at a different temperature, significant
measurement errors can be introduced. Errors of this type can often be
ignored if the signal of interest is a relatively high level voltage, such as
10V. However, if the source signal level is in the millivolt or microvolt
range, these offsets may introduce unacceptable levels of error.
System switching speeds can also introduce errors, depending on
the length and type of cables and interconnects being used. Even if a
switch can actuate in five milliseconds, it doesnt necessarily follow
that the signal is ready to be measured in that time. The actual time
constant of the signal path can be computed and compared to the
manufacturers specifications. This information must be considered
when programming measurement times. The actuation time of the
switching components may only be a few milliseconds. However, if the
time constant of the entire path is 100 milliseconds, a delay (typically
SECTION 9
9.3
APPLICATION EXAMPLES
PC
I/O Chassis
Water Handling
Equipment
Servo Motor
KPCI-3108
Figure 9-1.
9.4
SECTION 9
APPLICATION EXAMPLES
Generator Signals
Coax Cable
Future Expansion
Communications Cable
KPCI-1802HC
Diesel Manager PC
Rack-mounted Data Acquisition PC
Remote Equipment Cabinet
Figure 9-2.
9.5
SECTION 9
trol with the boards analog output features. The input and output signals are optically isolated using industry-standard solid-state I/O modules. These modules can also be used to condition input and output
signals to usable levels.
9.6
Instantaneous
Failure Rate
Infant
Mortality
Useful
Life
Wearout
Log Time
Figure 9-3.
APPLICATION EXAMPLES
infant mortality region of the reliability curve. In general, the higher the
stress applied, the sooner the failures will occur, which narrows the
infant mortality region, and shortens the required HASS test period.
When designing this type of test system (Figure 9-4), the greatest
challenges are dealing with the high number of channels the system
must monitor and the test system surroundings. Large numbers of
switching power supplies can produce tremendous amounts of electrical noise, which can affect the test systems measurement performance
significantly.
Environmental Burn-in Chamber
+
Model 2700
w/ 7708 Modules
Thermocouples
Model 7002
w/ 7011 cards
KPCI-488
PIO-32/IO
To All
Instruments
GPIB
Figure 9-4.
Trigger Link
TestPoint
Model 2000
HI
LO
Model 7002
w/ 7011 cards
System
Cabling
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
PS
SECTION 9
The PIO-32 I/O relay board within the PC is used for various triggering and alarm functions. The KPCI-488 is the GPIB controller board
that communicates with the instruments. This system has to be optimized by using synchronization and triggering techniques, and by taking advantage of the environmental noise rejection built into the
instruments.
9.7
16-Bit Encoder
MB-05
Pressures,
RTD,
Load Cell,
Vibration
Figure 9-5.
STA-300
KPCI-3102
Trigger
Motion
Control
As shown in Figure 9-5, a third-party motion control assembly triggers the data collection using a load cell, an RTD, multiple pressure sensors, accelerometers, and the binary output from a 16-bit encoder that
senses the linear position of the shock absorber. To synchronize the
analog inputs with the encoder, the plug-in board must include a digital channel in the scan list. The KPCI-3102 board provides this capability. The test also requires burst mode operation to minimize time skew
APPLICATION EXAMPLES
(~10s) between channels, so that the measured parameters are synchronized in the time domain and represent the true behavior of the
DUT. The A/D board should be able to achieve a sampling rate of up to
100kHz to capture vibration parameters, pressure, and valve flutter.
9.8
9.8.1
9.8.2
SECTION 9
Analog
OUT0
Analog
Output
DUT
Return
GND
Figure 9-6.
Analog
OUT0
Sense HI
S0H
Analog
Output
Adjust Vsource
(Feedback)
DUT
Sense LO
S0L
Return
GND
Figure 9-7.
APPLICATION EXAMPLES
The data in Table 9-1 was obtained using the KPCI-3130 boards
source feature and a Model 2700 Multimeter/Data Acquisition System.
The data clearly indicates that cabling and device interconnections can
be significant sources of error.
Table 9-1.
Signal Path
(Per lead)
9.8.3
Resistance Programmed
( per lead)
Value (V)
Two-Wire
Mode
Measured
Value (V)
Four-Wire
Mode
Measured
Value (V)
10ft. cable
0.5266
8.000
7.999
8.000
100ft. cable
2.5
8.000
7.920
8.000
6 relays,
4 interconnections,
20ft. cable
4.06
8.000
7.360
8.000
IV
Sink
I
Source
10V
+10V
III
Source
II
Sink
20mA
Figure 9-8.
Four-quadrant operation
SECTION 9
9.8.4
APPLICATION EXAMPLES
Analog
OUT0
Sense HI
RLOAD
S0H
Analog
Output
Adjust Vsource
(Feedback)
RSHUNT
Sense LO
S0L
Return
GND
Figure 9-9.
9.8.5
SECTION 9
Analog
OUT0
DUT
Sense HI
S0H
Analog
Output
Adjust Vsource
(Feedback)
RSHUNT
Sense LO
S0L
Return
GND
age levels can be monitored using an analog input board, such as the
KPCI-3101. A user-written program would command and control the
specific voltage levels on the KPCI-3130.
For this test, connect the load and shunt resistor to the analog output and sense lines as shown in Figure 9-10. Connect the OUT0 and
GND signals to pins 1 and 19 respectively, and connect the S0H and S0L
signals to pins 2 and 20.
9.8.6
9.8.7
APPLICATION EXAMPLES
Analog
OUT0
Sense HI
S0H
Analog
Output
DUT
Adjust Vsource
(Feedback)
Sense LO
RSERIES
S0L
Return
GND
Figure 9-11. Constant voltage battery test configuration
the maximum voltage is 9V, and the minimum voltage is 3V. A suitable
series resistance can now be selected based on the test requirements:
Rseries = Vchange/Imax
= (9.0 3.0)/10mA
= 600
The analog output can now be set to 9.0V for the charge cycle and
3.0V for the discharge cycle. The actual voltage levels can be monitored
using an analog input board, such as the KPCI-3101, and the test cycle
can be controlled via the user program.
Note that, unlike the constant current example outlined previously, the exact current level sourced and sunk by the KPCI-3130 will vary
with the level of charge of the DUT (a battery in this case). Also, the current flow will be reduced as the potential of the DUT approaches that
of the programmed analog output. Therefore, it is critical to select the
correct series resistance to limit the maximum current from the analog
outputs. Failure to do so can result in damage to the DUT.
For this test, connect the load and shunt resistor to the analog output and sense lines as shown in Figure 9-11. Connect the OUT0 and
GND signals to pins 1 and 19 respectively, and connect the S0H and S0L
signals to pins 2 and 20.
Series KPCI-3130 universal analog output boards offer a versatile
feature set, which makes them appropriate for a wide range of control
applications. Furthermore, the four-wire sense function ensures that
the DUT is actually being controlled at the voltage level that was pro-
SECTION 9
grammed; this was evident in the first test example. This four-wire
sense feature is only available from Keithleys analog output boards.
Additionally, the four-quadrant operation and the 20mA sink/source
current capability can simplify test setup and reduce equipment
requirements.
APPLICATION EXAMPLES
APPENDIX A
APPENDIX A
Measurement accuracy
Resolution/Sensitivity
Calibration
Multiplexing/Switching
Low to moderate.
10V.
Additional modules required.
Required. Included in software.
Required. Included in software.
Noise immunity
Scaling/Engineering units/Limits
Digital filtering
Tightly coupled.
Highly dependent. Device drivers required. Independent. Standard bus (GPIB, RS-232).
High. <1ms.
High. Fast response-time <1ms.
Moderate, >1ms.
Loosely coupled.
PCI/ISA/PCMCIA.
Computer dependence/coupling
GPIB, RS-232.
Built in.
Built in.
Up to 1000V.
High.
NIST traceable.
Low. <1kHz.
Low. <1kHz.
External Instruments
Communication bus
SOFTWARE
SIGNAL CONDITIONING
High. >1kHz.
A/D technology
Plug-in Boards
Sampling rate
MEASUREMENT
FEATURES/CAPABILITIES
High.
High. A la carte.
None. Plugs into the computer chassis.
High. Ideal for OEM integration.
Modular/Customizable
Rack space
Ease of use
Usage
Cost
OTHER
Plug-in Boards
Channel expandability
FORM FACTOR
Moderate. >$1000.
System level.
Moderate, stand-alone.
Rack/stack, benchtop.
Moderate.
External Instruments
FEATURES/CAPABILITIES
APPENDIX B
Glossary
APPENDIX B
GLOSSARY
AUTORANGING TIME. For instruments with autoranging capability, the time interval
between application of a step
input signal and its display,
including the time for determining and changing to the
correct range.
AUTORANGING. The ability of an
instrument to switch among
ranges automatically. The
ranges are usually in decade
steps.
AVERAGE RESPONDING. A measurement where the displayed
value is proportional to the
average of the absolute values
of all input waveforms within
a specified frequency range. It
is calibrated in the rms value
of a sine wave.
BACKGROUND TASK. An operation
that can take place while
another program or processing routine is running without
apparent interruption to that
program or routine; for example, an interrupt or DMA
operation.
BANDWIDTH (DATA ACQUISITION). The
range of frequencies that can
be switched, conducted, or
amplified within certain limits. Under given load conditions, bandwidth is defined by
the 3dB (half-power) points.
Also, the highest frequency
signal component that can
pass through an amplifier or
filter without being
attenuated.
APPENDIX B
CAPACITANCE. In a capacitor or
system of conductors and
dielectrics, the property that
permits the storage of electrically separated charges when
potential differences exist
between the conductors.
Capacitance is related to
charge and voltage as follows:
C = Q/V, where C is the capacitance in farads, Q is the
charge in coulombs, and V is
the voltage in volts.
CARRY CURRENT. The maximum
continuous current of closed
relay contacts. Most relays are
rated higher for carry current
than switched current. (Heat
is generated by I2R losses for
carry current and I2R losses
plus arcing for switched current.) See also SWITCHED
CURRENT.
CHANNEL (SWITCHING). One of several signal paths on a switching card. For scanner or multiplex cards, the channel is
used as a switched input in
measuring circuits or as a
switched output in sourcing
circuits. For switch cards,
each channels signal paths
are independent of other
channels. For matrix cards, a
channel is established by the
actuation of a relay at a row
and column crosspoint. See
also PATH.
GLOSSARY
APPENDIX B
GLOSSARY
APPENDIX B
DIGITAL LINES/PORTS/BITS/
CHANNELS. In hardware, a digital line is physical hardware
connection to a pin with a
digital signal. A digital port is
a physical grouping of digital
lines. In software, a digital bit
(1 or 0) is a logical representation of a digital line. A digital
channel is a logical grouping
of digital bits.
DIGITAL TRIGGER. An event that
occurs at a user-selected
point on a digital input signal.
The polarity and sensitivity of
the digital trigger can often be
programmed. See also
TRIGGER, TRIGGER CONDITIONS,
TRIGGER POLARITY, and TRIGGER
SENSITIVITY.
DIGITAL-TO-ANALOG CONVERTER. A
device that translates digital
data to an analog signal. A
digital-to-analog converter
takes a succession of discrete
digital values as input and
creates an analog signal
whose amplitude, moment by
moment, corresponds to each
digital value. Compare to
ANALOG-TO-DIGITAL CONVERTER.
DIRECT DIGITAL SYNTHESIS. A technique for signal generation
where the signal is directly
synthesized using only digital
techniques. This technique
generates very precise waveforms, even at low frequencies. Waveforms with correct
phase and frequency are
obtained immediately after a
shift to a new frequency.
DIRECT MEMORY ACCESS (DMA). See
DMA (DIRECT MEMORY ACCESS)
MODE.
GLOSSARY
DISCRETE DEVICE. A class of electronic components that contain one active element, such
as a transistor or diode.
However, hybrids, optoelectronic devices, and intelligent
discretes may contain more
than one active element.
DLL. See DYNAMIC LINK LIBRARY.
DMA (DIRECT MEMORY ACCESS)
CHANNELS. ISA bus PCs offer
eight parallel channels for
DMA mode data transfers. A
number of these are reserved
for exclusive use by the computer. The remaining channels are available for use by
user-supplied I/O options,
such as plug-in data acquisition boards. Also called DMA
levels.
DMA (DIRECT MEMORY ACCESS)
LEVELS. See DMA (DIRECT
MEMORY ACCESS) CHANNELS.
DMA (DIRECT MEMORY ACCESS)
MODE. A mode in which data
transfers directly between an
I/O device and computer
memory, bypassing the CPU.
Most commonly, DMA mode
refers to data transfers across
the ISA bus, using special circuitry on the computer motherboard. In the most general
sense, PCI bus mastering is a
DMA mode. See also BUS
MASTERING and OPERATION
MODES.
APPENDIX B
GLOSSARY
APPENDIX B
GLOSSARY
APPENDIX B
GLOSSARY
LOCAL BUFFER. Temporary memory location within an application programs memory area.
It is always available to the
application program. See also
BUFFER MEMORY.
LONG-TERM ACCURACY. The limit
that errors will not exceed
during a 90-day or longer
time period. It is expressed as
a percentage of reading (or
sourced value) plus a number
of counts over a specified
temperature range.
LSB. See LEAST SIGNIFICANT BIT.
LSTTL. Schottky-clamp TTL logic
typically using one-third the
power of TTL, but maintaining TTL speeds. See also TTL.
APPENDIX B
MAINFRAME. A self-contained
instrument in a cabinet,
which provides a measurement or connection capability
without requiring other
instruments in the circuit.
Some mainframes may be
designated as a master or
slave. See also SWITCHING
MAINFRAME, MASTER, and SLAVE.
MAKE-BEFORE-BREAK. Connecting
a new circuit before disconnecting the present circuit.
MAP. Any representation of the
structure of an object. For
example, a memory map
describes the layout of objects
in an area of memory, and a
symbol map lists the association between symbol names
and memory addresses in a
pro-gram.
MASTER. A mainframe that has
control of other mainframes
(slaves) through an external
connection. A slave unit adds
capacity or functions to the
master. The master/slave
combination has one IEEE488 bus address. See also SLAVE
and MAINFRAME.
MATRIX CARD. A type of card with
a switching configuration that
has columns and rows of relay
crosspoints. (Also called a
coordinate switch.) A matrix
card supports simultaneously
connection of one input to
multiple outputs, multiple
inputs to one output, or
multiple inputs to multiple
outputs.
GLOSSARY
APPENDIX B
GLOSSARY
PICOAMMETER. A measuring
instrument that is similar in
function to the ammeter of an
electrometer. However, a
picoammeter generally provides voltage burden that is as
low or lower than the ammeter of an electrometer, faster
readings, and less sensitivity.
PORT GROUP. For digital I/O emulating the I/O of an 8255 programmable peripheral interface chip, a group of three 8bit ports, commonly labeled
PA, PB, and PC. Digital I/O
that emulates multiple 8255
chips is typically divided into
multiple port groups.
APPENDIX B
GLOSSARY
APPENDIX B
GLOSSARY
SAMPLING ANALOG-TO-DIGITAL
CONVERTER. An analog-to-digital converter containing a
sample-and-hold circuit at
the front end, which captures
the incoming analog signal
and holds it for the duration
of the analog-to-digital conversion process. See also
ANALOG-TO-DIGITAL CONVERTER
and SAMPLE-AND-HOLD (SH).
SATURATION (AMPLIFIER). Amplifier
condition in which an
increase of the input signal
produces no further increase
in the output signal.
SCADA. Supervisory Control and
Data Acquisition. A type of
architecture in control systems.
SCAN (DATA ACQUISITION). Sample a
group of channels once at the
acquisition or burst-mode
rate; also can refer to a group
of channels. These channels
may be sequential (start to
stop channel specified) or
nonsequential (channel-gain
queue used). See also
MULTIPLEX.
SCAN RATE. The rate at which a
group of channels is sampled,
as measured from the start of
one scan to the start of the
next scan.
APPENDIX B
GLOSSARY
STROBE. A timing signal that initiates and coordinates the passage of data, typically through
an input or output device
interface.
SUBROUTINE. A set of software
instructions invoked by a single calling line of code.
SWITCH CARD. A type of card with
independent and isolated
relays for switching inputs
and outputs on each channel.
SWITCHED CURRENT. The maximum
current level that can be reliably handled while opening
and closing contacts. See also
CARRY CURRENT.
SWITCHING MAINFRAME. A switching instrument that operates
according to user commands
to connect signals among
sourcing and measuring
instruments and devices
under test. A mainframe is
also referred to as a scanner,
multiplexer, matrix, or
programmable switch.
SYNCHRONOUS. In hardware, an
event that occurs in a fixed
time relationship to another
event. In software, a function
that begins an operation and
returns to the calling program
only when the operation is
complete.
APPENDIX B
THERMOCOUPLE. A temperature
sensor created by joining two
dissimilar metals. This junction creates a small voltage as
a function of the temperature.
GLOSSARY
APPENDIX B
GLOSSARY
APPENDIX B
APPENDIX C
Diameter and
Resistance of Various
Wire Gauges
The following table provides resistance data for a range of pure copper
wire sizes that may be encountered in test and measurement applications. These values may vary slightly from the resistance of specific
cable samples.
AWG Wire Sizes
AWG
Diameter
(in.)
Resistance
(/1000 ft.)
Resistance
(/foot)
46
0.0016
4207
4.2070
44
0.0020
2592
2.5920
42
0.0024
1660
1.6600
41
0.0028
1323
1.3230
40
0.0031
1080
1.0800
39
0.0035
847
0.8470
38
0.0039
648
0.6480
37
0.0043
512
0.5120
36
0.0051
415
0.4150
35
0.0055
331
0.3310
34
0.0063
261
0.2610
33
0.0071
206
0.2060
32
0.0079
162
0.1620
30
0.0098
104
28
0.0130
65.4
0.0654
27
0.0142
51.5
0.0515
26
0.0161
41.0
0.0410
25
0.0177
32.4
0.0324
24
0.0201
25.7
0.0257
22
0.0252
16.2
0.0162
20
0.0319
10.2
0.0102
18
0.0402
6.40
0.0064
16
0.0508
4.00
0.0040
14
0.0642
2.50
0.0025
12
0.0808
1.60
0.0016
10
0.1019
1.00
0.0010
0.1285
0.63
0.0006
0.162
0.40
0.0004
0.1040
APPENDIX C
Resistance
(/km)
Resistance
(/m)
0.05
8740
8.740
0.08
3414
3.414
0.14
1115
1.115
0.25
350.0
0.350
0.34
189.0
0.189
0.38
151.0
0.151
0.50
87.40
0.087
0.75
38.40
0.038
1.00
21.90
0.0219
1.50
9.710
0.0097
2.50
3.500
0.0035
4.00
1.370
0.0014
AWG
0.05
44
0.08
40
0.14
35
0.25
30
0.34
2728*
0.38
2627*
0.5
24
0.75
2022*
1.0
18
2.5
10
4.0
APPENDIX D
Safety
Considerations
APPENDIX D
SAFETY CONSIDERATIONS
cables, test leads, and jumpers for possible wear, cracks, or breaks
before each use.
For maximum safety, do not touch the product, test cables, or any
other instruments while power is applied to the circuit under test.
ALWAYS remove power from the entire test system and discharge any
capacitors before: connecting or disconnecting cables or jumpers,
installing or removing switching cards, or making internal changes,
such as installing or removing jumpers.
Do not touch any object that could provide a current path to the common side of the circuit under test or power line (earth) ground. Always
make measurements with dry hands while standing on a dry, insulated
surface capable of withstanding the voltage being measured.
Instruments and accessories must be used in accordance with specifications and operating instructions or the safety of the equipment may
be impaired.
Do not exceed the maximum signal levels of the instruments and
accessories, as defined in the specifications and operating information, and as shown on the instrument or test fixture panels, or switching card.
When fuses are used in a product, replace with same type and rating for
continued protection against fire hazard.
Chassis connections must only be used as shield connections for
measuring circuits, NOT as safety earth ground connections.
If you are using a test fixture, keep the lid closed while power is applied
to the device under test. Safe operation requires the use of a lid
interlock.
If a
screw is present, connect it to safety earth ground using the
wire recommended in the user documentation.
The
symbol on an instrument indicates that the user should refer
to the operating instructions located in the manual.
The
symbol on an instrument shows that it can source or measure
1000 volts or more, including the combined effect of normal and
common mode voltages. Use standard safety precautions to avoid
personal contact with these voltages.
The WARNING heading in a manual explains dangers that might result
in personal injury or death. Always read the associated information
very carefully before performing the indicated procedure.
The CAUTION heading in a manual explains hazards that could damage the instrument. Such damage may invalidate the warranty.
Instrumentation and accessories shall not be connected to humans.
Before performing any maintenance, disconnect the line cord and all
test cables.
APPENDIX D
To maintain protection from electric shock and fire, replacement components in mains circuits, including the power transformer, test leads,
and input jacks, must be purchased from Keithley Instruments.
Standard fuses, with applicable national safety approvals, may be used
if the rating and type are the same. Other components that are not safety related may be purchased from other suppliers as long as they are
equivalent to the original component. (Note that selected parts should
be purchased only through Keithley Instruments to maintain accuracy
and functionality of the product.) If you are unsure about the applicability of a replacement component, call a Keithley Instruments office
for information.
To clean an instrument, use a damp cloth or mild, water based cleaner.
Clean the exterior of the instrument only. Do not apply cleaner directly to the instrument or allow liquids to enter or spill on the instrument.
Products that consist of a circuit board with no case or chassis (e.g.,
data acquisition board for installation into a computer) should never
require cleaning if handled according to instructions. If the board
becomes contaminated and operation is affected, the board should be
returned to the factory for proper cleaning/servicing.
SAFETY CONSIDERATIONS
Index
A
Acceleration, 7-12 to 7-17
Accelerometers, 7-12 to 7-17
ActiveX(r) controls, 3-3, 3-4, 3-10,
3-11 to 3-12
A/D (analog-to-digital) conversion, 5-2 to 5-9
A/D converters
flash, 5-6 to 5-8
integrating, 5-6 to 5-7
resolution, 5-2 to 5-5
Sigma-Delta, 5-6 to 5-8
speed, 5-5 to 5-6
successive approximation, 5-6
to 5-7
Aliasing and anti-aliasing filters,
4-9, 5-8 to 5-9, 7-17
Analog isolation, 5-17
Analog output control, 9-12 to
9-19
API (Application Program
Interface), 3-7 to 3-8, 3-10 to
3-11
Debugging, 3-7
Deterministic data acquisition
system, 3-13 to 3-14, 9-3
Device drivers, 2-9, 2-10, 3-2, 3-3,
3-6, 3-7 to 3-15
Differential input, 4-17 to 4-19,
8-4 to 8-5
I-2
INDEX
E
Electrical isolation, 5-15 to 5-17,
6-10
EMI/RFI (Electromagnetic
Interference/Radio Frequency
Interference) radiation, 9-5
ESR (Equivalent Series
Resistance), 4-7
Ethernet, 1-4, 2-11 to 2-13
G
Gauge factor, 7-6
GPIB (General Purpose Interface
Bus), 2-8 to 2-9, 2-10, 2-11, 212, 2-13, 3-7 (See also IEEE488)
Graphical programming, 3-4 to
3-5
Ground loops, 4-16 to 4-17, 5-18
to 5-19, 9-5
H
HALT/HASS (Highly Accelerated
Life Testing/Highly
Accelerated Stress Screening)
procedures, 9-9 to 9-11
Harmonics, 7-17
Hysteresis, 5-14
F
FIFO (First In, First Out) memory, 3-12 to 3-13, 5-2
Filters, 4-7, 4-10, 4-15, 4-19 to
4-21, 5-2, 6-3, 6-17, 7-10
aliasing and anti-aliasing, 4-9,
5-8 to 5-9, 7-17
Bessel, 5-9
Butterworth, 4-20, 5-9
Cauer, 4-20, 5-9
Chebyshev, 4-20
FireWire, 2-10 to 2-11, 3-11
Flash A/D converters, 5-6 to 5-8
Flip-flop circuit, 5-12
Flow sensors, 7-11 to 7-12
INDEX
I-3
Personal computer
configurations for data acquisition, 2-2 to 2-3
L
Laptop computers, 2-5
Law of Intermediate Metals, 6-5
Linearization of thermocouple
outputs, 6-3, 6-7 to 6-8
O
OEM (Original Equipment
Manufacturer)/factory
automation applications, 9-2
to 9-5
R
RAM (Random Access Memory)
requirements, 2-2
RC time constant, 4-9 to 4-10
Real-time data acquisition and
control applications, 1-4 to
1-5, 3-14 to 3-15
Reference temperature sensors,
6-3
load, 9-10
pull-up, 5-11
reference, 6-16
series, 9-17
I-4
definition, 1-2
Plug-and-Play (PnP) operation,
2-3 to 2-5, 2-10, 3-9
INDEX
Shock, 7-13
Solenoids, 5-15
Vibration, 7-13
Wheatstone bridges
full bridge, 7-7 to 7-8
Strain
apparent, 7-7
definition, 7-2
gauges, 7-2 to 7-6, 7-7 to 7-12
Poisson's, 7-2
INDEX
I-5