Professional Documents
Culture Documents
Acquisition
Handbook
T h i r d E d i t i o n
ii
Copyright Notice
2004-2012 by Measurement Computing Corporation
All rights reserved. No part of this book may be reproduced in any form,
or by any means, without the permission of Measurement Computing Corporation.
Published 2004-2012 in the United States of America
iii
Table of Contents
PREFACE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix
Fundamental Concepts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Sampling Rates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Source Impedance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Sample-and-Hold ADCs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Nyquist Theorem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Aliasing and Fourier Transforms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Settling Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Basic Principle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Examples of Kelvin-Type Measurements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Incremental Encoders . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
Quadrature Encoders . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
The third edition of this handbook has been Sensors come in numerous shapes, sizes, and
totally revised to include new chapters on specifications. They connect between the
Electrical Measurements, Vibration and Sound, measured physical device and the signal condi-
Displacement and Position Sensing, and tioners input. Most sensors are purchased off-
Transducer Electronic Data Sheets (TEDS). It the-shelf, but in some cases, they are custom
also includes several new subjects and expands made specifically for a particular measurement
on selected items including Fundamental Signal requirement. Regardless of input, however, the
Conditioning. output signal is usually a voltage, current,
charge, or resistance and all can be conditioned
All chapters have been enhanced to address and handled equally well. Manufacturers
more practical applications than theoretical frequently provide specifications, application
measurement issues. They cover a major topic notes, and principles of operation for their
with sufficient detail to help readers under- specific sensor to help users apply the device in
stand the basic principles of sensor operation the most efficient way.
and the need for careful system interconnec-
tions. The handbook also discusses key issues Signal conditioners accept sensor output signals
concerning the data acquisition systems and convert them into a form that the data
multiplexing and signal conditioning circuits, acquisition system can manipulate. Signal
and analog-to-digital converters. These three conditioners typically amplify, filter, isolate,
functions establish the overall accuracy, reso- and linearize these signals. They also convert
lution, speed, and sensitivity of data acquisi- current to voltage and voltage to frequency,
tion systems and determine how well the provide other functions such as simultaneous
systems perform. sample and hold (SS&H), and supply a bias
voltage or signal excitation for certain trans-
Data acquisition systems measure, store, ducers. They may come with single-ended
display, and analyze information collected inputs or differential inputs for improving
from a variety of devices. Most measurements signal-to-noise ratios. The output of the signal
require a transducer or a sensor, a device that conditioner, in turn, connects to the input of an
converts a measurable physical quantity into analog-to-digital converter (ADC) embedded
an electrical signal. Examples include temper- within the data acquisition system. Finally, the
ature, strain, acceleration, pressure, vibration, ADC converts the conditioned analog signal to
and sound. Yet others are humidity, flow, a digital signal that can be transferred out of the
level, velocity, charge, pH, and chemical data acquisition system to a computer for
composition. processing, graphing, and storing.
Chapter 1
INTRODUCTION TODATA ACQUISITION
AND SIGNAL CONDITIONING
Chapter 2
ANALOG-TO-DIGITAL CONVERSION
either 3/4 full scale (if the MSB remained at 1) frequency, and the pulse counter output, in
or 1/4 full scale (if the MSB reset to zero). The turn, represents the digital voltage.
comparator once more compares the DAC
Voltage-to-frequency converters inherently
output to the input signal and the second bit
have a high noise rejection characteristic,
either remains on (sets to 1) if the DAC output
because the input signal is effectively inte-
is lower than the input signal, or resets to zero
grated over the counting interval. Voltage-to-
if the DAC output is higher than the input
frequency conversion is commonly used to
signal. The third MSB is then compared the
convert slow and noisy signals. Voltage-to-
same way and the process continues in order
frequency ADCs are also widely used for
of descending bit weight until the LSB is
remote sensing in noisy environments. The
compared. At the end of the process, the
input voltage is converted to a frequency at
output register contains the digital code
the remote location and the digital pulse train
representing the analog input signal.
is transmitted over a pair of wires to the
Successive approximation ADCs are rela- counter. This eliminates noise that can be
tively slow because the comparisons run introduced in the transmission lines of an
serially, and the ADC must pause at each analog signal over a relatively long distance.
step to set the DAC and wait for its output
to settle. However, conversion rates easily Integrating ADCs: Dual Slope
can reach over 1 MHz. Also, 12 and 16-bit A number of ADCs use integrating techniques,
successive-approximation ADCs are rela- which measure the time needed to charge or
tively inexpensive, which accounts for discharge a capacitor in order to determine the
their wide use in many PC-based data input voltage. A widely used technique, called dual-
acquisition systems.
Dual-Slope ADC Integration and
Voltage-to-Frequency ADCs Discharge Times
Voltage-to-frequency ADCs convert the analog
input voltage to a pulse train with the
frequency proportional to the amplitude of
I Vinput Fixed discharge
the input. (See Figure 2.02.) The pulses are current
Vcapacitor
Voltage-to-Frequency ADC
Vin Vinput Ti
Voltage-to-frequency =
converter Ti Td Vref Td
Timing Integration Discharge
circuitry time time
Digital
pulse train
Fig. 2.03. Dual-slope integrating ADCs provide
Pulse Digital high-resolution measurements with excellent noise
counter outputs rejection. They integrate upward from an unknown
voltage and then integrate downward with a known
Fig. 2.02. Voltage-to-frequency converters reject source voltage. They are more accurate than single
noise well and frequently Figure 2.03 for
are used (2.04)
measuring slope ADCs because component errors are washed
slow signals or those in noisy environments. out during the de-integration period.
and settling time, and outputs multiple-bit The output data rate from the decimation
data. The digital low-pass filter then feeds the filter is lower than the initial sample rate but
decimation filter, which in turn, decreases still meets the Nyquist requirement by saving
the sample rate of the multi-bit data stream certain samples and eliminating others. As
by a factor of two for each stage within the long as the output data rate is at least two
filter. For example, a seven-stage filter can times the bandwidth of the signal, the decima-
provide a sample-rate reduction of 128. tion factor or ratio M can be any integer value.
For example, if the input is sampled at fs, the
Improved Accuracy output data rate can be fs/M without losing
The digital filter shown in Figure 2.05 inher- information. This technique provides more
ently improves the ADCs accuracy for ac stable readings. (Refer to the table in Figure
signals in two ways. First, when the input 2.06 for ADC comparisons.)
signal varies (sine wave input) and the system
samples the signal at several times the Nyquist
value (refer to page 17), the integrator becomes
Table of ADC Attributes
a low-pass filter for the input signal, and a ADC Type Typical Typical
high-pass filter for the quantization noise. The Resolution Conversion
Rate*/Frequency
digital filters averaging function then lowers
the noise floor even further, and combined Sigma-Delta 1624 bit 1 sps128 ksps
with the decimation filter, the data stream Successive Approximation 816 bit 10 ksps2 Msps
frequency at the output is reduced. For Voltage-to-Frequency 812 bit 1 Hz4 MHz**
example, the modulator loop frequency could Integrating 1224 bit 1 sps1 ksps**
be in the MHz region, but the output data
* sps = samples per second
would be in the kHz region. Second, the ** With line cycle rejection
digital filter can be notched at 60 Hz to elimi-
nate power line frequency interference. Fig. 2.06. Table of ADC attributes
This equation includes a variety of errors such words, the input analog voltage range is
as sensor anomalies, noise, amplifier gain and partitioned into a discrete number of values
offset, ADC quantization (resolution error), that the converter can measure, which is also
and other factors. the ADCs resolution. The quantization error in
this case is specified to be no more than half of
Quantization Error the least significant bit (LSB). For the 12-bit
In a theoretically perfect ADC, any particular ADC, the error is 1.22 mV (0.0122%). Such
analog voltage measured should be represented ADC errors are typically specified in three ways:
by a unique digital code, accurate to an infinite the error in LSBs, the voltage error for a
number of digits. (See Figure 2.07A.) But in a specified range, and the % of reading error.
real ADC, small but finite gaps exist between Most ADCs are not as accurate as their specified
one digital number and a consecutive digital resolution, however, because other errors
number, and the amount depends on the contribute to the overall error such as gain,
smallest quantum value that the ADC can linearity, missing codes, and offset. (See Figures
resolve. In the case of the 12-bit converter 2.07B, C, D, and E, respectively). Nonetheless,
covering a 10 Vdc range, for example, that the accuracy of a good ADC should approach
quantum value is 2.44 mV, the LSB. In other its specified resolution. When an ADC
Ideal
A Gain error
B Linearity error
C
7 7 7
6 6 6
ADC Output
ADC Output
ADC Output
5 5 5
4 4 4
3 3 3
2 2 2
1 1 1
0 0 0
0 2 4 6 8 10 0 2 4 6 8 10 0 2 4 6 8 10
Input volts Input volts Input volts
D E
Missing code Offset error
7 7
6 6
ADC Output
ADC Output
5 5
4 4
3 3
2 2
1 1
0 0
0 2 4 6 8 10 0 2 4 6 8 10
Input volts Input volts
Fig. 2.07. The straight line in each graph represents the analog input voltage and the perfect output voltage read-
ing from an ADC with infinite resolution. The step function in Graph A shows the ideal response for a 3-bit ADC.
Graphs B, C, D, and E show the effect on ADC output from the various identified errors.
Figure 2. 07 (2.05)
Measurement Computing (508) 946-5100 info@mccdaq.com mccdaq.com
8 CHAPTER 2 Analog-to-Digital Conversion
manufacturer provides calibration procedures, output specified under a given load and exci-
offset and gain errors usually can be reduced to tation voltage. Calibrating individual parts
negligible levels, however, linearity and means that the ADC, load cell, and excitation
missing-code errors are more difficult or source accuracy tolerances are all added
impossible to reduce. together. With this approach, the error sources
of each part are added together and generate
ADC Accuracy vs. System Accuracy a total error that is greater than the error that
Calibration can be achieved simply by calibrating the
ADCs may be calibrated with hardware, soft- system with a known precision load and
ware, or a combination of the two. Calibration obtaining a direct relationship between the
in this case means adjusting the gain and input load and ADC output.
offset of an ADC channel to obtain the speci- Linearity
fied input-to-output transfer function. In a
When the input voltage and the ADC output
hardware configuration, for example, the
readings deviate from the diagonal line (repre-
instrumentation amplifier driving the ADC
senting infinite resolution) more than the ideal
has its offset and gain adjusted with trim
step function shown in Figure 2.07A, the ADC
pots, and changing the ADCs reference
error is nearly impossible to eliminate by cali-
voltage changes its gain. In hardware/soft-
bration. The diagonal line represents an ideal,
ware calibrations, the software instructs DACs
infinite-resolution relationship between input
to null offsets and set full-scale voltages.
and output. This type of ADC error is called a
Lastly, in a software calibration, correction
nonlinearity error. Nonlinearities in a calibrat-
factors are stored in nonvolatile memory in
ed ADC produce the largest errors near the
the data acquisition system or in the computer
middle of the input range. As a rule of thumb,
and are used to calculate the correct digital
nonlinearity in a good ADC should be one LSB
value based on the readings from the ADC.
or less.
ADCs are factory calibrated before being
shipped, but time and operating temperature Missing Codes
can change the settings. ADCs need to be reca- A quality ADC should generate an accurate
librated usually after six months to a year, and output for any input voltage within its resolu-
possibly more often for ADCs with resolutions tion, that is, it should not skip any successive
of 16 bits or more. Calibration procedures digital codes. But some ADCs cannot produce
vary, but all usually require a stable reference an accurate digital output for a specific analog
source and an indicating meter of (at least input. Figure 2.07D, for example, shows that a
three times) greater accuracy than the device particular 3-bit ADC does not provide an
being calibrated. Offset is typically set to zero output representing the number four for any
with zero input, and the gain is set to full scale input voltage. This type of error affects both
with the precise, full-scale voltage applied to the accuracy and the resolution of the ADC.
the input. Noise
In many measurements, the input voltage The cost of an ADC is usually proportional to
represents only the physical quantity under its accuracy, number of bits, and stability. But
test. Consequently, system accuracy might be even the most expensive ADC can compro-
improved if the complete measurement mise accuracy when excessive electrical noise
system is calibrated rather than its individual interferes with the measured signal, whether
parts. For example, consider a load cell with that signal is in millivolts or much larger.
For example, many ADCs that reside on cards operational amplifiers at the signal conditioner
and plug into a PC expansion bus can encounter or ADC input can provide this isolation.
excessive electrical noise that seriously affects
their accuracy, repeatability, and stability. But ADC Noise Histograms
an ADC does not have to be connected directly ADC manufacturers frequently verify their
to the bus within the computer. An ADC devices accuracy (effect of non-linearities) by
mounted in an external enclosure often solves running a code density test. They apply a
the problem. It can communicate with the highly accurate sine wave signal (precision
computer over an IEEE488 bus, Ethernet, serial amplitude and frequency) to the device and
port, or parallel port. using a histogram for analysis, generate a
When there is no choice but to locate an ADC distribution of digital codes at the output of
inside the computer, however, check its noise the converter. A perfect ADC would produce
level. Connecting the ADCs input terminal only one vertical bar in the histogram for the
to the signal common terminal should specified input frequency and amplitude
produce an output of zero volts. If it still because it measured only one value for every
reads a value when shorted, the noise is being sample. But because of the ADCs inherent
generated on the circuit card and will inter- non-linearities, it produces a distribution of
fere with the desired input signal. More crit- bars on either side representing digital words
ical diagnostics are necessary when using an sorted into different code bins. Each bin is
external power supply because noise also can labeled for a single digital output code and it
arise from both the power supply and the contains the count of its occurrence, or the
input leads. number of times that code showed up in the
output. (See Figure 2.08.)
Noise Reduction and Measurement Accuracy
One technique for reducing noise and When n represents the ADCs bit resolution,
ensuring measurement accuracy is to eliminate 2n bins are required. The width of each code
ground loops, that is, current flowing in the bin should be FSR/2n where FSR is the full-
ground connection between different devices. scale range of the ADC. The probability
Ground loops often occur when two or more density function may be determined from this
devices in a system, such as a measurement data. A large number of samples must be
instrument and a transducer, are connected to taken, depending on the ADCs bit size, for
ground terminals at different physical the histogram test to be meaningful. The
locations. Slight differences in the actual more bits the ADC contains, the higher the
potential of each ground point generate a number of samples required, which could be
current flow from one device to the other. as much as 500,000 samples.
This current, which often flows through the
low potential lead of a pair of measurement ENOB: Effective Number of Bits
wires generates a voltage drop that appears as Although an ADCs accuracy is crucial to a
noise and measurement inaccuracy at the data acquisition systems accuracy, its not the
signal conditioner or ADC input. When at final word. A widely used and practical way of
least one device can be isolated, such as the determining overall measurement accuracy is
transducer, then the offending ground path is accomplished with whats called an Effective
open, no current flows, and the noise or Number of Bits (ENOB) test. The ENOB may
inaccuracy is eliminated. Optical isolators, very well demonstrate that the actual system
special transformers, and differential input measurement accuracy is something less than
Histogram
Bin with most samples
represents the input signal
Histogram shape of 2.50 VDC
approximates a Gaussian
distribution caused by
white noise mixed
with dc input voltage
Bins with samples
Number of samples
caused by noise
0 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 4095
Total number of bins = 4096
FSR
Fig. 2.08. The histogram illustrates how 12-bit ADC samples in a set were distributed among the various codes
for a 2.5 V measurement in a FSR (full-scale range) of 10 V. Most codes intended for the 1024 bin representing
2.5 V actually ended up there, but others fell under a gaussian distribution due to white noise content.
the ADC bit accuracy specifications. For ADC, multiplexer, programmable gain amplifier,
example, an ADC may be specified as a 16-bit and sample-and-hold amplifiers. All of these
device, but2.08
Figure the results of a specific type of circuits affect the digitized output. Any
standard test may show that its performance is non-linearities, noise, distortion, and other
actually closer to an ideal 13-bit system. anomalies that sneak into the front end can
However, 13 bits may be more than adequate reduce the systems accuracy, and its not enough
for the application. to test only one channel in a multi-channel
system. Some errors creep up from the effect of
The ENOB test takes into account all the
one channel on another through cross talk.
circuitry from input terminals to the data
output, which includes the effects of the To measure the ENOB, set up a precision sine-
ADC, multiplexer, and other analog and wave signal generator and connect its output
digital circuits on the measurement accuracy. to the input of one analog input channel. The
It also includes the signal-to-noise ratio, SNR, generator itself should produce little noise
or the effect of any noise signals induced into and distortion. Set the signal generator output
the system from any source. amplitude to just under the maximum
specified input range of the board. Set the
The ENOB Test generator to the maximum frequency that the
The ENOB test evaluates the data acquisition system is specified to measure. Next, ground
system as it performs in a real-world application the input terminals of the adjacent channel.
when used with the manufacturers recommended Run the system at its maximum rated speed.
cables, connectors, and connections. It considers Sample the test signal and then the grounded
the front end of the data acquisition system: the input. Capture 1024 samples on each input
and run the samples through an FFT algorithm the ADC must sample at a slower rate than the
to compute the ENOB. fluctuations and be out of synch with them.
This technique finds a general average, not a
The test measures the effects of slewing,
local average. Thus, in this way signal averaging
harmonic distortion, analog circuits, ADC
increases the systems measurement resolution.
accuracy, noise pickup, channel cross talk,
integral and differential non-linearity, and
offset between channels. Although ENOB More Stable Readings
provides a good benchmark of the systems Some systems actually introduce a random
capability and accuracy, it is not a specifica- noise signal called dither into an otherwise
tion; it is not a replacement for SNR and other clean ADC input to take advantage of the aver-
error specifications provided by the manufac- aging function for increasing accuracy and
turer. However, systems may be compared signal stability. The technique also enables an
with ENOB tests when all are measured under ADC with a smaller number of bits to obtain
the same set of conditions. the resolution of an ADC with more bits
without losing accuracy. Each signal sweep
ADC OUTPUT AVERAGING BENEFITS must capture a different random value at each
point in time. Then the theoretical ADC average
Improved Accuracy from this distribution will remain at zero over a
A paradox that arises from averaging the sufficiently large sample window. For example,
output of an integrating-type ADC is that the if 16 values are averaged, then it has 16 times
measurement system theoretically can obtain more possible values than the direct non-aver-
higher accuracy for a signal embedded in noise aged output. This technique increases the effec-
than a signal free of noise. How this can be tive ADC resolution by 4 bits. The noise makes
true comes from the way a signal is it work.
mathematically averaged. For example, with a
single dc signal, averaging the output always ADC signal averaging is so important a
provides the same result with no apparent technique that it is used on digital recordings.
change in accuracy (not considering the affects In the early days of digital audio recording
of calibration). But for a varying input signal, development, systems lacked ADC output
such as a sine wave, a large number of samples averaging. As a result, a musical note would
yield a Gaussian distribution which can be decay into an annoying buzz because not all
accurately defined with a more precisely bits in the ADC were enabled. The output
established peak for the wave. But the samples waveforms were distorted and the ear could
must not all cluster around a specific portion not filter it out, but ADC signal averaging
of the sampled wave. To get a true distribution, totally eliminated the problem.
Chapter 3
MULTIPLEXING AND SAMPLING THEORY
tance adds directly to the signal source imped- with stray capacitance to increase settling
ance and can affect the systems measurement time and generate cross talk between chan-
accuracy if not compensated. nels. Multiplexer impedance itself also can
degrade signals. A solid-state multiplexer with
Analog switching devices have another unde-
an impedance of tens or hundreds of ohms is
sirable characteristic called charge injection.
worse than a relay with a typical resistance of
This means that a small portion of input-gate
0.010 or less.
drive voltage is coupled to the analog input
signal and manifests as a spike in the output In spite of these negative issues, the advan-
signal. This glitch produces measurement tages of multiplexing outweigh its disadvan-
errors and can be seen riding on the input tages, and it has become a widely used tech-
signal when the source impedance is too high. nique to minimize cost without compromising
A compensating circuit can minimize the performance. Because the measurement errors
effects of charge injection, but the most effec- are known and specified, they can be compen-
tive method is to keep source impedance as sated at each stage of the data acquisition
low as possible to prevent it from developing system to ensure high accuracy at the output.
in the first place.
Channel-to-channel cross talk is another non-
Sequence vs. Software-Selectable Ranges
ideal characteristic of analog switching Most data acquisition systems accommodate a
networks, especially integrated circuit multi- variety of input ranges, although the manner in
plexers. Cross talk develops when the voltage which they do so varies considerably. Some
applied to any one channel affects the accu- data acquisition systems allow the input range
racy of the reading in another channel. to be switched or jumper selected on the circuit
Conditions are optimum for cross talk when board. Others provide software-selectable gain.
signals of relatively high frequency and high This is more convenient, but a distinction
magnitude such as 4 to 5 V signals are should be made between data acquisition
connected to one channel while 100 mV systems whose channels must all have the same
signals are connected to an adjacent channel. gain and other systems that can sequentially
High frequency multiplexing also exacerbates select the input range for each channel. The
cross talk because the signals couple through a more useful system accepts different input
small capacitance between switch channels. ranges on different channels, especially when
Low source impedance minimizes the cross measuring signals from different transducers.
talk and eliminates the charge injection. For example, thermocouples and strain gages
require input ranges in tens of mV and use
Speed special signal conditioners, while other sensors
Multiplexing reduces the rate at which data might output several volts.
can be acquired from an individual channel A data acquisition system with a software-
because of the time-sharing strategy between selectable range can measure different ranges
channels. For example, an ADC that can on different channels (but at a relatively slow
sample a single channel at 100 kHz is limited
rate) with a command to change the gain
to a 12.5 kHz/channel sampling rate when
between samples. But the technique has two
measuring eight channels.
problems. First, it is relatively slow. That is,
Unfortunately, multiplexing can introduce issuing a software command to change the
yet other problems. For instance, the multi- gain of a programmable-gain amplifier (PGA)
plexers high source impedance can combine can take tens or hundreds of ms, lowering the
systems sample rate to several Hz. Second, the drastic reduction in the scan rate for expansion
speed of this sequence is often indeterminate channels, a major limitation encountered with
due to variations in PC instruction cycle times. many plug-in data acquisition boards.
Cycling through the sequence continuously All channels are scanned, including expansion
generates samples with an uneven (and channels, at 100 kHz, (10 s per channel). (See
unknown) spacing in time. This complicates Figure 3.03.) Digital inputs also can be scanned
time-series analysis and makes FFT analysis using the same scan sequence employed for
impossible because its algorithm requires analog inputs, enabling the time correlation of
evenly spaced samples. acquired digital data to acquired analog data.
A better implementation hosts a sequencer Such systems permit each scan group (contain-
that sets the maximum acquisition rate and ing up to 512 channel/gain combinations) to
controls both channel selection and associated be repeated immediately or programmed to
amplifier gain at random. For example, one intervals of up to 12hours. Within each scan
widely used data acquisition system running group, consecutive channels are measured at a
at 100 kHz and 1 MHz uses software selectable fixed 10 s per channel rate.
channel gain and sequencing. (See Figure
3.02.) The 100 kHz system provides a FUNDAMENTAL CONCEPTS
512-location scan sequencer that lets operators Sampling Rates
use software to select each channel and its When ADCs convert an analog voltage to a
input amplifier gain for both the built-in and digital representation, they sample the value of
expansion channels. Each scan group can be the measured variable several times per second.
repeated immediately or at programmable Steady or slowly changing dc voltages might
intervals. The sequencer circuitry overcomes a require sampling rates of only several Hz, but
Scan Sequencer
All channels within a scan group are
Scan group measured at a fixed scan rate
t
Programmable
Constant
scan rate
t
Channel1 #2 #4 #7 #2 D4 #18 5 #19 #16
Gain2 x1 x8 x8 x2 x100 x10 x1000
Unipolar or Bipolar3 Uni Uni Bi Uni Bi Bi Uni
1. Unipolar or bipolar operation can be programmed for each channel dynamically by the sequencer
2. Gain can be programmed for each channel dynamically by the sequencer
3. Channels can be sampled dynamically by the sequencer
4. Expansion channels are sampled at the same rate as on-board channels
Fig. 3.02. This is an example of a 512-location scan sequencer operating in a 100 kHz data acquisition system.
The sequencer can program each channel dynamically for unipolar or bipolar operation. The sequencer also can
program the gain for each channel on the fly and change the order in which the channels are scanned.
Figure 3.02
0.2
Nyquist Theorem 0
-0.2
Transforming a signal from the time domain to
-0.4
the frequency domain requires the application -0.6
of the Nyquist theorem. The Nyquist sampling -0.8
theorem states that if a signal only contains -1
frequencies less than cutoff frequency, fc, all 0 100 200 300 400 500 600
Frequency (Hz)
the information in the signal can be captured Original Sine Wave
by sampling it at a minimum frequency of 2fc. Sampled less than 1 time per cycle
This means that capturing a signal with a Fig. 3.06. When sampling an ac signal at less than
maximum frequency component of fmax two times the Nyquist frequency, the original wave-
requires that it must be sampled at 2fmax or form cannot be reproduced faithfully.
higher. However, common practice dictates
that while working in the frequency domain, Conversely, input frequencies of half or more
Figure 3.06 (2.09)
the sampling rate must be set more than twice of the sampling rate will also generate aliases.
and preferably between five and ten times the To prevent these aliases, a low-pass, anti-
signals highest frequency component. aliasing filter is used to remove all compo-
Waveforms viewed in the time domain are nents of these input signals. The filter is
usually sampled 10 times the frequency being usually an analog circuit placed between the
measured to faithfully reproduce the original signal input terminals and the ADC. Although
signal and retain accuracy of the signals the filter eliminates the aliases, it also prevents
highest frequency components. any other signals from passing through that
0.8
frequency is more that twice the highest
0.6
frequency intended to be measured.
0.4
Fourier Transforms 0.2
1
0
0.9 0 500 1000 1500 2000
0.8
Frequency [Hz]
0.7 500 Hz square wave
4 kHz sample rate
0.6 2 kHz low-pass filter
Volts
0.5
0.4
Fig. 3.09. The Fourier Transform of a 500 Hz
0.3 Figure 3.09 (2.11) square wave is sampled at 4 kHz with a low-pass
0.2
filter cutoff at 2 kHz.
0.1
0
0 500 1000 1500 2000
When the sampling rate increases to four times
Frequency [Hz] the highest frequency wanted, the Fourier
500 Hz square wave transform in the range of interest looks even
4 kHz sample rate
No filters better. Although a small peak remains at 1 kHz,
Fig. 3.08. The Fourier transform of a 500 Hz square it is most likely the result of an imperfect
wave is sampled at 4 kHz with no filtering. square wave rather than an effect of aliasing.
(See Figure 3.10).
0.8
0.6
A finite time interval used for a Fourier
Transform also generates spurious oscilla-
0.4
tions in the transforms display as shown in
0.2
Figure 3.11. From a mathematical viewpoint,
0
0 500 1000 1500 2000
the signal thats instantaneously turned on
Frequency [Hz] at the beginning of the measurement and
500 Hz square wave then suddenly turned off at the end of the
8 kHz sample rate measurement produces the spurious oscilla-
2 kHz low-pass filter
tions. These spurious oscillations are usually
Fig. 3.10. The Fourier Transform of a 500 Hz eliminated with a function called windowing,
square wave is sampled at 8 kHz with a low-pass that is, multiplying the sampled data by a
filter cutoff at 2 kHz. weighting function. A window function that
rises gradually from zero decreases the
Discrete Fourier Transform spurious oscillations at the expense of a
When ac signals pass through a time-invariant, slight loss in triggering resolution. Many
linear system, their amplitude and phase possible window functions may be used,
components can change but their frequencies including Hanning, Hamming, Blackman,
remain intact. This is the process that occurs Rectangular, and Bartlett. (See Figures 3.12,
when the continuous time domain ac signal 3.13, and 3.14.)
passes through the ADC to the discrete time
domain. Sometimes, more useful information Fourier Transforms
can be obtained from the sampled data by
1.2
analyzing them in the discrete time domain
with a Fourier Series rather than reconstructing 1
0.8
1.5 1.5
2
1 1
Amplitude
0.5 0.5
Amplitude
Amplitude
1.5
0 0
1
-0.5 -0.5
-1 -1
0.5
-1.5 -1.5
-2 -2 0
Hamming
Fig. 3.12. The frequency informa- Fig. 3.13. In this case, the fre- Hanning
Blackman
tion obtained from a measurement quency information is preserved
can be incorrect when the wave- when multiplied by a windowing Fig. 3.14. The three most com-
form contains abrupt beginning or function. It minimizes the effect of mon types of window functions
ending points. irregularities at the beginning and include Hamming, Hanning, and
Figure 3.13 (2.15)
end of the sample segment. Blackman.
Figure 3.14 (2.16)
Fast Fourier Transforms obtained with an FFT. In an FFT, adjacent points
The Fast Fourier Transform (FFT) is so common are separated by 1/T, the inverse of the time
today that FFT has become an imprecise interval over which the measurement was made.
synonym for Fourier transforms in general.
Many standard numerical integration tech-
The FFT is a digital algorithm for computing
niques exist for computing SFTs from sampled
Fourier transforms of data discretely sampled
data. Any other technique selected for the
at a constant interval. The FFTs simplest
problem at hand probably will be much slower
implementation requires 2n samples. Other
than an FFT of a similar number of points. This
implementations accept other special numbers
of samples. If the data set to be transformed is becoming less of an issue, however, as the
has a different number of samples than speed of modern computers increases.
required by the FFT algorithm, it is often Digital vs. Analog Filtering
padded with zeros to meet the required Digital filtering requires three steps. First, the
number. Sometimes the results are inaccurate, digital signal is subjected to a Fourier transform.
but most often they are tolerable. Then the signal amplitude in the frequency
Standard Fourier Transforms domain is multiplied by the desired frequency
A Standard Fourier Transform (SFT) can be used response. Finally the transform signal is inverse
in applications where the number of samples Fourier transformed back into the time domain.
cannot be arranged to fall on one of the special Figure 3.15 shows the effect of digital filtering on
numbers required by an FFT, or where it cannot a noisy signal. The solid line represents the unfil-
tolerate the inaccuracies introduced by padding tered signal while the two dashed lines show the
with zeros. The SFT is also suitable where the affect of different digital filters. Digital filters
data are not sampled at evenly spaced intervals have the advantage of being easily tailored to
or where sample points are missing. Finally, the any frequency response without introducing
SFT can be used to provide more closely spaced phase error. However, one disadvantage is that a
points in the frequency domain than can be digital filter cannot be used for anti-aliasing.
Equation 3.04
Measurement Computing (508) 946-5100 info@mccdaq.com mccdaq.com
22 CHAPTER 3 Multiplexing and Sampling Theory
Chapter 4
ELECTRICALMEASUREMENTS
dividing tens or hundreds of volts down to just 220/230 to 460/480 Vac, single and three-phase
10 V or less to protect the instruments input voltage, Wye and Delta configurations are also
circuitry. One critical consideration for the distributed to electrical and electronic control
safety of both the equipment and operators is equipment. All these voltages are lethal and leads
to use high-voltage insulation in wires, termi- should be connected or disconnected from the
nals, connectors, leads, sensors, and other data acquisition system and the equipment under
components to prevent leakage and arcing to test with the power disconnected.
low-potential terminals and nearby objects. When connecting these voltage sources to data
acquisition systems, problems often crop up in
Low DC Voltage ground loops, which produce noise. Voltage
Compared to high voltages, successfully
drops appear between the neutral wire and
measuring low-level dc signals depends upon ground for many reasons, some of which cannot
appropriate wiring techniques between the be eliminated easily or even found. Accepted
signal source and the data acquisition device. practices for shielding, grounding, and isolation
Input amplifier stages in signal conditioning should be followed rigorously. Refer to Chapter
equipment cannot distinguish between the 10 for more detailed information concerning
measured signal and a noise voltage coupled ground loops and interference.
into lead wires. When measuring signals less
than one volt, shielded or unshielded twisted High Voltage
pairs provide the best protection against noise Similar to dc voltage levels, data acquisition
voltage pickup. Best wiring practices call for system inputs typically cant handle more than
shields to be grounded at one end only, 10 Vac peak. Higher ac voltages are attenu-
preferably at the signal source. ated and scaled with a signal conditioning
stage before they are processed. Voltages up to
AC VOLTAGE 2,000 V, peak-to-peak, can be measured with a
Low AC Voltage fully differential attenuator, calibrated to
General-purpose data acquisition systems often match the buffered differential inputs of a data
measure low-level ac voltages on the secondary acquisition system. Attenuators are typically
of loaded current transformers, step-down voltage divider networks connected from the
potential transformers, clamp-on current high side input terminal to a common ground.
probes, current-sensing resistors, or sensors lack- For systems with a true differential input,
ing galvanic isolation. All these low-level ac however, neither the inputs low nor high side
voltages must have a low common-mode volt- can be connected directly to ground. Two
age component with respect to earth ground or matched resistor dividers attenuate the incoming
float with minimal ac leakage. Also, connect the signal, one on the high side and the other on the
voltage source to earth ground when necessary. low side. Only the low side of the attenuator is
grounded. For example, an accessory device is
Outlet Level AC Voltage required to provide a 200:1 attenuation without
In the U.S. and Canada, utility wiring supports a affecting the amplifiers high input impedance.
nominal 110 Vac, 60 Hz, single-phase voltage, In a typical system, the two matched buffer
supplied with three wires; hot, neutral, and amplifiers, A and B (Figure 4.01), on the front
ground. Europe typically uses 220 Vac, 50 Hz, and end of the data acquisition system draw almost
Japan supplies 100 Vac; 50 Hz in Eastern Japan identical input bias current. Matched voltage
and 60 Hz in Western Japan. In many factories, dividers placed on the high and low-side inputs
10 M A 10 M A
50 k 5 M C 50 k 5 M C
10 M B 10 M B
50 k 5 M 50 k 5 M Channel 1
Channel 1
Fig. 4.01. A typical data acquisition system usually Fig. 4.02. A differential amplifier requires a resistor
requires an attenuator at its input to accept voltages at both inputs when running single-ended, but only
that exceed 10 V. one resistor in a voltage-divider attenuator.
provide symmetrical current limiting from either the divider on the high side input, but the low
input and let the quasi-differential input of the side input has no matching drop. The difference
data acquisition system measure a lower voltage appears at the input to differential amplifier C
) referenced to analog Figure
common. 4.01 (6.11)
Because the and produces an offset at its output.
outputs from amplifiers A and B are identical,
they can be considered a common-mode voltage Effective, Peak, Average, and RMS
that the differential amplifier C rejects. Voltage
Dc voltages and currents are relatively easy to
This scheme attenuates the high and low
measure and calculate with Ohms law. For
signals, and lets both ends float hundreds of
example, dc power is mathematically equiva-
volts above ground. For example, the high
lent to the product of dc voltage and current
input can be 110 Vac while the low end has a
and generates a unique amount of heat energy
50 Vdc offset. After attenuation, the peak
or performs a unique amount of work. By
voltage of the high side signal is 0.77 V and
comparison, power calculations for ac voltage
the low side signal is 0.25 V, which are well
and current includes an additional factor, the
within the readable range of the data acquisi-
cosine of the phase angle between them,
tion systems differential inputs.
called the power factor. When the voltage and
When a single-ended measurement is attempted current waves are in phase, the cosine of the
by attenuating only the high signal and pulling angle is unity, so the product of voltage and
the low signal to ground, two problems can current is a valid power value measured in
develop. First, when the data acquisition system watts. When they are out of phase, however,
ground and the signal ground are different, the power factor is less than unity, so the
tying them together forms a ground loop, which power generated is less than the simple product
can result in excessive current and destroy the of voltage and current. In an extreme case, 90
instrument or equipment. The second error for example, the cosine of the phase angle is
component comes from the bias currents Ib zero, so the wattage is also zero. However, the
flowing through the input pins of the two oper- power is then totally reactive, does not
ational amplifiers, A and B shown in Figure 4.02. generate heat (theoretically), and is simply
The bias current produces a voltage drop through labeled VA (volt-amperes).
0 t
RMS Voltage
90 270 450 In order to make ac and dc voltmeter scales
(A) read the same value for the same amount of
-100
work done, the ac voltmeter scales are cali-
brated in rms (root mean square) voltage
-141.4
values. When observing 100 Vac rms on the
-V meter face, the voltage is actually 141.4 Vac
peak, and the amount of work it does equals
Fig. 4.03. The numerical value for the peak voltage
of ac must be 1.414 times that of dc to produce the that of 100Vdc (in the same load). Moreover,
same heating effect. for ac, the maximum (peak) positive excursion
and the maximum negative excursions are the
same; therefore the peak-to-peak value in this
EQN 4.01. DC Power
example is twice 141.4 or 282.8 Vp-p.
P=ExI
The rms voltage value of a sine wave is equal
Where:
to the effective value and is defined as the
E and I are in phase
square root of the average of the squares of the
P = power, W
instantaneous voltages measured over a given
E = dc voltage, V
number of cycles.
I = dc current, A
EQN 4.03. Volts rms
EQN 4.02. AC Power
V rms = V 1 2 + V 2 2 + V 3 2 + ...V n 2
P = E x I x Cos
When the shape of the ac signal is not a near-
Where:
perfect sine wave, ordinary vane-type voltmeters
P = power, W
will not indicate a true rms ac value. Special
E = ac voltage, V
meters and some data acquisition systems,
I = ac current, A
however, are designed to compensate for the
= phase angle between voltage and current
shape discrepancies and are called true rms
meters. They measure and indicate the true rms
Effective Voltage value of the ac signal, regardless of the distor-
The ac voltage wave shape follows a sine func-
tion. The average value of the ac voltage is zero,
tion (ideally), and because it continually rises
because the positive half cycle magnitude equals
and falls over each cycle, the area under the
the negative half cycle of the wave shape.
curve for ac is less than for dc overEquation
the same4.03
(peak) amplitude and time period. Thus,
CURRENT
100Vac peak generates less heat than 100 Vdc
in the same load. (See Figure 4.03.) To compen- A Fundamental Problem
sate for this, peak ac voltages must be higher Voltage drops are relatively easy to measure with
than dc to generate an equivalent amount of most instruments because the difference in
Figure
Fig. 4.05. High dc currents 4.06
are often (3.06) with
measured high resistance. In this case, the lead resistance
shunts using differential inputs sharing a common
is part of the 500 , so in a simple series circuit,
ground.
the shunt resistor is often adjustable in order to
calibrate the loop to exactly 20 mA full scale.
point. In these instances, more expensive,
isolated analog input amplifiers are The accuracy and stability of the measured
recommended. voltage across the shunt are only as accurate
and stable as the shunt resistor itself. Resistor
Data acquisition systems also measure low- accuracies are commonly 5, 1, 0.5, 0.1 and
level dc currents with shunts. Many sensors 0.01% and come with a temperature coefficient
output a standard 4 to 20 mA current, which that specifies their stability over a specific
is linearly related to the quantity being temperature range. In addition, a 0.1% resistor
measured. The signal current passes through usually has a lower temperature coefficient and
the shunt resistor, as shown in Figure 4.06,
better long-term stability than a resistor with
and the voltage drop across the shunt provides
lower accuracy because of its construction,
the input for the ADC.
which is usually wire wound or metal film vs.
Ohms law defines the nature of this simple carbon film or carbon composition.
circuit where the product of resistance (R) and
current (I) yields the voltage: V = IR. Current Transformers
Consequently, when the data acquisition High ac currents can be measured with shunts
system requires a 10 V input for a 20 mA full- under special circumstances, but most often
scale reading, a 500 resistor does the job: such direct connections to ac lines are
EQN. 4.04. Shunt Resistor extremely dangerous to humans. One way to
get around the hazard is to use current trans-
R = V/I = 10 V/0.02 A = 500
formers (CT) that isolate ac line voltages and
The current loop provides higher noise immu- reduce input current by a specified ratio.
nity and accuracy than does a voltage source (See Figure 4.07.) A 500:5 CT, for example,
when measuring with long leads of relatively has a 100:1 ratio and generates a secondary
Load
Iron containing
magnetic flux
Hall device
VW = Voltage
IL = Load current proportional to power
Voltmeter
Power calibrated in
indicator Watts - PW
RC
Flux
lines
VL = Load voltage
Fig. 4.09. A Hall-Effect sensor is an ideal wattmeter for measuring ac power. It inherently includes the
phase angle between the voltage and current vectors as a multiplying factor to convert VA to W.
reference resistors called multipliers scale For example, when measuring an unknown
analog meters to read in the middle portion of resistor near 1,000 , select a 1,000 reference
its face, while digital ohmmeters scale either resistor and a supply of 2.0Vdc. This produces
manually or automatically to properly position a current of 2/2,000= 1 mA. A 1,000 refer-
the decimal point. Digital multimeters (DMMs) ence resistor keeps the current relatively low
similarly apply a dc voltage across an unknown and satisfactorily measures unknown values
resistor and a precision shunt resistor. The test down to the 100 range. The unknown
current generates a voltage drop across the resistor value is calculated from:
shunt resistor, which is read by the ADC to EQN. 4.06. Voltage Divider Resistor
output a digital value of the unknown resistor.
Ru = (Rk)(Vm)/(Vs Vm)
Data acquisition systems, however, do not
Where:
typically read ohms directly; they measure
Vm = measured input voltage, V
voltages and voltage ratios across known and Vs = source voltage channel, V
unknown resistance dividers and compute Rk = known resistance,
equivalent resistor values. Ru = unknown resistance,
Voltage Divider Method For example:
Resistance voltage divider circuits can use either
single-ended or differential-input amplifiers. Where:
(Refer to Figure 4.10.) The known reference Vs = 2 V
resistor should have a value that is close to the Vm = 1.10 V
unknown value, and the source voltage should Rk = 1,000
be low enough to ensure that the current is Ru = unknown resistor,
within acceptable limits such as 1.0 mA or less. Then:
Ru = (1 k)(1.10 V)/(2.0 1.10)
Resistive Voltage Divider Ru = (1,100)/(0.90) = 1,222.2
Constant Current/Voltage Drop
Reference
A Data Current source/voltage drop methods to
+ acquisition
x1 system measure unknown resistances use both two
B
Rk
Vs and four-wire circuits. Two-wire circuits should
(known) be avoided for measuring very low to moder-
Out
Vs ately low resistances because the lead wires
Source and connections can become part of the total
Gnd
Ru
resistance (which is added to the unknown
+ A
(unknown) value).
x1
B Vm
Small Deviations
Ru Vm
= Resistance measurement errors come from a
Rk Vs Vm
number of sources. The most common errors
in low resistance circuits for simple constant
Fig. 4.10. Resistive voltage dividers work with
current/voltage drop methods using two
single-ended or differential amplifiers and a refer-
ence resistor whose value is near the unknown wires come from the lead wire resistance and
resistors value. connections added to the unknown resis-
tance. Keeping the lead wires short and using
four-wire circuits such as Kelvin connections shown in Figure 4.11. When all resistors are
can minimize these errors. Errors in high identical, the voltage drops across them are
resistance measurements can come from the equal, and the voltage between nodes A and B
shunt resistance of insulation, such as in is zero. When one or more resistors are not
wiring and connector bodies. When using a equal, which is usually the resistor under test,
current source and measuring the voltage the bridge unbalances and a null meter placed
drop, use high input impedance measuring between the nodes measures the amount of
devices, whether they are voltmeters or signal unbalance. An adjustable resistor or a potenti-
conditioner inputs. For extremely high ometer can be placed in one arm of the bridge
resistor measurements, use a voltage source to manually rebalance the circuit. When the
and measure the current using short lead potentiometer drives the meter back to zero,
wires and robust connections. its value then equals that of the unknown
resistor. The potentiometer comes with a
WHEATSTONE BRIDGE precision, calibrated readout device that indi-
cates its resistance, which is also the value of
Basic Principle the unknown resistor.
Wheatstone bridges often measure precise
resistances and extremely small resistance Anderson Loop Alternative
changes. A typical bridge circuit is arranged in The basic Anderson loop is often compared to
a symmetrical pattern of equal-value series- a passive bridge circuit, but it provides higher
parallel resistors across a power source as
Anderson Loop
Wheatstone Bridge
Precision resistor Precision calibrated Current loop
decade box dial or digital readout Rw
R w1
1.010 Current
source Subtractor
Rx R w2
unknown R Vg
resistor
Gage V1 A1
A B
+
Excitation R
R w3
Rw +
A3
Rw Vout
R w4
Rw
Vout VREF
Null
meter RF V2 A2
accuracy measurements with less excitation The output responses of a multiple strain gage
voltage. Furthermore, it contains an amplifier, arrangement can be expressed as:
which puts it in the class of an active device. EQN 4.08. Multiple Strain Gage Output
The basic Anderson loop is a series circuit V1out Vref = IR1
composed of one sensing element in series V2out Vref = IR2
with one reference element powered by a V3out Vref = IR3
constant-current source. A dual-differential V4out Vref = IR4
operational amplifier with high temperature Where:
stability and high CMRR, called a subtractor, Rref = Rn, nominal gage resistance
delivers the output response from the sensing Vnout = output voltage, V
element. (Refer to Figure 4.12.) The advan- I = constant current, A
tage of this topology lies in its ability to Rn = the change in resistance of the nth
ignore changes in lead wire resistance and to strain gage,
amplify only the output changes of the Vref = reference voltage, V
sensing element.
The output response Vout of a basic strain- Anderson Loop for Multiple strain Gages
gage circuit is defined by:
EQN. 4.07. Anderson Loop Output Current loop Anderson
subtractors
Vout = A1V1 A2V2
Vout = Ir (Rg) Gage + + V1out
V1
Where: R1 + R1
A1 = amplification factor of stage 1
A2 = amplification factor of stage 2 + + V2out
Gage V2
V1 = voltage across sensing strain gage, V R2 + R2
V2 = voltage across reference strain gage, V
Ir = constant current, A + + V3out
i, Gage V3
Rg = strain gage resistance change, electrical R3 + R3
current
source
The circuit is not limited to only one sensor; + + V4out
Gage V4
it can be expanded to contain numerous R4 + R4
sensors in series such as a strain rosette. It Instrumentation
may be connected to signal conditioners amplifiers
Vref
with only six wires plus a common as illus-
+
trated in Figure 4.13. Additional advantages Rref Reference
Vref input
reference
include an output voltage that is linear for impedance
each gage response, it requires only 1/4 the
power needed by the conventional bridge
circuit, and the loop output voltage is twice Analog
common
that of a conventional strain gage. The fact
that the output signal of the Anderson loop Fig. 4.13. The Anderson loop may be connected to
is twice that of a strain gage Wheatstone multiple sensors in series such as in this strain
bridge circuit accounts for a 6 dB increase in rosette.
signal-to-noise ratio.
Figure 4.13
The significance of the output signal they provide greater noise rejection than
voltage, IRn, is that it is principally a func- single-ended amplifiers. Furthermore, some
tion of the change in resistance or imped- sensors, particularly strain gages, require
ance of the sensing element, not its absolute measuring the voltage difference between the
terminal resistance. two signal leads. Figure 4.14 depicts a differ-
ential amplifier configured for a thermo-
SINGLE-ENDED AND DIFFERENTIAL couple. Although the amplifier measures the
MEASUREMENTS voltage difference between the two inputs, a
path to ground is required on at least one
Basic Principles input of the amplifiers. The 10 k resistor
Data acquisition systems provide for both between the low side and ground provides a
single-ended and differential-input connec- path for amplifier bias current. If the resistor
tions. The basic difference between the two is is absent or too high in value, the bias current
the choice of the common connection for drives the input to one of the power supply
analog voltage inputs. Single-ended multi- rail values, saturating the amplifier, which
channel measurements require that all volt- exceeds its usual 10 V common-mode range.
ages be referenced to the same, well-chosen
common node to prevent certain types of
measurement errors. Sometimes, however, an Differential Thermocouple Measurement
ideal common point cannot be secured and a
differential input is needed.
Thermocouple Differential
Differential connections cancel or ignore amplifier
A
common-mode voltages and can measure the
difference between the two connected points.
The rejected common mode voltages can be ib Rb = 10 k
steady dc levels or noise spikes. When given
a choice, the differential input is preferred.
Fig. 4.14. The resistor is necessary for at least one
When to Make Single-Ended input to provide the path to ground for amplifier
Measurements bias currents.
When single-ended and differential input
measurements are offered in the same data
The common-mode voltage generated by the
acquisition system, the differential inputs
usually consume two of the single-ended bias current, ib, is:
inputs. That is, 16 single-ended input ampli- EQN. 4.09. Common Mode Voltage
fier channels equal 8 differential-input ampli-
fier channels. WhenFigure
noise 4.14
Vcm = 2ibRb
susceptibility and
Where:
ground loops are not a concern, single-ended
input measurements may be satisfactory. ib = bias current, A
Rb = bias resistor,
When to Make Differential Measurements
Differential measurements call for a differen- The minimum value for Rb may be as low as a
tial amplifier to measure the difference short circuit (on one side only), which reduces to
voltage between the two input signal leads. a single-ended input configuration. Otherwise,
Differential amplifiers are preferred because under worse-case conditions, the voltage error in
( )
100 k
Rs
E(%) = 100 R4 R1
2R b
Where:
Vexc
E = error, % +A
Rs = source resistance, R3 R2
Rb = bias resistor,
+
100 k
This applies to Rb for a balanced circuit where
bias resistors are on both inputs. Values for Rb Excitation
typically range from 10k to 10M. If both Fig. 4.15. When the strain gage reference voltage
equations cannot be satisfied simultaneously, and amplifier share the same common terminal,
the source resistance is too high to operate switched bias resistors are not necessary.
within specifications.
Some amplifier inputs come with built-in bias measurements. A large CMRR is necessary to
resistors for differential measurements, while accurately measure a small differential signal
Figure 4.15
users supply the bias resistors for extremely high- on a large common mode voltage. The CMRR
impedance inputs. However, an incorrect user- specifies the maximum effect of the common
supplied bias resistor might dramatically lower mode voltage on a differential measurement.
the input impedance in non-isolated systems Figure 4.16 shows the output signal free of
and load the circuits being measured. Other data the common mode input noise after passing
acquisition systems provide a suitable range of through the differential amplifier. The two
resistors that can be switched to analog common noise spikes entering the amplifier are equal
(preventing users from selecting an incorrect in phase and amplitude, so the difference
resistor). Alternatively, users can disconnect all amplifier cancels them.
resistors when a dc path already exists at the
sensor for bias current to flow from the amplifier Differential Mode Noise Rejection
inputs to analog common.
Consider the strain gage in Figure 4.15. When
S1
the excitation voltage is referenced to the same
common as the differential amplifier, bias
resistors are not required because the strain S1 S2
+
gage itself provides a current path to ground Diff
for the instrumentation amplifier. However,
when the instrumentation amplifier is floating
or referenced to a different common, at least
one bias resistor is required. A balanced termi- S2
nation with a 100k resistor can also be used.
Common-mode rejection ratio, CMRR, is a Fig. 4.16. The differential amplifier rejects voltages
critical amplifier specification and a measure that are common to both lines.
of quality for instruments making differential
For example, a ratio of 10 equals 20 dB, a ratio Although isolation does not protect ampli-
of 100 equals 40 dB and each additional factor fiers against excessive normal-mode input
of 10 adds another 20 dB to the sum. voltage (voltage across a pair of inputs), it
Furthermore, an amplifier with a specification does protect against excessive common-mode
of 100 dB corresponds to a ratio of 100,000, so voltage. Isolation eliminates a potentially
an instrument with a CMRR of 100 dB large and damaging current that would flow
measuring a signal on a common-mode voltage from the signal source due to the common-
of 1 volt can have an error of 0.01 mV. If the mode voltage.
common-mode voltage is larger, or if greater Several isolation methods inherently include
accuracy is needed, an amplifier with a CMRR high common-mode voltage rejection. Each
of at least 120 dB would be needed, a ratio of channel can have an isolation amplifier, or a
one million to one. group of channels (not isolated from each
Calculate the CMRR for a differential amplifier other) can be multiplexed and digitized by an
given in a data sheet: ADC before the digital data are isolated.
Isolation barriers can be optical, magnetic, or
Where Adiff = differential gain = 10
capacitive. The most common types are opto-
Acm = common mode gain = 0.001553
couplers composed of infrared (IR) light-emit-
EQN. 4.12. Common Mode Rejection Ratio ting diodes (LEDs) detected by photodiodes on
CMRR = Adiff/Acm the opposite side of a high-voltage, quartz
CMRR = 10/0.001553 barrier. Optocouplers can transmit numerical
CMRR = 6,439 data in serial pulse trains or sine waves and
pulse trains whose frequency or pulse width
Find CMRR in dB: can be modulated with analog signals. Varying
LED current, as shown in Fig. 4.17, can also
EQN. 4.13. CMRR Example
transmit analog information. Magnetic barriers
CMRRdB = 20 log 6439 = 20(3.820) = 76.4 dB using transformers and capacitive barriers are
generally internal and used in monolithic or
High Common-Mode Voltage hybrid isolation amplifiers.
Measurements In frequency-coupled isolation, a high-
Often, a small voltage riding on a much frequency carrier signal is inductively or
larger voltage must be measured. For capacitively coupled across the isolation
example, when a thermocouple sits on one barrier. The signal is modulated on the input
terminal of a battery, the signal conditioner side and demodulated on the output side to
input must be able to measure the millivolt reproduce the original input signal.
Basic Principle RL
Wheatstone bridge circuits are accurate,
Excitation and
simple, sensitive, and convenient ohmmeters regulation
to operate when the bridge, the unknown R1 R4 + +
resistance, and the readout are all located near RL Vexc Vsense
one another. But when the excitation and
regulation circuit are located several meters
R2 R3
away from the bridge circuit, the lead
resistance, RL, may cause an error in the +
RL A
excitation voltage.
RL
One way around the problem is to use a Kelvin Signal
RL conditioning
connection, a method that connects the
excitation and regulator circuits to the bridge
with four wires. Two wires carry the excitation Fig. 4.18. The Kelvin connection eliminates lead
resistance from altering the excitation voltage by
current, and the other two, the sense lines,
using a second pair of wires. The measuring device
measure the excitation voltage at the bridge has relatively high input impedance so it does not
and carry no current. Because the signal draw current and develop a voltage drop across its
conditioning circuit has high input impedance,
Figure 4.18 leads that would add an error.
little current flows in the input leads, so their
Chapter 5
FUNDAMENTAL SIGNAL CONDITIONING
ADC, which requires a level-shifting stage to for settling time), the capacitor only charges to
let bipolar signals use unipolar ADC inputs 86% of the value of the signal, which intro-
and vice versa. For example, a typical 16-bit, duces a major error. But a 1 k resistor lets the
100 kHz ADC has an input range of -5 V to capacitor easily charge to an accurate value in
+5 V and a full-scale count of 65,536. Zero 20 time constants.
volts corresponds to a nominal 32,768 count.
Figure 5.03A shows how system input imped-
If the number 65,536 divides the 10 V range,
ance and the transducers source impedance
the quotient is an LSB (least significant bit)
magnitude of 153 v. combine to form a voltage divider, which
reduces the voltage read by the ADC. The input
Multiplexing through high source impedances impedance of most input channels is 1M or
does not work well. The reason that low source more, so its usually not a problem when the
impedance is necessary in a multiplexed sys- source impedance is low. However, some trans-
tem is easily explained with a simple RC cir- ducers (piezoelectric, for example) have high
cuit shown in Figure 5.02. Multiplexers have a source impedance and should be used with a
small parasitic capacitance from all signal special charge amplifier. In addition, multi-
inputs and outputs to analog common. These plexing can greatly reduce a data acquisition
small capacitance values affect measurement systems effective input impedance. (See also
accuracy when combined with source resis- Chapter 3, Multiplexing, Input and Source
tance and fast sampling rates. A simple RC Impedance.) The charge injection effects are
equivalent circuit consists of a dc voltage
shown in Figure 5.03B.
source with a series resistance, a switch, and a
capacitor. When the switch closes at T = 0, the
voltage source charges the capacitor through Input and Source Impedance
the resistance. When charging 100 pF through
10 k, the RC time constant is 1 s. In a
10 s time interval (of which 2 s is available Rs Ri
VADC = Vsig
Rs + Ri
Parasitic RC Time Constant
Vsig Ri
MUX
R
+
Rsource Ron A
Transducer
C
Fig. 5.03A. The sensors source impedance Rs
should be relatively small to increase the voltage
divider drop across Ri, the amplifiers input. This
can substantially improve the signal-to-noise ratio
for mV range sensor signals.
Fig. 5.02. The source resistance should be as low as
Figure 5.03 A
possible to minimize the time constant of the MUXs
parasitic capacitance C and series resistance R. An Operational Amplifiers
excessively long time constant can adversely affect Many sensors develop extremely low-level
the circuits measurement accuracy. output signals. The signals are usually too
small for applying directly to low-gain,
Operational Amplifiers
Rf V in
+ V out
A
V in Ri
V out
Ri
A
+ Rf
Rf Rf
Gain = Gain = +1
Ri Ri
Inverting Non-Inverting
Fig. 5.04. The two basic types of operational amplifiers are called inverting and non-inverting. The stage gain
equals the ratio between the feedback and input resistor values.
Figure 5.04
Measurement Computing (508) 946-5100 info@mccdaq.com mccdaq.com
42 CHAPTER 5 Fundamental Signal Conditioning
limit the frequencies of amplified signals and Although calibrating a system can minimize
the frequency at which the input switching offset voltage and gain error, it is not always
system can switch channels between signals. A necessary to do so. For example, an amplifier
series of steady dc voltages applied to an instru- with an offset voltage of 0.5 mV and a gain of
mentation amplifier in rapid succession gener- 2 measuring a 2 V signal develops an error of
ates a difficult composite signal to amplify. The only 1 mV in 4 V on the output, or 0.025%.
settling time of the amplifier is the time neces- By comparison, an offset of 0.5 mV and a
sary for the output to reach final amplitude to gain of 50 measuring a 100 mV signal develop
within some small error (often 0.01%) after the an error of 25 mV in 5 V or 0.5%. Gain error
signal is applied to the input. In a system that is similar. A stage gain error of 0.25% has a
scans inputs at 100 kHz, the total time spent greater overall effect as gain increases
reading each channel is 10 s. If analog-to- producing larger errors at higher gains and
digital conversion requires 8 s, settling time of minimal errors at unity gain. System software
the input signal to the required accuracy must can generally handle known calibration
be less than 2 s. constants with mx+b routines, but some
Integrated Instrumentation Amplifiers
Input 1
+
+
Vi
0V A1
R in ~
Sense
Ri1 Rf1
Rm Vo A3 Vo
R +
Ri2 Rf2
Reference
0V A2
Input 2
+
+
Vi
R in ~
Fig. 5.11. The instrumentation amplifier exhibits extremely high impedance to the inputs V1 and V2. Resistor
Rm adjusts the gain, and the single-ended output is a function of the difference between V1 and V2.
Output (dB)
sensors such as strain gages, thermocouples,
RTDs, current shunts, and load cells. They -10
are commonly configured with three op -15
amps two differential inputs and one
-20
Figure 5.12_A_pt1
differential output amplifier. (See Figure 0.1 0.5 1.0 2.0 3.0 c (rps)
5.11.) Some have built-in gain settings of 1
to 100 and others are programmable. Fig. 5.12A. Butterworth filter and response
characteristics
Programmable-Gain Instrumentation
Amplifiers
A special class of instrumentation amplifiers, Chebyshev Filter
called programmable-gain instrumentation
0.996 H
amplifiers (PGIA), switch between fixed gain 1 2
levels at high speeds Figure 5.12_A_pt2
for different input sig-
nals delivered by the input switching system.
The same digital control circuitry that selects V1 0.912 F 1 V2
the input channel also can select a gain RL
range. The principle of operation is the same
as that described above for Programmable
1 2 Wc (rps)
Gain Amplifiers.
FILTERING 0
The three most common types of filters are
Gain (dB)
High-Pass Filters
High-pass filters operate in reverse to low-pass
Vi RI R1 R2 R3 Vo RL
filters. They attenuate the lower frequencies
and are needed when low-frequency interference
can mask high-frequency signals carrying the
desired information or data. Low frequency
electrical interference sometimes couples into
the system from 50 or 60 Hz power lines. Fig. 5.14. The high-pass filter is designed to have
Similarly, when analyzing a machine for a lower corner frequency near zero and the cutoff
vibration, the desired signals can be corrupted frequency at some higher value. The number of
by low frequency mechanical interference from capacitor/resistor pairs determines the number of
poles and the degree of cutoff sharpness.
Amplifier/Filter/MUX Combination
Figure 5.14
Passive vs. Active Filters
Ch 1 IA
Low-pass filter Passive filters comprise discrete capacitors,
per channel inductors, and resistors. As the frequencies
Ch 2 IA
Low-pass filter propagate through these networks, two prob-
per channel
Mux To A/D lems arise: the desired signal is attenuated by a
Ch 3 Low-pass filter relatively small amount, and when connected
IA per channel
to a load, the original filtering characteristics
Ch 4 IA Low-pass filter change. However, active filters circumvent
per channel 2
these problems. (See Figure 5.15.) They
Channel address lines
comprise operational amplifiers built with
Switched bias resistors
(per channel) both discrete and integrated resistors, capaci-
tors, and inductors. They can provide the
proper pass-band (or stop-band) capability
Fig. 5.13C. A typical production type data acqui-
sition system contains an instrumentation ampli- without loading the circuit, attenuating the
fier and a low-pass filter in each channel preceding desired signals, or changing the original
the MUX. The amplifier boosts low-level signals filtering characteristics. The advantages of
sufficiently well to let the active filter work at an such a filter is; it is easier to design, and it has
optimum signal-to-noise ratio. finer tuning, fewer parts count, and improved
filter characteristics.
Active Filters
R1 C1
Vi C R2 R1
A Vi C2 R2
+ Vo
A
+ Vo
Vo
Actual
Ideal
Vo
Ideal
Stop- Pass-
band band
C
f
0 fL fr fH
R1
Band-Pass Filter
Vi R2
A
+ Vo Switched-Capacitance Filters
Figure 5.15_F Although active filters built around opera-
Vo tional amplifiers are superior to passive filters,
they still contain both integrated and discrete
Ideal resistors. Integrated-circuit resistors occupy a
Actual large space on the substrate and their values
cant be made easily to high tolerances, either
in relative or absolute values. But capacitors
Pass- Stop- with virtually identical values can be formed
band band
on integrated circuits more easily, and when
used in a switching mode, they can replace
f the resistors in filters.
0 fH
Low-Pass Filter The switched-capacitor filter is a relatively
recent improvement over the traditional active
Fig. 5.15. Passive filters tend to change in frequen-
filter. James Clerk Maxwell compared a switched
cy-cutoff characteristics with a change in load. To
prevent this, an active device such as a transistor or
capacitor to a resistor in a treatise in 1892, but
op amp isolates the last pole from the load to main- only recently has the idea taken hold in a zero-
tain stable filter characteristics. offset electronic switch and a high input imped-
ance amplifier. The switched-capacitor concept
is now used in extremely complex and accurate capacitors. Moreover, the equivalent resistors
analog filter circuits. effective value is inversely proportional to the
The theory of operation is depicted in Figure frequency or the size of the capacitor.
5.16. It shows that with S2 closed and S1
open, a charge from V2 accumulates on C. ATTENUATION
Then, when S2 opens, S1 closes, and the Voltage Dividers
capacitor transfers the charge to V1. This Most data acquisition system inputs can
process repeats at a particular frequency, and measure voltages only within a range of 5 to
the charge becomes a current by definition, 10 V. Voltages higher than this must be atten-
that is, current equals the transfer of charge uated. Straightforward resistive dividers can
per unit time. easily attenuate any range of voltages (see
Figure 5.17), but two drawbacks complicate
Switched-Capacitor Filters this simple solution. First, voltage dividers
V2 V1
present substantially lower impedances to the
source than direct analog inputs. Second, their
S2 S1
output impedance is much too high for multi-
C plexer inputs. For example, consider a 10:1
divider reading 50V. If a 900 k and a 100 k
resistor are chosen to provide a 1 M load to
the source, the impedance seen by the analog
Fig. 5.16. Because resistors have wider tolerances
and require more substrate area than capacitors, a multiplexer input is about 90 k, still too high
technique that uses multiple precision capacitors to for the multiplexed reading to be accurate.
replace resistors in filters is called a switched When the values are both downsized by a
capacitor circuit. factor of 100 so the output impedance is less
than 1 k, the input impedance seen by the
The derivation of the equation is beyond the
scope of this handbook, but it can be shown Attenuator/Buffer
Vin
that the equivalent resistor may be deter-
mined by: 900 k 9 k
R1
EQN 5.04 Switched-Capacitance Filters
(V2 V1)/i = 1/(fC) = R ZS = Source Vout
Where:
100 k 1 k ZL = Mux input
V2 = voltage source 2, V R2 RL
V1 = voltage source 1, V
i = equivalent current, A
f = clock frequency, Hz com. com.
C = capacitor, F 1 Meg ZS 10 k
R = equivalent resistor, 90 k ZL 1 k
Figure 5.17
Measurement Computing (508) 946-5100 info@mccdaq.com mccdaq.com
52 CHAPTER 5 Fundamental Signal Conditioning
measured source is 10 k, or 2 k/V, which low, which is necessary for the multiplexed
most instruments cannot tolerate in a voltage analog input. (See Figure 5.18.)
measurement. Hence, simple attenuation is
not practical with multiplexed inputs. Balanced Differential Dividers
Not all voltage divider networks connect to a
Buffered Voltage Dividers ground or a common reference point at one
The low impedance loading effect of simple end. Sometimes, a balanced differential divider
voltage dividers can be overcome using is a better solution for driving the data acquisi-
unity-gain buffer amplifiers on divider tion systems input terminals. (See Figure
outputs. A dedicated unity-gain buffer has 5.19.) In this case, the CMRR of the differen-
high-input impedance in the M range and tial amplifier effectively reduces the common-
does not load down the source, as does the mode noise that can develop between different
network in the previous example. Moreover, grounds in the system.
the buffers output impedance is extremely
High-Voltage Dividers
Some data acquisition systems employ special
Buffered Voltage Dividers input modules containing high-voltage
Vin dividers that can easily measure up to 1,200V.
They are properly insulated to handle the high
RA
voltage and have resistor networks to select a
number of different divider ratios. They also
contain internal trim potentiometers to cali-
+
Vout brate the setup to extremely close tolerances.
A
RB
Compensated Voltage Dividers and
RL Probes
Voltage divider ratios applied to dc voltages are
RB
Vout = V consistently accurate over relatively long
RA + RB in
distances between the divider network and data
acquisition system input when the measure-
Vin RA +Vc ment technique eliminates the dc resistance of
the wiring and cables. These techniques include
a second set of input measuring leads separate
from those that apply power to the divider such
Vout as the Kelvin connection discussed in Chapter 4.
Voltage dividers used on ac voltages, however,
RB RE RL must always compensate for the effective capac-
itance between the conductors and ground or
common, even when the frequency is as low as
60 Hz. Its not uncommon to find that when the
Fig. 5.18. An op amp or a transistor serves as an ac voltages are calibrated to within 0.01% at the
impedance matching buffer to prevent the load from divider network, the voltages reaching the data
affecting the dividers output voltage. acquisition system input terminals may be out
of tolerance by as much as 5%. This is because
220 pF 249 K
Compensation
capacitors
220 pF 249 K +
100 V A Out
249 K
50 V
+
A
2M
2.49 M 10 V
Lo
Fig. 5.19. A typical high-voltage input card for a data acquisition system contains a balanced differential input
and jumpers for selecting an input voltage range of 10 V, 50 V, or 100 V. The input circuit also compensates for
long lead wire capacitance that tends to form an ac voltage divider, which would reduce accuracy.
Figure
the 5.19
lead capacitance enters into the divider voltages, break ground loops, and eliminate
equation. One way around the problem is to source ground connections without subjecting
shunt the data acquisition input terminals (or operators and equipment to the high voltage.
the divider network) with a compensating They also provide a safe interface in a hospital
capacitor. For example, oscilloscope probes between a patient and a monitor or between the
contain a variable capacitor precisely for this source and other electronic instruments and
purpose. The probe capacitor is adjusted to equipment. Yet other applications include preci-
match the oscilloscopes input impedance and sion bridge isolation amplifiers, photodiode
as a result, it faithfully passes the leading edge of amplifiers, multiple-port thermocouple and
the oscilloscopes built-in 1,000 Hz square-wave summing amplifiers, and isolated 4 to 20 mA
generator without undershoot or overshoot. current-control loops.
Isolation
Input Output
C1 C2
Ia 1pF 1pF Ia
X A A X
Sense 1pF 1pF Sense
C5 R5
R1 C3 Ib Sense
Ib
Vin Vout
+ Signal
Signal A2 Com 2
Com 2 + A1 R3
Ext S/H S/H
Osc R2 G=1 G=6 Adjustable
R4 C4 gain stages
Figure 5.20
Measurement Computing (508) 946-5100 info@mccdaq.com mccdaq.com
Data Acquisition Handbook 55
IREF1 IREF2
Input Output
I I
Rin
+In
A A
+ + Vout
+
Vin I
Optical
couplers D1 D2 Vout = IinRf
-In
LED
Common 1 Common 2
Fig. 5.23. This is a simplified diagram of a unity gain current amplifier using optical couplers between input and output
stages to achieve isolation. The output current passing through the feedback resistor (Rf) generates the output voltage.
Figure 5.23
Measurement Computing (508) 946-5100 info@mccdaq.com mccdaq.com
56 CHAPTER 5 Fundamental Signal Conditioning
Signal
transmitted
by magnetic
field
Isolated
Planar H output
Vin A Iin
coil A
Galvanic
isolation
by thin-film GMR resistors
dielectric
Isolation
Fig. 5.24A. Magnetic couplers transfer signals through a magnetic field across a thin film dielectric. In this case,
a magneto-resistance bridge circuit sensitive to the field exhibits a large change in resistance when exposed to the
magnetic field from a small coil sitting above it.
Figure 5.24 A
+Vs
Input Pulse
Demodulator T1 generator
Vs
R2
R1
Modulator Output A Vout
A T2 Demodulator
+ +
Vin
R3
Input Rectifiers Rectifiers Output
power and filters T3 and filters power
Isolation
Fig. 5.24B. The transformer-coupled isolation amplifier uses separate power supplies for the input and output
stages, which are isolated by virtue of the individual transformer windings. This provides the input and output
stages with decoupled ground or common returns. In addition, the modulator/demodulator transfers the measured
signal across the barrier via other transformer windings for complete galvanic isolation between input and output.
FigureInherently
5.24 B Isolated Sensors the alternating magnetic field directly from the
In addition to directly measuring voltage, cur- revolving wheel. In the second application, a
rent, and resistance, which require some permanent magnet sitting behind the Hall
degree of isolation, certain sensors that mea-
sure other quantities are inherently isolated by Digital Method of Isolation
virtue of their construction or principle of
operation. The most widely used sensors mea- Input Output
VDD1 VDD2
sure position, velocity, pressure, temperature,
acceleration, and proximity. They also use a Data Data
number of different devices to measure these in out
quantities, including potentiometers, LVDTs Encode Decode
(linear variable differential transformers), opti-
cal devices, Hall-effect devices, magnetic
devices, and semiconductors.
Hall-effect devices, for example, measure Gnd Gnd
magnetic fields, and are electrically insulated
from the magnetic source that they are designed Air core Isolation
to measure. The insulation may be air or transformer
another material such as plastic or ceramic, and
Fig. 5.25. Yet another isolation method specifically
the arrangement essentially isolates them from intended for digital circuits employs a high-speed
ground loops and high voltages. Figures 5.26A CMOS encoder and decoder at the input and output,
and B illustrate two applications where Hall- coupled with a monolithic air-core transformer.
effect devices measure speed. The first senses
Figure 5.25
Vsens Iout
N Magnetic field Conditioned output
IH
Rotation
S Magnetic pole IL
N
3 mV
0 t
Target S
Hall-effect Amplifier, -3 mV
wheel sensor comparator
Input
N
Fig. 5.26B. This Hall-Effect sensor configuration
S
uses a bias magnet and a tone wheel that modu-
Output
A
lates the magnetic field intensity to produce an
output signal.
Figure 5.26 B
Bridge circuit
secondary can be made to withstand thou-
Conditioned Output sands of volts and have extremely low leakage
values. The turns ratio also is easy to select for
pt 1 stepping down a high voltage to a lower stan-
10 mA
dard voltage of 5 to 10 Vac.
Current
AC
Isolated Sensor
Variable Reluctance/Magnetic
To ammeter or
shunt resistor, Rs Antilock brake
controller
Donut-shaped Variable
current transformer reluctance
wheel speed
sensor
220 VAC AC input
power 50 to 100A
load from sensor Gear
input
wheel
DC
reference
I
1.70V 15 mA
Common or return
1.0V 5 mA
2 turns Ratio 2:1
Figure
I
5.28 B
Fig. 5.28. Variable reluctance sensors comprise a
coil of wire wound around a magnetic core. As a
ure 5.27 B,C,D Common or return
ferrous metal passes near one pole it disturbs the
magnetic field and induces a small voltage in the
Fig. 5.27. Because it does not need a ground con- coil. In this example, the voltage is amplified,
nection, a current transformer is isolated from both shaped, and converted to a digital signal for indicat-
the input and output of the signal conditioner. ing vehicle wheel speed.
Figure 5.28 C
mounting base if needed in some rare applica- interruption of a light beam between an optical
tions. (See Chapter 7, Strain Measurements.) transmitter and receiver. A revolving opaque
disc with multiple apertures placed between the
LVDTs contain a modulator and demodulator,
transmitter and receiver alternately lets light
either internally or externally, require some through to generate pulses. Usually, LEDs
small dc power, and provide a small ac or dc generate the light and a photo diode on the
signal to the data acquisition system. Often opposite side detects the resulting pulses, which
they are scaled to output 0 to 5 V. LVDTs can are then counted. The pulses can indicate posi-
measure both position and acceleration. (See tion or velocity. (See Chapter 9, Displacement
Chapter 9, Displacement and Position Sensing.) and Position Sensing.)
Optical devices such as encoders are widely
used in linear and rotary position sensors. The
LINEARIZATION
possible configurations are many, but basically, Why Linearization Is Needed
their principle of operation is based on the The transfer function for many electronic
devices, which relates the input to output,
contains a nonlinear factor. In most cases this
Thermocouple Output Voltage
factor is small enough to be ignored. However,
80
E in some applications it must be compensated
either in hardware or software. Thermocouples,
60 for example, have a nonlinear relationship
K
Millivolts
40
J Seebeck Coefficient Plot
T
100
R
20 S
80
Seebeck Coefficient V/C
0
500 1000 1500 2000 2500
E
Temperature C T J
60
Linear region
TYPE METALS
+
E Chromel vs. Constantan 40
J Iron vs. Constantan K
K Chromel vs. Alumel
R Platinum vs. Platinum
20
13% Rhodium R
S Platinum vs. Platinum
10% Rhodium S
T Copper vs. Constantan 0
-500 0 500 1000 1500 2000
Fig. 5.29. Although some thermocouples must be Temperature C
both thermally and electrically connected to the
specimen under test, many may be purchased with
insulated junctions, which isolates them from mak- Fig. 5.30. The slope of the Seebeck coefficient plot-
ing high-voltage and ground-loop connections to the ted against temperature clearly illustrates that the
signal conditioner. thermocouple is a non-linear device.
Figure 5.30
from input temperature to output voltage, and an algorithm to solve a polynomial equation.
severe enough to require compensation. The equation describing this relationship is:
Figure 5.29 shows the output voltage for
EQN 5.05. Temperature Polynomial
several types of thermocouples plotted against
temperature. Thermocouple output voltages T = ao + a1x + a2x2 + a3x3 + ...anxn
are based on the Seebeck effect (discussed Where:
further in Chapter 6). When the slope of the T = temperature, C
Seebeck coefficient is plotted vs. temperature, x = thermocouple voltage, V
the output response is clearly nonlinear as a = polynomial coefficients unique to each
shown in Figure 5.30. A linear device, by type of thermocouple
comparison, would plot a straight horizontal n = maximum order of the polynomial
line. Only the K type thermocouple most
The accuracy increases proportionally to the
readily approaches a straight line in the range
order of n. For example, when n = 9, a 1C
from about 0 to 1,000C.
accuracy may be realized. But because high
The curve shows that one constant scale factor is order polynomials take time to process, lower
not sufficient over the entire temperature range orders may be used over limited temperature
for a particular thermocouple type to maintain ranges to increase the processing speed.
adequate accuracy. Higher accuracy comes from
reading the thermocouple voltage with a volt- Software Linearization
meter and applying it to the thermocouple table The polynomials are put to work in the data
from the National Institute of Standards and acquisition systems computer to calculate the
Technology as shown in Figure 5.31. real temperature for the thermocouple voltage.
A computer-based data acquisition system, in Typically, the computer program handles a
contrast, automates the temperature conversion nested polynomial to speed the process rather
process using the thermocouple voltage reading than compute the exponents directly. Nested
mV .00 .01 .02 .03 .04 .05 .06 .07 .08 .09 .10 mV
0.00 0.00 0.17 0.34 0.51 0.68 0.85 1.02 1.19 1.36 1.53 1.70 0.00
0.10 1.70 1.87 2.04 2.21 2.38 2.55 2.72 2.89 3.06 3.23 3.40 0.10
0.20 3.40 3.57 3.74 3.91 4.08 4.25 4.42 4.58 4.75 4.92 5.09 0.20
0.30 5.09 5.26 5.43 5.60 5.77 5.94 6.11 6.27 6.44 6.61 6.78 0.30
0.40 6.78 6.95 7.12 7.29 7.46 7.62 7.79 7.96 8.13 8.30 8.47 0.40
0.50 8.47 8.63 8.80 8.97 9.14 9.31 9.47 9.64 9.81 9.98 10.15 0.50
0.60 10.15 10.31 10.48 10.65 10.82 10.98 11.15 11.32 11.49 11.65 11.82 0.60
0.70 11.82 11.99 12.16 12.32 12.49 12.66 12.83 12.99 13.16 13.33 13.49 0.70
0.80 13.49 13.66 13.83 13.99 14.16 14.33 14.49 14.66 14.83 14.99 15.16 0.80
0.90 15.16 15.33 15.49 15.66 15.83 15.99 16.16 16.33 16.49 16.66 16.83 0.90
1.00 16.83 16.99 17.16 17.32 17.49 17.66 17.82 17.99 18.15 18.32 18.48 1.00
1.10 18.48 18.65 18.82 18.98 19.15 19.31 19.48 19.64 19.81 19.97 20.14 1.10
1.20 20.14 20.13 20.47 20.64 20.80 20.97 21.13 21.30 21.46 21.63 21.79 1.20
1.30 21.79 21.96 22.12 22.29 22.45 22.62 22.78 22.94 23.11 23.27 23.44 1.30
1.40 23.44 23.60 23.77 23.93 24.10 24.26 24.42 24.59 24.75 24.92 25.08 1.40
Fig. 5.31. Because thermocouple outputs are non-linear, a table is an accurate method for converting a voltage
reading to temperature for a specific type of thermocouple.
Figure 5.31
Measurement Computing (508) 946-5100 info@mccdaq.com mccdaq.com
62 CHAPTER 5 Fundamental Signal Conditioning
Fig. 5.32. The NIST polynomial table is a more accurate means of calculating a linearizing function for a
particular thermocouple than a single coefficient, even though it uses a polynomial equation.
Hardware Linearization
Temp
CIRCUIT PROTECTION the high voltage input stage from the solid-state
circuitry. (See Figure 5.34.)
Hazards to Instrumentation Circuits
Many data acquisition systems contain solid- Another consideration often overlooked is
state multiplexing circuits to rapidly scan connecting active inputs to an unpowered data
multiple input channels. Their inputs are acquisition system. Common safety practice
typically limited to less than 30 V and may be calls for all signals connected to the input of
damaged when exposed to higher voltages. the unpowered data acquisition system to be
Other solid-state devices in a measurement disconnected or their power removed.
system including input amplifiers and bias Frequently, de-energized data acquisition
sources also are limited to low voltages. However, system signal conditioners have substantially
these inputs can be protected with a programmable lower input impedances than when energized,
attenuator and isolation amplifiers that isolate and even low voltage input signals higher than
Isolation I/O
Ch 3
Inputs Gain
Isolation
Ch 4 config.
P
Isolation
Ch 5
15 +15 +5
Isolation
Ch 6
DC/DC DC/DC
Isolation 9-20
5 VDC Wide range VDC
Ch 7
To DC/DC converters regulator supply
in each channel
Isolation Bypass
amplifier
Low To
pass analog
Programmable filter mux
Input attenuator
and 2 2-bit opto-iso From
amplifier on-board
P
Isolated supply
+15 DC/DC
15 5 VDC
Fig. 5.34. The isolated voltage-input modules let data acquisition systems isolate several channels of analog
input, up to 500 V channel-to-channel and channel-to-system.
e 5.34
D1 Overload Protection
Circuit A +V
1 k Several methods are used to protect signal
Output conditioner inputs from damage when
Input A exposed to transients of 10 to 100 V. Often, a
signal +
1,000 , current-limiting resistor is in series
-V with the input when no voltage is applied to
D2 the instrument amplifiers input. For transient
Circuit B input voltages to 3,000 V and above, a series
2 k resistor and a transient voltage suppressor are
G installed across the input terminals. (See
Output
Input Figure 5.35.)
signal
FET A
D S +
ESD Protection
Electrostatic discharge damage is a special
problem that can be avoided by handling
Fig. 5.35. Certain CMOS multiplexers may be pro- individual circuit boards carefully and
tected against overvoltage destruction with diode providing proper shielding. ESD comes from
and resistor networks that shut down any parasitic the static charge accumulated on many
transistors in the device, limit the current input to
different kinds of materials, which finds a
a safe level, and shunt input signals to ground
return to ground or a mass that attracts the
when the power supplies are turned off (Circuit A).
JFET transistors also protect multiplexer inputs excess electrons. The charge can create poten-
when they are connected as diodes. The JFET tial differences that can eventually arc over
clamps at about 0.6 V, protecting the sensitive op large distances. An arc containing only several
amp input from destruction (Circuit B). microjoules of energy can destroy or damage
a semiconductor device. Grounding alone is
not sufficient to control ESD build up, it only
ensures all conductors are at the same poten-
tial. Controlling humidity to about 40% and
slightly ionizing the air are the most effective
methods of controlling static charge.
A discharge can travel one foot in onenanosec-
ond and could rise to 5 A. A number of devices
simulate conditions for static discharge protec-
tion, including a gun that generates pulses at a
fixed voltage and rate. Component testing usu-
ally begins with relatively low voltages and
gradually progresses to higher values.
Chapter 6
TEMPERATURE MEASUREMENT
Cu -Ni Cu -Ni
Constantan T1 Copper T2 Constantan
Measured
Reference environmental
temperature temperature
T1 Copper Copper Copper T2
0C (32F) Copper Copper -270C to +400C
(-454F to +752F)
Type T Open to Digital Voltmeter
measure DVM output proportional to the
voltage difference between T1 and T2
Fig. 6.01. A basic thermocouple measurement system requires two sensors, one for the environment under mea-
surement and the other, a reference junction, normally held to 0C (32F). Type-T is one of the dozen or more
common thermocouples frequently used in general-purpose temperature measuring applications. It is made of
copper and constantan metals and typically operates from 270 to +400C or 454 to +752F.
of both the temperature of the junction T1 and also copper) and outputs another emf that must
the temperature of the open end T1. T1 must be be compensated.
held at a constant temperature, such as 0C, to
ensure that the open end voltage changes in Cold-Junction Compensation
proportion to the temperature changes in T1. In A cold-reference-junction thermocouple
principle, a TC can be made from any two immersed in an actual ice-water bath and
dissimilar metals such as nickel and iron. In connected in series with the measuring
practice, however, only a few TC types have thermocouple is the classical method used to
become standard because their temperature compensate the emf at the instrument terminals.
coefficients are highly repeatable, they are (See Figure 6.03.) In this example, both copper
rugged, and they output relatively large voltages. leads connect to the instruments input
The most common thermocouple types are terminals. An alternative method uses a single
called J, K, T, and E, followed by N28, N14, S, R, thermocouple with the copper/constantan
and B. (See the table in Figure 6.02.) In theory, connection immersed in the reference ice water
the junction temperature can be inferred from bath, also represented in Figure 6.03. The
the Seebeck voltage by consulting standard constantan/copper thermocouple junction J2 in
tables. In practice, however, this voltage cannot the ice bath contributes a small emf that subtracts
be used directly because the thermocouple wire from the emf from thermocouple J1, so the
connection to the copper terminal at the voltage measured at the instrument or data
measurement device itself constitutes a acquisition system input terminals corresponds
thermocouple junction (unless the TC lead is accurately to the NIST tables. Likewise, the
Nickel-
E 10% Chromium Constantan Violet Red 0.71 58.5 0 1.7 to 4.4 -270 to 1000
J Iron Constantan White Red 0.36 50.2 0 1.1 to 2.9 -210 to 760
Nickel-
K 10% Chromium Nickel Yellow Red 0.59 39.4 0 1.1 to 2.9 -270 to 1372
Platinum-
S 10% Rhodium Platinum 0.19 10.3 600 1.4 to 3.8 -50 to 1768
* Material range is for 8 AWG wire; decreases with deceasing wire size
** Type B double-valued below 42C curve fit specified only above 130C
Fig. 6.02. NISTs (National Institute of Standards and Technology) thermocouple emf tables publish the emf out-
Figure
put of a6.02 (6.01 B) based on a corresponding reference thermocouple junction held at 0C.
thermocouple
Isothermal block
Copper
Copper Chromel
+
+ T1
V V1 Cu T2 J2 Fe
J1
Copper Alumel
Copper RH T1 J3 Cu
Type J
J3
Data Acquisition
System J2
Thermocouple
Reference input
ice-water bath card
Integrated temperature sensor
Fig. 6.07B. A typical input scanning module can accommodate up to 56 thermocouples of any type, and up to
896 channels can be connected to one analog-to-digital mainframe.
Figure 6.07B
Measurement Computing (508) 946-5100 info@mccdaq.com mccdaq.com
70 CHAPTER 6 Temperature Measurement
measured thermocouple output must be con- in each channel can reduce the interfering ac
verted to a temperature reading. Thermocouple line noise. Common filters include resistors
output is proportional to the temperature of the and capacitors and active filters built around op
TC junction, but is not perfectly linear over a amps. Although a passive RC filter is inexpensive
very wide range. (See Linearization, Chapter 5.) and works well for analog circuits, its not
recommended for a multiplexed front end
The standard method for obtaining high
because the multiplexers load can change the
conversion accuracy for any temperature uses
filters characteristics. On the other hand, an
the value of the measured thermocouple voltage active filter composed of an op amp and a few
plugged into a characteristic equation for that passive components works well, but its more
particular type thermocouple. The equation is a expensive and complex. Moreover, each
polynomial with an order of six to ten. The channel must be calibrated to compensate for
NIST table in Figure 5.32 (page 62) lists the gain and offset errors. (See Figure 6.08.)
polynomial coefficients for some common
thermocouples. The computer automatically
Passive Filters
handles the calculation, but high-order polyno-
mials take significant time to process. In order R1 R2
to accelerate the calculation, the thermocouple
characteristic curve is divided into several
segments. Each segment is then approximated Input C1 C2 C3 Output
by a lower order polynomial.
Analog circuits are employed occasionally to
linearize the curves, but when the polynomial Fig. 6.08A. Passive filters come in a variety of con-
method is not used, the thermocouple output figurations to suit the application. They are built in
frequently connects to the input of an ADC single or multiple sections to provide increasingly
where the correct voltage to temperature match steeper slopes for faster roll-off.
is obtained from a table stored in the computers
memory. For example, one data acquisition
system TC card includes a software driver that Active Filters
contains a temperature conversion library. It
Figure 6.08A (6.05 A) C
changes raw binary TC channels and CJC infor-
mation into temperature readings. Some soft- R1
ware packages for data acquisition systems supply Input
CJC information and automatically linearize the A Output
thermocouples connected to the system.
THERMOCOUPLE MEASUREMENT R2
PITFALLS
Noisy Environments
Because thermocouples generate a relatively
Fig. 6.08B. An active filter easily eliminates the
small voltage, noise is always an issue. The most common sources of electrical noise that com-
most common source of noise is the utility petes with the thermocouple signal such as the inter-
power lines (50 or 60 Hz). Because thermocouple ference from 50/60 Hz supply lines.
bandwidth is lower than 50 Hz, a simple filter
Rs T1 Rs
Auto-Zero Correction
Subtracting the output of a shorted channel
Virtual junction from the measurement channels readings can
Fig. 6.09. A short circuit or an insulation failure minimize the effects of time and temperature
between the leads of a thermocouple can form an drift on the systems analog circuitry. Although
unwanted, inadvertent thermocouple junction called extremely small, this drift can become a signif-
a virtual junction. icant part of the low-level voltage supplied by
a thermocouple.
6)
One effective method of subtracting the couple opens or significantly changes resistance,
offset due to drift is done in two steps. First, the capacitor charges and drives the input to one
the internal channel sequencer switches to a of the voltage rails, which indicates a defective
reference node and stores the offset error thermocouple. (See Figure 6.11.)
voltage on a capacitor. Next, as the thermo-
couple channel switches onto the analog Open Thermocouple Detector
path, the stored error voltage is applied to the
offset correction input of a differential ampli- One of 32 channels
fier and automatically nulls out the offset.
(See Figure 6.10.) +0.13 V
10 M
Auto-Zero Correction
To differential
TC 4700 pF amplifier
Differential amplifier
A A 10 M
Ch x To A/D MUX
switches
B B 0.13 V
Ch ground
Amplifier's A Open TC detection circuit
offset correction
MUX switches Fig. 6.11. The thermocouple provides a short-circuit
path for dc around the capacitor, preventing it from
Auto zero Sampling charging through the resistors. When the thermo-
phase phase
couple opens, due to rough handling or vibration, the
Control for "A" muxes
capacitor charges and drives the input amplifier to
Control for "B" muxes the power supply rails, signaling a failure.
A/D sample
Figure 6.11 (6.08) (4.07) Galvanic Action
Fig. 6.10. Auto-Zero Correction compensates for Some thermocouple insulating materials
analog circuitry drift over time and temperature. contain dyes that form an electrolyte in the
Although small, the offset could approach the presence of water. The electrolyte generates a
magnitude of the thermocouple signal. galvanic voltage between the leads, which in
5) turn, produces output signals hundreds of times
Open Thermocouple Detection greater than the net open-circuit voltage. Thus,
Detecting open thermocouples easily and good installation practice calls for shielding the
quickly is especially critical in systems with thermocouple wires from high humidity and all
numerous channels. Thermocouples tend to liquids to avoid such problems.
break or increase resistance when exposed to Thermal Shunting
vibration, poor handling, and long service time. An ideal thermocouple does not affect the
A simple open-thermocouple detection circuit temperature of the device being measured, but
comprises a small capacitor placed across the a real thermocouple has mass that when
thermocouple leads and driven with a low-level added to the device under test can alter the
current. The low impedance of the intact ther- temperature measurement. Thermocouple
mocouple presents a virtual short circuit to the mass can be minimized with small diameter
capacitor so it cannot charge. When a thermo- wires, but smaller wire is more susceptible to
RL = Line resistance
Figure 6.12 shows a basic two-wire resistance Three-Wire RTD With Current Source
measurement method. The RTD resistance is RL Va S1 High impedance
voltmeter or
measured directly from the Ohmmeter. But Irtd
Figure 6.03
this connection is rarely used since the lead Constant
DAQ input
current
wire resistance and temperature coefficient Vm
must be known. Often, both properties are not RTD A To
ADC
known, nor are they convenient to measure
RL Vb S2
when setting up a test.
Figure 6.13 shows a basic four-wire measure- RL MUX
ment method using a current source. The RTD switches
resistance is V/A. This connection is more RL = Line resistance
accurate than the two-wire method, but it
Fig. 6.14. The three-wire RTD method with a cur-
requires a high stability current source and
rent supply is similar to the four-wire method. It
four lead wires. Because the high-impedance simply eliminates one additional wire. Measure Va
voltmeter does not draw appreciable current, first, then measure Vb.
the voltage across the RDT equals Vm.
Va and Vb represent two voltages measured by Figure 6.16 shows a three-wire measurement
the high-impedance voltmeter in sequence technique using a voltage source. The RTD
through switches (or a MUX), S1 and S2. The resistance is derived from Kirchhoffs voltage
RTD resistance is derived from Kirchhoffs law and three simultaneous equations. The
voltage law and by solving two simultaneous voltage source can vary as long as the sense
equations. (Illustrating the solution is beyond resistor remains stable, and the circuit is accu-
the scope of this book.) The benefit of this rate as long as the resistances of the two
connection over that shown in Figure 6.13 is current-carrying wires are the same.
one less lead wire. However, this connection
assumes that the two current-carrying wires Three-Wire RTD With Voltage Source
have the same resistance. V1000 RTD
Constant
Equation 6.04. 3-Wire RTD With Current Source voltage A V500 RTD
source
(Va Vb) V100 RTD
R rtd = RL Va
I rtd Irtd High impedance
S1 voltmeter or
RL Vb DAQ input
Figure 6.15 shows a four-wire measurement
S2 Vm
system using a voltage source. The RTD resis- RTD A To
Not Vc ADC
tance also is derived from Kirchhoffs voltage
used S3
law and four simultaneous equations based on RL Vd
the four voltages, Va through Vd. The voltage
S4 MUX
source in this circuit can vary somewhat as switches
Rs Precision
long as the sense resistor remains stable. resistor
RL = Line resistance
Equation 6.07
An alternative method involves measuring A typical value for self-heating error is 1C/
RTD resistances at four temperatures and mW in free air. An RTD immersed in a ther-
solving a 20th order polynomial equation mally conductive medium distributes this heat
with these values. It provides more precise to the medium and the resulting error is
data than does the , , and coefficients in smaller. The same RTD rises 0.1C/mW in air
the Callendar-Van Dusen equation. The plot flowing at one m/s. Using the minimum exci-
of the polynomial equation in Figure 6.17 tation current that provides the desired resolu-
shows the RTD to be more linear than the tion, and using the largest physically practical
thermocouple when used below 800C, the RTD will help reduce self-heating errors.
maximum temperature for RTDs.
Scanning Inputs
Type S Thermocouple vs. Platinum RTD Because lower currents generate less heat,
currents between 100 and 500 A are typi-
cally used. This lowers the power dissipation
to 10 to 25 W, which most applications
Resistance temperature
.390
.344 lowers accuracy because they become more
8 .293
susceptible to noise and are more difficult to
measure. But switching the current on only
4
when the measurement is made can reduce
the RTDs heat to below 10 W. In a multi-
0 200 400 600 800 channel system, for example, the excitation
Temperature, C
current can be multiplexed, much like the
Equivalent linearities type S thermocouple
Platinum RTD
analog inputs. In a 16-channel system, the
Self-Heating MUX Ch x +1
Another source of error in RTD measurements switches
is resistive heating. The current, I, passing
through the RTD sensor, R, dissipates power,
RTD
P = I2R. For example, 1 mA through a 100
RTD generates 100 W. This may seem insig-
nificant, but it can raise the temperature of 24 Channels
some RTDs a significant fraction of a degree. A
Fig. 6.18. The constant-current source is sequen-
typical RTD can change 1C/mW by self-
tially switched among the various RTD sensors to
heating. When selecting smaller RTDs for keep them cooler over the measurement interval and
faster response times, consider that they also prevent resistive-heating errors.
can have larger self-heating errors.
Figure 6.18 (6.15)
current will only excite each RTD 1/16th of noise immunity. But the disadvantage is the
the time, reducing the power delivered to high cost of buying or building an extremely
each RTD from 100% to only 6%. stable constant current source.
Two practical methods for scanning an RTD By contrast, the ratiometric method uses a
include constant current and ratiometric. constant voltage source to provide a current,
An example of a constant current circuit is Is, through the RTD and a resistor, Rd. Four
shown in Figure 6.18. Its an RTD scanning voltage readings are taken for each RTD
module, which switches a single 500 A channel, Va, Vb, Vc, and Vd. (See Figure 6.19.)
constant current source among 16 channels. The current, voltage, and resistance of the
A series of front-end multiplexers direct the RTD is:
current to each channel sequentially while
Equation 6.08. 4-Wire RTD Ratiometric Measurement
the measurement is being taken. Both three
and four wire connections are supported to Vd
Is =
accommodate both types of RTDs. By Rd
applying current to one RTD at a time, V rtd = V b V c
errors due to resistive heating become V rtd
negligible. Advantages of the constant R rtd =
Is
current method include simple circuits and
For a three-wire connection (Figure6.20), the
Ratiometric Four-Wire RTD voltage, Va Vc, includes the voltage drop
across only one lead. Because the two exten-
Constant sion wires to the transducer are made of the
voltage
same metal, assume that the drop in the first
V1000 RTD wire is equal to the drop in the second wire.
Figure
IS 6.08 A V500 RTD Therefore, the voltage across the RTD and its
resistance is:
V100 RTD
Equation 6.09. 3-Wire RTD Ratiometric Measurement
Va High impedance
voltmeter or V rtd = V a 2(V a V b ) V d
RL DAQ input
( )
Vb V rtd
R rtd = R d V
RTD A d
Vc
RL Vd Practical Precautions
RTDs require the same precautions that apply
IS MUX
Rd Precision switches to thermocouples, including using shields and
resistor
twisted-pair wire, proper sheathing, avoiding
stress and steep gradients, and using large
diameter extension wire. In addition, the RTD
Fig. 6.19. Four voltage readings are taken for
is more fragile than the thermocouple and
each RTD channel. The precision resistor mea-
sures Is, the RTD current; Vb and Vc measure the needs to be protected during use. Also, thermal
RTD voltage; and the RTD resistance equals shunting is a bigger concern for RTDs than for
(Vb Vc)/Is. Figure 6.09 thermocouples because the mass of the RTD is
generally much larger. (See Figure 6.21.)
Equation 6.11. Thermistor Voltage Divider For the resistance mode, see Figure 6.23.
R EOUT
(Negative slope)
T1 T2
R1 R RL
Load
Temperature-measuring resistance
thermistors T1 T2
selector
Vs switch
Vs
Source
A RT3 A
R3
R3 R2 R2
Source
Null meter or input to Null meter or input to
data acquisition system data acquisition system
Fig. 6.24. An accurate temperature sensor can be fashioned from a thermistor in one leg of a bridge circuit. Lead
length is not significant; so several sensors may be switched in and out of a single monitor without losing accuracy.
Two thermistors make a differential thermometer that can be used for measuring temperature changes along a
piping system or between various elevations in a building to balance the heating and air conditioning unit.
Figure 6.24 B
Chapter 7
STRAIN MEASUREMENTS
Full-Bridge Circuit
R1 R3
+ R1
R4 Motion
+
Vexc VOUT
R2
R3
R2 R4
Fig. 7.01. The full-bridge circuit provides the largest output with minimum errors. All four arms of the bridge are
active; two are in tension while the two on the opposite side are in compression.
four resistors in the bridge are absolutely Two gages are mounted on the surface under
equal, the bridge is perfectly balanced and tension and the other two are mounted on
Vout = 0. But when any one or more of the the opposite surface under compression. As
resistors change value by only a fractional the member deflects, the two gages in tension
amount, the bridge produces a significant, increase in resistance while the other two
measurable voltage. When used with an decrease, unbalancing the bridge and
instrument, a strain gage replaces one or more producing an output proportional to the
of the resistors in the bridge, and as the strain displacement. The bridge output voltage is
gage undergoes dimensional changes (because given by:
it is bonded to a test specimen), it unbalances
EQN: 7.01. Full-Bridge Output Voltage
the bridge and produces an output voltage
proportional to the strain. Vo = (Vex)(X)
Where:
Full-Bridge Circuits Vo = bridge output voltage, V
Although half-bridge and quarter bridge Vex = excitation voltage applied to the
circuits are often used, the full bridge circuit is bridge, V
the optimal configuration for strain gages. It X = relative change in resistance, R/R
provides the highest sensitivity and the fewest
error components, and because the full bridge The bridge nulls out potential error factors
produces the highest output, noise is a less such as temperature changes because all four
significant factor in the measurement. For strain gages have the same temperature coef-
these reasons, the full bridge is recommended
ficient and are located in close proximity on
when possible.
the specimen. The resistance of the lead wire
A full bridge contains four strain gages does not affect the accuracy of the measure-
mounted on a test member. (See Figure 7.01.) ment as long as the input amplifier has high
Half-Bridge Circuit
Bridge Strain
completion resistors gages
R3 R1
+ R1 Motion
+
Vexc VOUT R2
R4 R2
Fig. 7.02. In a half-bridge circuit, only two arms are active. Two strain gages are on the specimen while the two
fixed resistors that complete the bridge are not.
input impedance. For example, an amplifier coefficients among bridge completion resis-
with a 100 M input impedance produces tors and strain gages are different and the
negligible current flow through the measure- resistances do not change proportionally
ment leads, minimizing voltage drops due to with temperature. Furthermore, bridge
lead resistance. completion resistors are not usually located
near the strain gages, so temperature differ-
Half-Bridge Circuits ences contribute additional errors. In systems
When physical conditions do not allow with long lead wires, the bridge completion
mounting a full-bridge gage, a half bridge might resistors should be attached close to the
fit. Typically, two strain gages are mounted on a gages, but this may not always be practical
test member, and two discrete resistors complete due to test fixture limitations or other
the bridge. The output voltage is: physical conditions.
EQN. 7.02. Half-Bridge Output Voltage
Quarter-Bridge Circuits
Vo = Vex (X/2) A quarter-bridge circuit uses one strain gage
Where: and three bridge completion resistors. The
Vo = bridge output voltage, V output voltage is:
Vex = excitation voltage applied to the
EQN. 7.03. Quarter-Bridge Output Voltage
bridge, V
X = relative change in resistance, R/R Vo = Vex (X/4)
Where:
For a large R, half bridge and quarter-bridge Vo = bridge output voltage, V
circuits can introduce an additional nonlin- Vex = excitation voltage applied to the
earity error. (See Figure 7.02). Also, the read- bridge, V
ings are not accurate when the temperature X = relative change in resistance, R/R
Quarter-Bridge Circuit
Bridge Strain
completion resistors gages
R3 R1
+ R1 Motion
+
Vexc VOUT
R4
R2
Fig. 7.03. A quarter-bridge circuit uses only one active arm and is the least sensitive of the three types. It is also
the most prone to noise and errors.
This arrangement has the smallest output, so Consider a Kelvin connection for applying the
noise is a potential problem. Furthermore, all excitation voltage. Because the excitation
the error sources and limitations in the half- leads carry a small current, they drop a corre-
bridge apply to the quarter bridge circuit. (See spondingly small voltage; V = I/RL, which
Figure 7.03.) reduces the voltage reaching the bridge termi-
nals. As illustrated in Figure 7.04, Kelvin
Excitation Source connections eliminate this drop with a pair of
Accurate measurements depend on a stable, leads added at the excitation terminals to
regulated, and low-noise excitation source. A measure and regulate the bridge voltage. For
regulated source is necessary because the example, when ie = 50 mA, RL = 5 , and the
output voltage of a strain gage is also propor- combined voltage drop in the two leads is
tional to the excitation voltage. Therefore, 500mV, no voltage drops in the sense wires.
fluctuations in the excitation voltage produce
inaccurate output voltages. Kelvin Strain-Gage Bridge Circuit
An ideal data acquisition system provides an RL i0
excitation source for each channel, indepen- RL
dently adjustable from 0.5 to 10.5 V with a ie
current limit of 100 mA. An excitation R1 R4
voltage, V, used with a strain gage of resis-
RL i0
tance, R, requires a current of I = V/R. The
resistance of a Wheatstone bridge measured +
+
+ Vsense
between any two symmetrical terminals R2 R3 Vout Vexc
equals the value of one of the resistance arms.
For example, four 350 arms make a 350 RL
bridge. The load current equals the excitation RL ie
voltage divided by the bridge resistance; in
RL
this case, 10V/350 = 0.029 A = 29 mA.
Heating Fig. 7.04. The Kelvin bridge circuit uses one pair
of wires to provide the excitation voltage directly at
Resistive heating in strain gages also should be
the bridge, and another to sense the excitation
considered because the gages respond to voltage. A third pair of wires measures the bridge
temperature as well as stress. In most standard
Figure 7.04 (5.04) output voltage. This arrangement removes the
circuits, the heat that each gage dissipates is voltage-drop error in the excitation wires from the
less than 100 mW, so its usually not a measured strain signal.
problem. This is especially true when the
strain gage is bonded to a material that A commercial unit uses a Kelvin connection to
conducts heat quickly, such as metal. However, measure and regulate the voltage at the bridge.
because materials such as wood, plastic, or It supplies the voltage to the strain gage with
glass do not conduct heat away as rapidly, use one pair of leads and measures it with another
the lowest excitation voltage possible without pair as shown in Figure 7.05. The six wires are
introducing noise problems. Also, heat can used in pairs for Sense, Excite, and Measure.
become a problem when the strain gages are The Sense lead is a feedback loop to ensure
uncommonly small, or numerous gages occupy that the Excite voltage is constantly held
a limited space. within specifications.
+Sense
6
+Exc
5
Excitation
Exc Regulator Exc. Adj.
Optional Sense
Bridge
Completion Bypass
Resistors Input Gain Adj. Scale Gain Adj.
Bypass
4 +
To
A LPF A A/D
3
R1 R2 Offset
Adj.
Shunt
Cal.
2
1
Typical of 8 channels
Fig. 7.05. A commercial strain gage module provides adjustable excitation, gain, and offset for each channel.
This lets it make use of the instruments entire dynamic range.
An excitation adjustment lets users set the For example, a 350 , 2 mV/V strain gage delivers
excitation voltage to the maximum allowed by full output when one leg drops by 0.8% to
the manufacturer, which maximizes the bridges 347.2 . A 43.75 k resistor shunted across one
output. Also, the offset adjustment lets users or the other lower bridge elements swings the
zero the output offset produced by either a small output to full positive or full negative.
bridge imbalance or a quiescent deformation of
An equation for calculating the shunt calibra-
the mechanical member. And the gain
tion resistor value is:
adjustment lets users set a gain that provides a
full-scale output under maximum load, which EQN. 7.05. Shunt Calibration Resistor for Transducers
optimizes the dynamic range of the ADC. Rs = Rba[Vex/4(Vo)]
Rs = 350[10/4(0.020)] = 43.75 k
CALIBRATION APPROACHES Where:
The signal-conditioning module also typically Rs = shunt resistor,
provides a shunt calibration feature. (See Figure Rba = bridge arm resistor,
7.07.) It lets users switch their own shunt resistors Rs >> Rba
into either one of the two lower legs of the bridge Vex = excitation voltage, V
under software control. For example, a shunt Vo = bridge output voltage, V
resistor can be calculated to simulate a full load.
Applying a shunt resistor is a convenient way Many products include calibration software
to simulate an imbalance without having to with a Windows-based program that provides
apply a physical load. For any balanced bridge, several calibration methods, online instruc-
a specific resistor can be connected in parallel tion, and a diagnostic screen for testing the
with one of the four bridge elements to obtain calibrated system.
a predictable imbalance and output voltage.
APPLICATIONS
Shunt Bridge Circuit Transducers and Load Cells
Strain gages are commercially available in prefab-
+10 V
ricated modules such as load cells that measure
Ron
force, tension, compression, and torque. Load
350 350 cells typically use a full-bridge configuration and
contain four leads for bridge excitation and
(+) measurement. The manufacturers provide cali-
bration and accuracy information.
350
Rs =
43.75 k 350
Voltage 20 mV Strain Diaphragm Pressure Gages
when shunted A strained-diaphragm pressure gage consists of
Close RTN
two or four strain gages mounted on a thin
to shunt diaphragm. The gages are wired in a
()
Wheatstone bridge circuit, including bridge
completion resistors when needed, so the pres-
Fig. 7.07. A bridge may be calibrated with a shunt sure gage is electrically equivalent to a load
resistor, which is switched with a software command cell. The output voltage is specified in mV/V of
into either one of the two lower legs.
excitation for a full-scale pressure differential
across the diaphragm.
When one side of the diaphragm (called the must contain temperature compensation circuits
reference pressure side) is open to the ambient to maintain accurate pressure measurements in
atmosphere, the gage compares the inlet pres- environments with widely varying temperatures.
sure to the ambient pressure, which is about
All strained-diaphragm pressure gages require a
14.7 psi at sea level. When the gage measures
regulated excitation source. Some gages contain
ambient pressure, the reference chamber must
internal regulators, so users can connect an
be sealed with either a vacuum reference (near
unregulated voltage from a power supply. Some
zero psi) or the sea-level reference.
strained-diaphragm pressure gages also employ
Temperature variations can affect the accuracy internal signal conditioning, which amplifies
of these gages. A pressure gage with a sealed non- the mV signal output of the Wheatstone bridge
zero reference pressure exhibits temperature to a full-scale voltage from 5 to 10 V. Gages of
variations consistent with the ideal gas law. For this type have low-impedance outputs. In
example, a 5C change in ambient temperature contrast, other pressure gages have no internal
near normal room temp (25C) produces an signal conditioning so their output impedance
error of 1.7% in the pressure measurement. equals the Wheatstone bridge resistance (several
Temperature variations can also affect the perfor- k for semiconductor types), and their full-scale
mance of the strain gages themselves. Transducers output is in mV.
Chapter 8
VIBRATION AND SOUND
102 1.25
Q=105
Amplitude
101 1.20
1.15
100
Q=1 1.10
10-1 1.05
0.0 0.5 1.0 1.5 2.0 Q=1
1.00
/0
Fig. 8.01. An undamped accelerometer can have a 0.95
0.0 0.1 0.2 0.3 0.4 0.5
high Q at its resonant frequency, which produces
large oscillations and completely overrides the
/0
acceleration signal. Also, if large enough, resonant Fig. 8.02. The low frequency portion of the signal
oscillations can destroy the accelerometer. shown in Figure 8.01 is magnified to show its response.
.08)
Most strain gages in accelerometers are wired time varying charge, Q(t). The charge is
in Wheatstone bridge circuits. Signal condi- proportional to the force on the crystal and is
tioners for a common strain-gage bridge also usually measured with either a voltage or
apply to this type of transducer since it charge amplifier.
resembles a strain-gage circuit in a load cell.
Voltage Amplifier
Piezoelectric Transducers In Figure 8.03, the voltage amplifiers gain is 1.
Piezoelectric materials also are used in acceler- Adding feedback resistors or increasing the
ometers and microphones. They generate elec- number of amplifier stages changes the gain.
trical charges on opposite faces of the crystal The amplifier converts the high-impedance
under dynamic mechanical forces including voltage input to a low-impedance voltage
compression, tension, and twisting. A variety output. The voltage is Q/C, where Q is the
of transducers, such as microphones use piezo- charge in coulombs, and the C is the capaci-
electric elements to convert sound energy tance in Farads, which includes both the
picked up by a diaphragm into electrical sensor and the lead capacitance. When cali-
signals. Conversely, sonic transducers use brating a charge amplifier, the cable capaci-
piezoelectric elements to convert electrical tance is part of the charge equation, so
signals into sound energy. Quartz is one of the replacing the cable without recalibration can
most common materials applied in piezoelec- change the instruments output accuracy.
tric transducers and are readily available. Charge Amplifier
Another common material is a piezoceramic The charge amplifier shown in Figure 8.03 is
material, composed of lead, zirconate, and extremely versatile because its output voltage
titinate (PZT). is V = Q/C where Q is the charge, and C is the
From an electrical viewpoint, a piezoelectric feedback capacitance. When the operational
device resembles a capacitor containing a amplifier has an extremely large open-loop
gain, the output voltage is independent of the
Piezoelectric Voltage and Charge cable capacitance. This lets the amplifier work
Amplifier well even when its located several meters
Voltage amplifier away from the sensor. However, because
+ electrical noise increases in proportion to
A
PZT C R Piezoelectric Sensor and Amplifier
BNC
AV
C R
PZT
Sensor
+
A
Charge amplifier
cable length, noise susceptibility determines connect a supply to the power terminals and the
the maximum permissible cable length more output to a voltmeter circuit. The voltage is then
than does device sensitivity. The charge scaled to the measured engineering units.
amplifier doubles as a high-pass filter with The most common application for piezoelec-
lower corner frequency f = 1/(2RC), but this tric-type accelerometers is in measuring a
represents a trade-off between sensitivity and wide range of accelerations and mechanical
frequency response. Decreasing C increases vibrations. They monitor automobile decel-
sensitivity, but it also increases the lower eration (and deploy the air bag at the correct
corner frequency. millisecond) in safety systems, lift-off accel-
PZT-type sensors cant make static measure- eration and motion during space-shuttle
ments because of their leakage resistance and missions, and mechanical vibration in
high output impedance, which ranges from 1010 numerous machines. Piezoelectric sensors,
to 1012 . Such leakage resistance combined however, cannot measure constant accelera-
with a capacitance of several hundred pF, yields tion as do strain-gage sensors.
a time constant of a few seconds. Low-impedance piezoelectric transducers also
measure pressure or force. The accelerometer
Low-Impedance Transducers circuit requires only two wires to handle both
Most modern piezoelectric transducers contain power and signals. Due to the sensors low
integrated signal conditioning amplifiers. (See impedance, the system is not normally sensi-
Figure 8.04.) Also known as integrated-circuit tive to externally introduced or triboelectric-
piezoelectric transducers, these units have a low cable noise or cable length. Piezoelectric
impedance output and require an external power sensors have resonant frequencies as high as
supply. The manufacturer usually specifies their 120 kHz giving them a usable frequency range
sensitivity and frequency range. Users need only of less than 1 Hz to more than 40 kHz.
2 mA Programmable
clock
Current
source
Transducer 4 mA
Micro Control
controller lines
Fig. 8.05. A piezoelectric accelerometer with a built-in MOSFET amplifier stage drives a programmable gain
amplifier on a dynamic signal input card. The 2 or 4 mA current source powers the MOSFET.
Constant-Current Source
iL
R R1 R4
Load
+
A
VREF +
A R2 R3
+
VREF R3 R4 VREF
Load
Fig. 8.06. A constant current source provides a source-gate bias for the field-effect transistor in the accelerom-
eter. Depending on the specific FET circuit, a constant-current source may be configured for either a floating
load or a grounded load.
Along with programmable amplifiers, program- primary concerns. As the bandwidth increases,
mable low-pass filters reject unwanted high- the noise can increase as well. Low-pass filters
frequency signals. The signals typically come also should be used in most accelerometer con-
from noise or high-frequency vibrations that ditioning circuits to reduce noise and aliasing
do not relate to the application. When develop- effects. The cutoff frequency of the low-pass
ing the front-end circuitry for this type of mea- filter should be close to the systems maximum
surement, noise rejection and bandwidth are useful operating frequency.
Chapter 9
DISPLACEMENT AND POSITION SENSING
S1 Primary
LVDT excitation
P Sec. 1
output
S2
Core motion Sec. 2
output
Sec. 1 +
Sec. 2
Zero output at null
Winding Positions
Figure 9.02 C
Secondary 1 Secondary 2
Fig. 9.02. LVDT sensors provide distance and direction information with extremely high accuracy. But a draw-
back for some installations is their relatively long length. The minimum length of the sensor is its body, and
the core can extend only as far as the length of the body.
LVDTs require electronic circuits to provide an magnet, integral sensing and output signal
ac signal to excite the primary and a demodu- conditioning circuits, a sensor tube, and a
lator to convert the output to a dc signal with wave-guide element. The permanent magnet
directional polarity. Some LVDTs contain the fastens to the movable object, and the housing
electronics onboard and only require power to remains attached to a stationary reference
obtain an output, while others require sepa- point. (See Figure 9.03.)
rate signal conditioners or modules. The LVDTs The output signal conditioning circuit gener-
themselves are rugged devices and have a ates a current pulse and magnetic field which
MTBF of as much as 3 million hours. The main travel down the waveguide. When the trans-
limitation is the displacement range of the mitted field reaches the permanent magnet
core to ensure high linearity. field, the combination induces a strain pulse
in the magnetostrictive tube. The strain pulse,
Magnetostrictive Position Sensor in turn, travels down the waveguide to the
Another relatively new type of position sensor head of the sensor where it is detected. The
is based on the theory of operation of the time measured between the application of the
interaction of two magnetic fields on magne- interrogation pulse and the arrival of the
tostrictive materials. The major components strain pulse determines the precise, absolute
of the sensor include an external permanent distance between the movable magnet and the
Pulse
output
End cap
Magnetic field
generated by
position magnet
Wave guide
Strain pulse Movable position magnet
detector
Distance
Fig. 9.03. Magnetostrictive position sensors have a high signal-to-noise ratio, shock and vibration resistance,
and accuracy. They are rugged devices that deliver from 30 to 400 mV signals at their output terminals and
require little or no additional signal conditioning. A possible disadvantage for some applications, however, is
its wave-guide, which must be at least as long as the measured stroke.
igure 9.03
Measurement Computing (508) 946-5100 info@mccdaq.com mccdaq.com
98 CHAPTER 9 Displacement and Position Sensing
Stationary plate
number 2 (180 out of
phase with number 1)
Lens
Encoder
Light
source Adjustable springloaded mount
Light to accommodate runout
rays
Alternating opaque and transparent
lines interrupt light from source to sensors Fig. 9.05. A rack and pinion sensor assembly should
Fig. 9.04. Two-channel encoders provide step and have a flexible mount to compensate the combined
direction vectors with an output signal that can be a runout error. In a machine application, the sensor
sinewave, squarewave, or a series of equally spaced should be protected from metal chips and other foreign
pulses generated at regular intervals on the waveform. objects to ensure measurement accuracy.
Figure 9.05
Reticle
Collimated light
Signal and
power
Fig. 9.07. The shutter is one of the most critical components of the encoder assembly. The sensors resolution
and accuracy hinge on the quality of the vendors manufacturing and assembly processes.
Figure 9.07
Measurement Computing (508) 946-5100 info@mccdaq.com mccdaq.com
100 CHAPTER 9 Displacement and Position Sensing
Chapter 10
NOISEREDUCTIONANDISOLATION
Static Crosstalk
Bypassed Ground Loop
Consider a group of static channels with steady
voltages, that when measured individually,
Sensor
yield accurate readings. However, when each
150 mV channel is connected to an input of the data
30 mA
+ acquisition system and the readings change,
the change indicates that crosstalk is generated
+
by a steady-state ground loop. Likewise, when
Vout = Vin = ES
A the reading of a channel changes by connecting
2.50 V 2.50 V
another channel, crosstalk exists and the
problem is a ground loop.
RL
+
30 mA Dynamic Crosstalk
150 mV
Dynamic crosstalk is the name given to the
500 ft
situation where a known dynamic signal on a
particular channel appears in a physically unre-
Fig. 10.04. A separate wire run from the sensor lated channel. The steady-state currents drawn
ground (or common terminal) bypasses the power by the transducers discussed in the previous
supply ground wire voltage drop. The true output example are idealized for simplicity. These
signal of the sensor (Vout) reaches the amplifier input currents commonly vary with the measured
terminals because the input draws negligible current. physical variables along with the errors.
Sequentially reading signals of widely varying
magnitudes produce sequential crosstalk in
voltage that can be measured accurately with a multiplexed data acquisition systems.
high degree of confidence. This approach is Capacitive or inductive coupling between
most effective when the system supports three channels generates crosstalk in systems with
wires, and they share a common power supply. improperly or carelessly dressed wires.
Differential input connections used with the Generally, however, these are not attributed to
analog common, which is referenced to the ground loops and are less common.
power supply return terminal, eliminates the
effect of the ground loops inherent in this SHIELDED WIRING
multiple-sensor arrangement.
Benefits
CROSSTALK IN DATA ACQUISITION Metallic shields placed around equipment and
SYSTEMS test leads effectively prevent noise from either
Another type of ground-loop error is crosstalk entering or leaving the system. For example,
loose or exposed wires become antennas for
between channels. This may be defined as an
radio frequency signal pickup, and can form
interaction between readings on two or more
loops that radiate noise.
channels, which may be static or dynamic.
When multiple channels are used and ground To emphasize the need for controlling noise,
loops exist, the simplified errors described Figure 10.05 shows a single-ended voltage mea-
previously most likely will be compounded by surement on a shorted channel. Approximately
contributions from other channels. The crosstalk 6 feet of wire, not twisted or shielded, was
may or may not be obvious. attached to the data acquisition system. Figure
Volts
0.00E+00
commonly used in a channel to connect a -1.00E-03
signal from a source to an input terminal. -2.00E-03
Shields minimize capacitive coupling and -3.00E-03
twisted wires minimize inductive coupling. -4.00E-03
-5.00E-03
Proximity to other wires, especially power 0 0.05 0.1 0.15 0.2 0.25
wires carrying high voltages and high currents Time [seconds]
can couple noise into low-level signal conduc-
tors. Capacitive coupling can exist between Fig. 10.06. Shielded wires reduce electrical noise
pick up at the input of single-ended amplifier
any two pieces of metal in close proximity,
input terminals, but other techniques often are
including two conductors in totally separate more effective.
circuits. Likewise, air-core transformer coupling
can crop up between two closed wiring loops
Figure 10.06 (7.02) Proper Installation and Use of Shields
in totally separate circuits.
Typically, a shield terminates at one end only,
Single-ended Measurement: unless it extends to the shield in another span
of the same channel wiring. The shield can
Unprotected Wires
terminate at either the transducer end or the
5.00E-03 input channel end, but not both. When the
4.00E-03 sensor or transducer is in a shielded metallic
3.00E-03 enclosure, which is also connected to earth
2.00E-03 ground, the shield may be connected at the
1.00E-03 sensor end and remain open at the input
Volts
ISOLATION AND FLOATING DATA analog inputs of plug-in cards and most
ACQUISITION SYSTEMS economical external systems are not electri-
cally isolated from earth ground or each
Isolation other. Many applications are compatible with
Isolation is defined as the separation of one this situation, but some applications face a
signal from another to prevent unintentional problem with high common-mode voltage.
interaction between them. All multiplexed
data acquisition systems contain a certain Rejection of High Common-Mode Voltage
degree of channel-to-channel isolation; relay- Common-mode input voltage is defined as
based systems have galvanic isolation while the voltage applied between the common
solid-state systems do not. Galvanic isolation terminal and the two input terminals with
is the absence of any dc path. Most isolation the condition that the two input voltages be
methods eliminate all dc paths below 100M. identical. In other words, the two input
Three major benefits of galvanic isolation are terminals may be connected together and the
circuit protection, noise reduction, and high common-mode voltage applied between the
common-mode voltage rejection, especially shorted inputs and the common terminal as
those developed by ground loops. shown in Figure 10.07. In a practical test and
Computer-based data acquisition equipment measurement situation, the common-mode
makes possible an array of multiple channel voltage may exceed the instrument amplifi-
measurements previously beyond the ers input rating, which is typically less than
economic reach of many applications. This 10 V. For safe and accurate measurements,
has been accomplished by user acceptance of common-mode voltages higher than 10 V
two major compromises, multiplexing and must be isolated from the instrumentation
non-isolated inputs. Multiplexing is successful amplifier while allowing the measured signal
when the sampling rate is adequately high to pass. Common types of isolation ampli-
and the source impedances are sufficiently fiers use magnetic, optical, or capacitive
low. Lack of isolation places an entirely means to couple the signal.
different kind of limitation on the type of Magnetic Isolation
input signals that can be connected. Special instrument amplifiers use trans-
formers that magnetically couple analog-type
Circuit Protection ac signals from the input section to the
Isolation separates the signal source from the output section while effectively sustaining
measurement circuitry that could be damaged high common-mode voltages. Transformer
by the signal. Voltages higher than about coupling also lets them provide isolated
10V can distort data or damage components power to the input stage without using a
used in the system. High-voltage input signals
separate dc/dc converter. A particular instru-
or signals containing high-voltage spikes
ment amplifier contains an input op amp
should therefore be isolated. The protection
with a CMRR of about 130 dB at a gain of
also works in the opposite direction to safe-
100, and 2000 V peak common mode voltage
guard a sensitive signal conditioner from a
isolation. Similar instrumentation amplifiers
device failing elsewhere in the system.
are available for powering isolated bridges,
Computer-based data acquisition equipment cold junction compensation, linearization,
is most often connected to a host computer, and other special signal-conditioning require-
which is connected to earth ground. The ments. (See Figure 10.08.)
Input Output
IN Signal Demodulator
IN+ A Modulator HI
+
Shunt VOUT = 5 V
VRS= 5 V
LO
IN COM
+
Power
+Viso Out
Rectifier Oscillator +15 V DC
Viso Out & filter
Power return
Fig. 10.08. This instrumentation amplifier with transformer coupling is typically used in an industrial process control
loop and provides galvanic isolation in both input and output circuits. It can measure a 5 Vdc signal riding on a
common-mode voltage as high as 2000 V.
to a low voltage signal in an ac-powered The most common analog isolators are plug-in
device. The preferred isolation transformer for modules. These 3-port devices require a dc power
such use has a grounded electrostatic shield supply and provide operating voltages for signal
between the primary and secondary windings conditioning and modulation circuitry on the
to minimize capacitive coupling and poten- input side. They also provide voltage for demod-
tials with respect to earth ground. This ulation and signal reconstruction circuits on the
approach works only when the ac neutral in output side. Most devices also provide inherent
the electrical system is grounded to earth. low-pass filtering and scaling to 0 to 5 V output
Isolation transformers cannot interrupt the levels. The wide array of available options in
path for the safety ground carried by the these modules can simplify many complex
ground prong of a standard 3-wire cord. measurement requirements and still provide data
to the overall data acquisition system of choice,
A laptop computer running on an internal
as all data acquisition manufacturers have prod-
battery and not connected to other peripherals
ucts that accept these modules.
that are tied to earth ground (such as printers)
can be a floating host safely connected to a data The isolation modules are relatively expensive
acquisition system. But a better overall approach and are not likely to be used in low-cost data
is to isolate the input signal source. acquisition systems. Low-cost systems typi-
cally dont contain analog isolators, but many
An isolation transformer usually doesnt supply
applications require isolators in at least a few
all the isolation intended for a data acquisition
channels. System-wise, the best place to
system, because the digital common in most
address a high common-mode signal channel
computers provides a low impedance path to
is at the source for safety and signal integrity.
earth ground as part of its ESD (electrostatic
discharge) protection scheme. But some data
Wireless Techniques
acquisition devices that communicate with the
Not all data acquisition systems can connect
host computer through serial data links such as
to sensors on the test specimen with wires.
RS232 and RS485 use communication isolators
They require a form of radio communication
specifically designed for that protocol. By
called telemetry. Radio transmitters and
comparison, most Ethernet interfaces are trans-
sensors are located on the device under test
former isolated and have ESD protection
and receivers are located at the data acquisi-
networks on both sides of the isolation barrier
tion system. For example, the rotating member
referenced to chassis, plus earth ground through
of a large motor or generator can be moni-
the host computer.
tored remotely and safely. The system can
monitor temperature, vibration, deflection,
Analog Isolators
and speed in rpm without the type of slip
The ideal solution for measuring high common-
rings used in the past.
mode signals is the analog isolator. The isolator
safely measures low-level analog input signals A relatively new protocol called Bluetooth is
containing as much as 1,500V common mode, increasingly being used for remote measurement
through magnetic, optical, or capacitive devices. and control. It is a short-range wireless system
The amplifiers provide both channel-to-system that lets devices recognize, connect, and transfer
isolation and channel-to-channel isolation. By data among them. The devices are equipped
contrast, most solid-state multiplexers have no with special Bluetooth chips and transmit over a
channel-to-channel isolation beyond the stan- short range, typically 10 m. They can transfer
dard 10 V signal range. data at a rate of 720 kb/sec over a frequency
Volts
0.00E+00
-1.00E-03
NOISE REDUCTION -2.00E-03
Signal Averaging -3.00E-03
-4.00E-03
Some noise reduction techniques prevent the -5.00E-03
noise from entering the system initially, and 0 0.05 0.1 0.15 0.2 0.25
others remove extraneous noise from the signal. Time [seconds]
Another technique averages several signal Raw Signal Averaged 16 values
samples through software. Depending on the Fig. 10.13. Signal-averaging using software tech-
nature of the noise and the specific averaging niques virtually reduce the effective electrical noise
method, noise can be reduced by the square root pick up before the data acquisition system processes
of the number of averaged samples (RMS). But the measured signal.
this may require abundant samples to obtain an
Figure 10.13
acceptable measurement. Figure(7.03)
10.13 shows
point of a single-pole, low-pass filter, its
the voltage across the shorted channel when
attenuation increases slowly. Multiple-pole
only 16 samples of data are averaged.
filter attenuation also increases slowly.
Although averaging is an effective technique, Multiple-pole filters provide greater attenua-
it has several drawbacks. The noise present in tion beyond the cutoff frequency, but they
a measurement sequence decreases as the may introduce phase shifts that could affect
square root of the number of measurements. some applications. The frequency where the
Therefore, in the above example, reducing the signal is 3 dB down is given by the equation
RMS noise to a single count by averaging shown in Figure 10.14.
alone would require 3,500 samples. As such,
averaging suits only low-speed applications, Single-Pole RC Filter
and it eliminates only random noise. It does
not necessarily eliminate many other types of R
annoying system noise, such as periodic noise
from switching power supplies.
Vin C Vout
Analog Filtering
A filter is an analog circuit element that selec-
tively attenuates a particular band of frequen- 1
F-3dB =
cies in an incoming signal. Filter circuits can 2RC
be passive or active. Depending on whether
Fig. 10.14. Passive single pole filters are moderately
the filter is low or high-pass, it determines effective in passing a band of frequencies that con-
the frequencies that are attenuated above or tain the measured signal, while attenuating other
below the cutoff frequency. For example, as a frequencies containing noise.
signal frequency increases beyond the cutoff
Amplitude in dBV
and capacitors, which pass one frequency -50
band while rejecting others. Figure 10.15 -60
compares the amplitude of a single-pole, low-
-70
pass filter with a three-pole filter. Both types
are set for a 1 kHz cutoff frequency. The -80
three-pole filter has a much greater attenua- -90
tion for frequencies exceeding the cutoff. The -100
improvement in signal quality provided by -110
low-pass filtering is demonstrated in Figure
-120
10.16 in which a signal containing wideband 0.1 1 10 100
noise passes through a three-pole filter with a Frequency in kHz
1 kHz cutoff frequency. The deviation from 1-pole 3-pole
the average signal is plotted in volts. The
Fig. 10.15. The three-pole filter attenuates the fre-
maximum deviation is 6 counts, and the RMS quencies after the cutoff point more effectively than
noise is 2.1 counts. does the single-pole filter.
Figurein
The three-pole filter shown 10.15 (7.05) has
the example
an active input with changeable configura-
tions. The active, three-pole filter can be a Noise Reduction: Low-Pass Filter
Butterworth, Bessel, or Chebyshev with corner 5.00E-03
frequencies up to 50 Hz. Filter properties 4.00E-03
depend on the values of the resistors and 3.00E-03
capacitors, which the user can change. Filters 2.00E-03
1.00E-03
also use switched-capacitors. This type requires
Volts
0.00E+00
a clock signal to set the cutoff frequency. The -1.00E-03
primary advantage of this filter is the ease of -2.00E-03
programming the cutoff frequency. -3.00E-03
-4.00E-03
Differential Voltage Measurement -5.00E-03
0 0.05 0.1 0.15 0.2 0.25
Differential input amplifiers are most often Time [seconds]
used in data acquisition systems because they Raw data Filtered output
provide a high gain for the algebraic difference
Fig. 10.16. An active, three-pole low-pass filter, con-
between their two input signals or voltages, figured as a Butterworth, Bessel, or Chebyshev filter,
but a low gain for the voltages common to reduces the noise signal more effectively without
both inputs. Making differential voltage significant attenuation than does a passive circuit.
measurements is another means of reducing
Volts
The improvement gained with differential 0.00E+00
voltage measurements is illustrated in Figure -1.00E-03
10.17. It shows the same signal as Figure 10.05, -2.00E-03
but using a differential input rather than a -3.00E-03
single-ended input. -4.00E-03
-5.00E-03
0 0.05 0.1 0.15 0.2 0.25
Time [seconds]
Chapter 11
DIGITAL AND PULSE-TRAIN CONDITIONING
DIGITAL I/O INTERFACING across the load provides a path for the
current spike while the inductors magnetic
Digital Signals field is collapsing. Without the diode,
Digital signals are the most common mode of arcing at the relays contacts can decrease
communications used between computers its life. (See Figure 11.01.)
and peripherals, instruments, and other elec-
tronic equipment because they are, of course,
fundamental to the computers operation. Flyback Diode Protection
Sooner or later, all signals destined to be i
computer inputs must be converted to a
digital form for processing. Relay
Digital signals moving through the system
+ Relay
may be a single, serial stream of pulses entering control
or exiting one port, or numerous parallel lines V2 input
where each line represents one bit in a multi-
bit word of an alphanumeric character. The
Anti- Inductive
computers digital output lines often control kickback load
relays that switch signals or power delivered to diode
other equipment. Similarly, digital input lines i
can represent the two states of a sensor or a
switch, while a string of pulses can indicate
Fig. 11.01. The fly-back diode clips high voltage
the instantaneous position or velocity of
spikes ordinarily developed across the inductive load
another device. These inputs can come from when the control relay contacts open. Without
relay contacts or solid-state devices. diodes, the high voltage arcs across the opening con-
tacts, substantially reducing their useful life.
FigureDigital
High Current and Voltage 11.01 (8.01)
I/O
Relay contacts are intended to switch volt-
ages and currents that are higher than the TTL and CMOS devices usually connect
computers internal output devices can directly to high-speed, low-level signals, such
handle, but the frequency response of their as those used in velocity and position sensors.
coils and moving contacts is limited to But in applications where the computer ener-
relatively slowly changing I/O signals or gizes a relay coil, TTL or CMOS devices may
states. Also, when an inductive load circuit not be able to provide the needed current and
opens, its collapsing magnetic field gener- voltage. So a buffer stage is inserted between
ates a high voltage across the switch the TTL signal and the relay coil, typically to
contacts that must be suppressed. A diode supply 30 V at 100 mA.
Flyback pull-up
voltage applied Typical Voltage Levels & Associated Resistor Values
here Figure +V11.04A (8.04)
Inputs Resistor Value, R
Removable 0 to 5 V 10
Flyback 27 k Relay
diode pull-up Coil 0 to 12 V 20 k
resistor Output 0 to 24 V 56 k
Power 0 to 48 V 120 k
200 mA Source
TTL signal (max) Fig. 11.04. Typical voltage levels and resistor values.
Return
under a multitasking operating system such as shake/control lines for notifying external
in a PC. The reason is that the time between devices that the input latch is being read. This
readings depends on the speed of the computer procedure lets the external device hold new
and other tasks that must be performed digital information until the current read
concurrently. Variations in time between event is performed successfully.
readings can be partially compensated with
software timers, but a timing resolution of less DIGITAL ISOLATION
than 10 ms is not guaranteed on a PC. Digital signals often are isolated for several
reasons: To protect each side of the system from
Synchronous Digital-Input Readings an inadvertent over-voltage condition on the
Some systems offer hardware-paced digital opposite side, to facilitate communication
input readings. In such systems, the user sets between devices with different grounds, and to
the frequency that the digital input port can prevent injury when circuits are attached to
read. For example, one system can read its people in medical applications. One common
16-bit port at 100 kHz, while another oper- approach for isolation is through an optical
ates to 1 MHz. The greatest advantage of coupler. Optical coupling consists of an LED or
hardware-based digital input readings is that diode laser to transmit the digital signal and a
they can be implemented far more quickly photodiode or phototransistor to receive it. (See
than can software-triggered readings. Finally, Figure 11.05.) Small optical couplers isolate
devices such as these can locate the digital- voltages up to 500 V. For example, this tech-
input port readings among the analog read- nique effectively controls and monitors digital
ings, providing a close correlation between devices connected between dissimilar grounds.
analog and digital input data.
PULSE TRAIN SIGNAL CONDITIONING
Externally Triggered Digital-Input In many frequency-measurement applica-
Readings tions, pulses are counted and compared against
Some external devices provide a digital bit, byte, a fixed time base. A pulse can be considered a
or word at a rate independent of the data acqui- digital signal because only the number of
sition system. They take readings only when rising or falling edges is measured. In many
new data are available rather than at a predeter- instances, however, the pulse-train signal
mined interval. Because of this, such external comes from an analog source, such as a
devices typically transfer data through a hand- magnetic pickup.
shaking technique. As new digital information For example, one widely used input frequency
becomes available, the external device issues a card in a data acquisition system provides four
digital transition on a separate line, such as an channels of frequency input through two sepa-
External Data Ready or Strobe input. To inter- rate front-end circuits, one for true digital input
face with a device like this, the data acquisition circuits and one for analog inputs. The card
system must provide an input latch, which the conditions digital inputs of different levels, and
external signal controls. Furthermore, a logic the analog input circuit converts a time-varying
signal supplied to the controlling computer signal into a clean digital pulse train.
alerts it to the fact that new data are ready to be
Figure 11.06 shows the schematic of the
received from the latch.
analog input, signal-conditioning path. The
One example of a device that operates in this front-end RC network provides ac coupling
fashion has an inhibit line among its six hand- allowing all signals above about 25 Hz to pass.
Vcc
Control 2
High 1.8k
47k Digital Address 6 To data
interface acquisition
4N28 system
Data 8
Digital
inputs
Low
One opto-isolator
Fig. 11.05. An optical isolator decouples the digital signal source ground from the data acquisition system
ground, and protects the acquisition system inputs from unintentional high voltages.
Figure
The 11.05
selectable attenuator reduces the overall FREQUENCY-TO-VOLTAGE
magnitude of the waveform to desensitize the CONVERSION
circuit from unwanted low-level noise. When Data acquisition systems measure frequency in
using a pulse train from a relay closure, the several ways; they integrate a continuous wave
unit provides programmable settings that let ac signal or pulse trains to produce a dc voltage
the user select the amount of debounce time with a magnitude proportional to the frequency,
required. The digital circuitry monitors the convert the ac voltage to a binary digital signal
conditioned pulse-train for a sustained high with an ADC, or count digital pulses.
or low level. Without debouncing, the extra
edges in the signal produce an excessively
high and erratic frequency reading. (See Analog to Pulse Converter
Figure 11.07.)
Many transducers generate frequency-modu- BNC 0.33 F
lated output signals rather than amplitude- Attenuate Filter
modulated. For instance, sensors that measure 1:1 or 1:50 100 kHz
20 k 300 kHz
rotational motion and fluid flow typically fall or 30 Hz
into this class. Photomultiplier tubes and
charged-particle detectors also are often used
for measurements that require pulse counting.
In principle, such signals could be sampled Fig. 11.06. An interface circuit contains an RC net-
with an ADC, but this approach generates work that significantly attenuates ac signals below
much more data than necessary and makes 25 Hz before converting the higher frequencies to a
the analysis cumbersome. Direct frequency digital pulse stream.
measurements are far more efficient.
a b c d e f After initial
"Bouncy" input signal
conditioning Conditioned signal
Debounced has constant pulse width
output
Integrated
output voltage
Time (ms)
0 10 20 30 40 50 60
Fig. 11.08. In one type of frequency-to-voltage con-
Fig. 11.07. A relay contact debounce circuit filters verter, an integrator circuit converts a string of con-
extraneous signals that the measurement amplifier stant-width pulses of varying repetition rate into a
could mistake for rising and falling edges of a legiti- smoothly changing analog voltage. The analog sig-
mate string of signal pulses. nal is proportional to the input frequency.
the input frequency, similar to the integrator controller computes the frequency from the
described above. However, the dc level here measured period and converts it to a command
comes from a DAC output. Front-end circuitry for a DAC, which, in turn, provides the dc level
converts the incoming analog or digital signal to the data acquisition system. The dc output of
into a clean pulse train, devoid of relay contact the DAC drives the input of an ordinary dc
bounce, high-frequency noise, and other signal conditioner, and the software converts
unwanted artifacts before it reaches the DAC. the dc level to an equivalent frequency reading.
(See Figure 11.10.) This method allows extremely low frequencies
For example, the analog input channel of a to be measured over an exceptionally wide
typical frequency-input data acquisition card range, and the output update can be relatively
contains a low-pass filter with a selectable fast. Moreover, the frequency range can be
cutoff frequency of 100 kHz, 300 Hz, or 30 Hz. programmed, letting the expected frequencies
It measures frequencies from 1 Hz to 100 kHz use the entire ADC range.
for signals ranging from 50 mV to 80 Vp-p. The output range of the DAC is +5 to -5 V. The
The digital input circuit measures 15 Vdc minimum frequency selected by the user
signals from 0.001 Hz to 950 kHz, dc-coupled becomes the -5 V output while the maximum
to a TTL Schmidt trigger circuit. The cards frequency becomes +5 V. Virtually any frequency
typically come with pull-up resistors for use bandwidth may be selected such as 500 Hz Fmin
with relays or switches. to 10 kHz Fmax, or 59.5 Hz Fmin to 60.5 Hz
A microcontroller accurately measures a total Fmax. With an ADC of 12-bit resolution, the
period consisting of several cycles extending lower bandwidths will have higher resolution
over one user-selectable minimal period, which than higher bandwidths, simply because the
determines the frequency resolution. The micro- range from -5 to +5 Vdc is partitioned into 4096
BNC
Frequency To data
measurement DAC acquisition
Analog input mode system
Selectable a LPF
attenuator f
Microprocessor-based
Low pass frequency measurement circuit
filter
Channel 0
Fig. 11.10. In the other type of frequency-to-voltage converter, the input card contains an input coupling capaci-
tor to filter low frequencies, an attenuator, a low pass filter, and a microprocessor to calculate the frequency. The
signal is then connected to a DAC before feeding into the data acquisition system.
parts regardless of bandwidth. The one Hz feature a TTL output option. Some products use
bandwidth is divided into 4096 parts, which a counter/timer IC, which contains five counter/
yields a resolution of 1/4096 Hz or about timers. Many counter/timer ICs generally use
0.00244 Hz. For the 100 kHz bandwidth, the an oscillator built into the data acquisition
resolution becomes 24.41 Hz. system, or an external oscillator. Such ICs
usually have several channels available to assist
The resolution is 12 bits over all ranges, but the
counting applications. Each channel contains
update time depends on the range selected.
an input, a gate, and an output. The simplest
From 1 Hz to the user-defined maximum upper
counting method only uses the input, and the
range boundary, the voltage conversion update
PC is programmed to periodically read and
is 2 to 4 ms or the period of the input frequency,
reset the counter. The weakness in this approach
whichever is greater. For a range of 0 to 10 kHz,
is the uncertainty in the timing interval.
the update rate is 2 to 4 ms, and for a range of
Variations crop up in the execution speeds of
0 to 60 Hz, the output updates every cycle or
the functions that begin and end counting. In
16.6 ms. As the conversion range becomes addition, the function call that delays execution
narrower, from 49 to 51 Hz, for example, the of the program for 50 ms runs under an
time to resolve the 2 Hz differential to 12-bit inaccurate software timer. These two effects can
resolution increases. In this case, the conver- render a short-counting interval, frequency
sion time is approximately 59 ms. measurement useless. However, the technique
In addition to the low-pass filter, a predefined is usually sufficient for counting intervals
hysteresis level is built in to help prevent false greater than one second.
counting caused by high-frequency noise. A Gating can attain greater accuracy because the
debounce time can be programmed from gate controls the counting interval.
0.6ms to 10 ms for handling electromechan- Consequently, frequency measurements are
ical devices such as switch or relay contacts independent of any software timing issues.
that bounce or chatter while switching. The gate can be configured so that pulses are
counted only when a high-level signal enters
Frequency Measurement by it. Similarly, the gate can start counting when
Gated-Pulse Counting it detects one pulse and stop counting when it
Gated-pulse counting can measure frequencies detects another.
much more accurately than frequency-to-
voltage conversion methods. Gated-pulse A disadvantage of gated-pulse counting is that
counting methods count the pulses that it requires an extra counter to provide the
appear over a specified period of time. Dividing gate. However, in multiple channel applica-
the number of pulses by the counting interval tions, a single counter can provide the gate for
determines the frequency, and the error can be many channels. For example, in a five-channel
system, four channels count while one channel
as low as the inverse of the counting interval.
provides a gate.
For example, if the counting interval is two
seconds, the error can be as low as 0.5 Hz.
Timing Applications
Many data acquisition systems include TTL- A counter/timer also can be used in a data
compatible counter/timer ICs that can perform acquisition system for timing applications. A
gated-pulse, digital-level input, however, they clock signal connected to the input of a
are unsuitable for unconditioned analog signals. channel and using the input signal as a gate
Fortunately, many frequency-output devices works well. The method requires that the gate
be configured for counting when the gate Because a 16-bit counter overflows at 65,535
input is high. A similar technique can measure counts, the maximum pulse width measurable
the length of time elapsed between two pulses with a 1 MHz clock is 65,535 ms; a longer pulse
by configuring the gate to begin counting at overflows the counter. However, a clock slower
the first pulse and end counting at the second. than 1 MHz can be used for longer pulses.
Chapter 12
TEDS: TRANSDUCERELECTRONIC DATA SHEETS
guiding document is the evolving IEEE 1451 software to convert the sensor values such as
standard, which also allows the new devices to volts or resistance to physical units, such as
be compatible with older and existing systems. force in pounds or acceleration in gs. TEDS is
also part of the Smart Transducer Interface
SYSTEM ARCHITECTURE Module. STIM includes the ADCs, DACs, digital
The IEEE has partitioned the P1451 standard I/O, and triggers that connect to the transducers.
into five major parts. Each part addresses a
different facet or interface of the project that Part 3. Digital Communications and TEDS
enables sensor manufacturers to design and Formats for Distributed Multidrop Systems
build new sensors compatible with all This part is intended to define the TEDS
networks. Each part is defined as follows: format and the standard for the interface
between multiple transducers in a multidrop
Part 1. Network-Capable Application network. Some of the issues dealing with a
Processor (NCAP) Information Model multidrop system include automatically iden-
The purpose of this part is to define an object tifying the transducer when it connects to the
model for smart transducers that connect to a bus, and how quickly the system recovers after
network, and specify a software interface to a short power dropout.
work with the transducers components. The
major components of this model include the
Part 4. Mixed-Mode Communication
NCAP block, function block, and transducer Protocols and TEDS Formats
block. The NCAP processor connects the Mixed-mode communications deals with the
network to the transducer modules, and each issue of using two-wire I/O, which shares both
different network requires a different NCAP signal and digital interfaces vs. a multi-wire
physical interface. The smart transducer object system where signal and digital communica-
model interfaces to the NCAP processor and to tions are handled on separate wires or ports.
the transducer block. The interface to the Small analog sensors contain TEDS that let the
transducer block contains details of the trans- sensors interface on the network through the
ducer hardware in a program model, and the same two wires they use for signals. The digital
interface to the NCAP block contains details TEDS data uses the same two wires.
describing the network protocols. Part 5. Wireless Communication Protocols
The NCAPs primary purpose is to communi- and TEDS Formats
cate between the STIM and a particular At the time of this writing, the IEEE P1451
network. The NCAP also computes calibration standards committee study group had defined
corrections and converts between values in the details of the interfaces for wireless
metric units and values coming from the communications, but not the modules. The
STIMs DACs or going to the ADCs. intent of the standard is to separate the phys-
ical layers from the upper layers of the protocol
Part 2. Transducer to Microprocessor stack. Significant progress on the specification
Communications Protocols and Transducer is expected in 2004.
Electronic Data Sheet (TEDS) Format
Part 2 defines the details of a TEDS, including TEDS COMPOSITION
the format for storing data in a small (256-bit to The data structure for the TEDS works well
4 kb) EEPROM and the interface between the with a variety of sensor types. Regardless of
NCAP processor and the transducers. The TEDS the sensors principle of operation, the struc-
contains the information needed by the ture contains three major subdivisions;
TEDS Table
Meta-TEDS Provides operational parameters for the transducer
Transducer-channel TEDS Provides operational parameters for the transducer
Calibration TEDS Provides calibration coefficients for the transducer
Text-based TEDS Provides a description of the device for the operator, human readable in XML
Frequency-response TEDS Provides frequency response for a transducer and associated electronics in a table
Transfer-function TEDS Provides frequency response for a transducer and associated electronics in algorithm form
End-user, application-specific TEDS User writeable block of non-volatile memory. Contents defined by user.
Commissioning TEDS User writeable block of non-volatile memory. Intended to provide an identifier for the transducer.
Manufacturer-defined TEDS Format defined by the manufacturer
Physical TEDS Defined for the particular physical layer, not included in P1451.0. How to access it is defined by
IEEE P1451.0.
the Basic TEDS; the Standard TEDS (subtem- Date, Measurement Range, and Electrical
plate), and the User Area. (See Figure 12.04, Output, but they differ in as many as 12 other
Tables 1, 2, and 3.) parameters. The accelerometer has 6 parame-
The Basic TEDS contains the manufacturers ters that the strain gage lacks, and the strain
identification, model identification, version gage has 6 parameters the accelerometer lacks.
letter, and the serial number, which are common The User Area contains information such as
Figure 12.04A
to all types of sensors. The Standard TEDS, Sensor Location, Calibration Due Date, and
however, contains data unique to the sensors Calibration Table.
principle of operation. For instance, a piezo-
electric accelerometer differs from a strain gage TEDS Configuration: Strain-Gage Load Cell
load cell, so the Standard TEDS EEPROM
Basic TEDS Manufacturer ID 56
contains some common and some unique Model ID 350A
information. Both sensor TEDS list Calibration Version Letter E
Serial Number 150-00878T
TEDS Configuration: Accelerometer Standard TEDS Calibration Date Mar. 15, 2004
Basic TEDS Manufacturer ID 25 Measurement Range 250 lb
Model ID 5226 Electrical Output 5 mV/V
Version Letter A Bridge Impedance 500
Serial Number 11521S Measurement Range 75 g
Excitation, Nominal 24 Vdc
Standard TEDS Calibration Date Jan. 6, 2004 Excitation, Minimum 10 Vdc
(Subtemplate) Sensitivity @ Reference 1.12E+03 mV/g Excitation, Maximum
Reference Frequency 110.0 Hz Response Time
Reference Temperature 25C
Measurement Range 50 g Calibration TEDS Calibration Table -2.06 mV/V, -150 lb
Electrical Output 5 V -1.02 mV/V, -75 lb
Quality Factor 0.03 mV/V, 0 lb
Temperature Coefficient -0.27%/C 0.95 mV/V, 75 lb
Direction (X, Y, Z) X 1.89 mV/V, 150 lb
User Area Sensor Location Matrix A: B-3 User Area Sensor Location L23-3
Calibration Due Date Jun. 15, 2004 Calibration Due Date Jun. 15, 2004
Fig. 12.04. Table 2. Example for an Accelerometer. Fig. 12.04. Table 3. Example for a Strain-Gage
Load Cell.
Figure 12.04C
Index
A B
Absolute Encoders 99 Balanced Differential Dividers 52
AC Voltage 24 Basics of RTDs 73
Active Filters 49, 114 Basics of Thermistors 78
ADCs Bridges
Accuracy and Resolution 6 Circuits 82, 83
Accuracy vs. Resolution 6 Full 82
Accuracy vs. System Accuracy 8 Half 83
Integrating Dual Slope 4 Quarter 83
Output Averaging 11 Wheatstone 32
Sample-and-Hold 16 Buffered Voltage Dividers 52
Sigma-Delta 5
C
Successive-Approximation 3
Calibration 87
Types 3
Charge Amplification 90
Voltage-to-Frequency 4
Circuit Protection 108
Aliasing 17
Cold Junction Compensation 66
Amplification 39
Common-Mode
Amplifiers
Amplifiers 44
Charge 90
Limitations 27
Common-Mode 44
Voltage Measurements 34
Differential 42
Voltage Rejection 108
Instrumentation 44
Compensated Voltage Dividers and Probes 52
Integrated Instrumentation 47
Constant Current/Voltage Drop 31
Inverting 41
Crosstalk
Isolation 53
Dynamic 106
Non-Inverting 42
Static 106
Operational 40
Current Transformers 28
Programmable Gain 43
Current/Measurements 26
Programmable Gain Instrumentation 47
Analog D
Digital Conversion 3 Data Acquisition
Filtering 113 Front Ends 39
Isolation Modules 54 PC-Based 2
Isolators 112 Systems 1, 108
Anderson Loop 32 DC Voltage 23
Asynchronous Digital Input Readings 118 Differential
Attenuation 51 Amplifiers 42
Average Voltage 25 Measurements 34, 114
Digital G
Communications and Format 127 Gated-Pulse Counting 123
I/O Interfacing 117 Gradient Nature of Thermocouples 65
Inputs 118 Ground Loop
Isolation 119 Creation 105
Methods of Isolation 56 Elimination 105
Pulse Counting 121 Symptoms 105
Signal Conditioning 117 Loops 104
Signals 117 Grounding
Displacement and Position Sensing 95 Conflicts 103
Displacement, Linear 95 Robust Instrumentation 104
Dividers Safety 103
Balanced Differential 52
Buffered Voltage 52
H
Half-Bridge Circuit 83
Compensated Voltage 52
Hall-Effect Sensors 29
Methods 31
Hardware Linearization 62
Dynamic Crosstalk 106
Hazards to Instrumentation Circuits 63
E High
Effective Number of Bits 9 Common-Mode Amplifiers 44
Effective Voltage 25 Common-Mode Voltage Measurements 34
Electrical Measurements 23 Common-Mode Voltage Rejection 108
Encoders Current and Voltage Digital I/O 117
Absolute 99 DC Voltage 23
Errors 100 Pass Filters 49
Incremental 99 Voltage 24
Linear 98 Voltage Dividers 52
Quadrature 100
ENOB Test 10
I
Incremental Encoders 99
ESD Protection 64
Inherently Isolated Sensors 57
Externally Triggered Digital Input Readings 119
Insertion Loss 27
F Instrumentation Amplifiers 44
Filters Instrumentation-Level DC Voltage 23
Active 47, 49, 114 Integrated Instrumentation Amplifiers 47
Analog 113 Integrating ADCs: Dual Slope 4
High-Pass 49 Introduction to Data Acquisition and
Low-Pass 48 Signal Conditioning 1
Passive, 47, 49, 114 Inverting Amplifier Stages 41
Switched-Capacitor 50 Isolated Data Acquisition Systems 108
Floating Data Acquisition Systems 108 Isolation
Fourier Transforms 17 Amplifiers 53
Four-Wire RTDs 74, 75, 76, 77 Analog Modules 54, 112
Frequency Measurement 123 Basics 53
Frequency-to-Voltage Conversion 120 Digital 119
Full-Bridge Circuit 82 Methods 56
Fundamental Signal Conditioning 39 Transformers 111
Popular links
USB Data Acquisition Advanced Sensor
Up to 24-bit resolution Measurements
Measure voltage or temperature Measure strain, temperature,
or voltage
Analog input, output, digital I/O,
counters 12 channels
Out-of-the-Box software and Up to 24-bit resolution
drivers Up to 100 kS/s sampling per
channel
PCI/PCIe Data Acquisition
Up to 20 MS/s sampling Software
Measure voltage or temperature Get the most out of your DAQ
solution with our wide-ranging
Analog input, output, digital I/O, software options. With out-of-
counters the-box software or drivers for
Out-of-the-Box software and multiple supported programs and
drivers languages.
Platform protection/compatibility
Extensive software support
Unmatched warranties
Temperature Measurement
Measure thermocouples, RTDs,
thermistors, or voltage
Up to 24-bit resolution
8 or more channels
USB, stand-alone, Ethernet, and
wireless devices
Included software and drivers