Sie sind auf Seite 1von 4

Machine, Plant & Systems Monitor

I n a data acquisition system (DAS), the


data acquisition hardware is controlled by
a host computer which, depending on the
application, could be anything from an em-
Data acquisition system architecture
bedded single-board computer to a net- To implement an effective data acquisition system it is necessary to understand how its
worked PC. Figure 1 shows the principal constitutive components operate and how they interact. Although simple data acquisi-
functional units of a ‘complete’ DAS. tion systems may sometimes be implemented with just a simple low-cost data acquisi-
There are a wide variety of ways in which tion computer card, it is often the case that an effective system requires additional
communication between the PC and the hardware. This article, by Edward Ramsden of Cherry Electrical Products, Pleasant
DAS hardware can be accomplished. For Prairie, Wisconsin, USA, describes these functional units and explains how they work.
laboratory and production floor applica-
tions, perhaps the most common interface maintenance. Table 1 lists some of the stored in local high-speed memory on the
is by way of the host computer’s system available options and a their relative ad- DA card, and then read by the host proc-
bus. The principal advantage of putting a vantages and disadvantages. essor when the sampling run is done. Lo-
data acquisition (DA) card into the host’s cal memory is also used extensively in ex-
system bus is that it provides both a high ternal DASs where the DAS-host band-
bandwidth and the ability to apply the Control logic width may be relatively low compared with
host’s computational resources to data re- For the most simple in-host DA cards, con- the peak sampling rate. Specialised DAS
duction and analysis on a real-time basis. trol logic may consist of just enough cir- systems may also contain on-board digital
Another popular interface method is to use cuitry to send commands to the analogue/ signal processors (DSPs) as well as logic
an external communications link to the digital (A/D) converter and read the results. for capturing and processing specialised
host computer. RS-232 serial communica- More sophisticated DA cards add functions inputs, such as video signals from video
tions, IEEE-488 general purpose I/O bus, that increase the ability of the device to cameras.
and the PC parallel (printer) port are all behave autonomously from the host. One
mature, but still popular standards. Uni-
versal serial bus (USB) is starting to be-
such function is the ability of a card to
periodically acquire data and stream it to Data conversion
come significant because it is shipping as the host computer’s memory without host Although there are numerous techniques
standard hardware on newer computers intervention. The features that are needed for performing analogue-to-digital conver-
and offers generally high performance. to do this are a pacer clock and a direct sion, the most popular on present-day gen-
Three major advantages are provided by memory access (DMA) controller. The eral-purpose DA cards are successive ap-
an external communications link. The first pacer clock directs the analogue-to-digital proximation, and flash conversion.
is that the DAS hardware does not have to converter (ADC) to perform conversions Figure 2 shows the key components of a
reside inside the host computer, an electri- at uniform intervals, and often allows for successive approximation converter. Con-
cally noisy environment. The second ad- the control of multiple input channels. A
vantage is that the DAS hardware can be DMA controller allows the DA card to version of a signal from the analogue to
disconnected quickly and easily from the send data directly to the host’s memory the digital domains requires a number of
host, simplifying maintenance and increas- during idle bus cycles. This allows for both discrete and sequential operations to be
high data transfer rates, and frees the host performed. A ‘conversion’ is first triggered
ing portability. The final advantage is that by a signal fed into the ‘start’ input. The
if the DAS possesses enough on-board in- processor from having to manage each
communication. first step in the subsequent conversion cy-
telligence, it can run autonomously of the cle is that the input is sampled and held
host, and in the extreme case of a remote In some cases, particularly those requiring stable, by means of the sample-and-hold
data collector, need not even be connected extremely high sampling rates (greater than amplifier at the input. This step is particu-
to the host to operate. The choice of what 10 Msa/s), the host computer’s bus may larly important because if the signal seen
type of interface the DAS should use is not provide adequate bandwidth for real- by the converter core varies during the
complex, and is driven by issues such as time operation. In situations such as these, conversion cycle it can cause grossly erro-
cost, performance, portability and ease of analogue-to-digital conversion results are neous results. Throughout the conversion
cycle this sampled voltage is compared
with a reference voltage generated by a
DAC. The DAC derives its output voltage
based on a binary code received from the
successive approximation register (SAR).
After the initial sampling, the most signifi-
cant bit of the SAR is set high. This causes
the DAC to output a voltage that is half of
its full-scale range. The comparator deter-
mines if the input voltage is greater than
the DAC voltage. If this is the case, the
SAR register holds the bit high; if not, the
SAR register drops the bit low. On subse-
quent cycles, the SAR and control logic
repeats this sequence with the next most
significant bits, all the while retaining the
values of the previous ones. After ‘N’ such
cycles the SAR contains a binary value
corresponding to the input voltage, at
Figure 1. A data acquisition system (DAS) comprises a host computer, control logic, a which point the control logic signals that
data converter and a number of input channels. the conversion is complete and the data is valid.
10
May/June 1999
Interface Advantages Drawbacks Bandwidth Remarks has been activated. Because all the com-
/bus (Mb/sec) parisons are performed at once, this type
ISA/EISA Fast-very fast Obsolescent, 1 (8-bit ISA) ISA was the original PC bus of converter can be made very fast. The
Many cards Configuration 33 (EISA) major disadvantage of the flash ADC is its
available issues complexity. Both the number of compara-
PCI Very fast Fewer cards 133 De facto standard PC BUS tors and amount of logic required increase
Plug-and-play available than ISA as 2N with the number of bits of resolu-
RS-232 Commonly Very slow 0.001-0.01 Old, slow, and cranky, tion which are required. For this reason,
available Limited range but still the digital Lingua most flash ADCs tend not to exceed 8 or
(< than 50 ft) Franca; everything speaks 10 bits of resolution.
RS-232
RS-485 Faster than
RS-232, Good
Expensive 0.01-1 Can be used as basis
for mini-network Simultaneous sampling
range (1000 ft) of DAS systems Although DASs with very high conversion
IEEE-488 Fast Expensive 0.1-1 More commonly found on rates may require the use of a separate
measurement instruments ADC for each input channel, the more typi-
than on DAS systems cal case is to share a single ADC among a
USB Fast Few DAS systems 0.2-1.5 Likely to supercede RS-232 number of channels using a multiplexer. A
Available are available...yet. and parallel port multiplexer is a switch, usually electronic,
Parallel Fast Limited range 0.1-1 Especially useful for DASs that selects one input channel from among
Port Available which are run from laptop many, and connects it to the ADC.
IEEE-1284 computers
While multiplexing multiple input chan-
Table 1. Comparison of DAS-to-host system interfaces. nels into a single ADC reduces the cost of
a DA card, it also means that measure-
The major drawback of successive ap- ments of multiple channels cannot be per-
proximation ADCs is their requirement of formed simultaneously. In cases where this
performing ‘N’ sequential analogue com- is required, a feature called simultaneous
parisons to perform a conversion. In ap- sampling is available on many DA cards.
plications requiring maximum conversion On a card with simultaneous sampling,
speed, such as video signal capture, the each input channel is provided with an
flash ADC architecture is commonly em- analogue sample-and-hold amplifier. Upon
ployed. Figure 3 shows a block diagram receiving a ‘hold’ command from the con-
of an 8-bit flash ADC. In this type of con- trol logic, each sample-and-hold amplifier
verter, a reference voltage is divided along will maintain an output value correspond-
a chain of reference resistors to provide ing to whatever was present on its input at
sub-reference voltages equivalent to the Figure 3. The flash analogue-to-digital the time the command was issued. The
transitions between each output code; for converter performs conversions quickly multiplexer and ADC can then perform
an 8 bit converter there would be 255 taps by testing the input against all possible sequential conversions on each channel. To
along the resistor chain. The input signal thresholds simultaneously. the end-user, the acquired data appears as
is simultaneously compared to each of if it were sampled simultaneously with a
these sub-references by an independent The outputs of all the comparators are then dedicated converter for each input chan-
comparator. The result of this mass com- fed into logic referred to as a priority en- nel.
parison is that the outputs of every com- coder. This device takes the 255 compara-
parator for which the input signal exceeds tor results and outputs an 8-bit code cor-
its sub-reference is turned on. responding to the ‘highest’ comparator that Input buffering
While most DASs are intended to monitor
real-world signals, the vast majority of DA
cards, especially low-cost ones, assume that
the real-world consists of noiseless volt-
age sources with a range of +/- 10 V. To
properly cope with signals resulting from
sensors, laboratory experiments, and the
factory floor requires circuitry which spe-
cially designed for that application. Fig-
ure 4 shows a generic interface for volt-
age-type signals. This circuit illustrates four
functions:
• radio frequency interference (RFI)
rejection;
• electrostatic discharge (ESD) and
transient protection;
• anti-aliasing; and
• selectable gain.
In today’s communications-intensive
Figure 2. The successive approximation analogue-to-digital converter requires a world, electronic equipment has to be de-
number of iterations in which it makes ‘guesses’ to produce a correct result. signed from the outset to be able to oper-
11
Machine, Plant & Systems Monitor

Figure 4. A good input buffer needs to both protect the input channel and remove as much unwanted input signal as possible.
Variable gain allows the channel to easily interface with a variety of transducers.
ate reliably in the presence of a wide range sponses up into the hundreds of megahertz, velop 30 kV or higher discharges from
of radio frequency interference (RFI) and will rectify these RF signals into DC. normal activities. When you also consider
sources. While it may be obvious that RFI RF injected into low-frequency electronic transients developed from nearby lighting
can interfere with electronics that operate systems usually manifests itself as offset strikes and the power distribution system,
at radio frequencies, it can also have ef- and gain errors of mysterious origin. it becomes clear that electronic systems not
fects on devices that process low-frequency ESD and transient protection are addi- designed specifically to survive these events
and near DC signals, such as most DA tional features needed to cope with a less- will have painfully short life-spans. This
cards. The main problem in these cases is than-ideal world. In dry environments, becomes even more true in really nasty
that the individual transistors incorporated such as much of North America in the win- environments, such as a factory produc-
in even low-frequency circuits have re- ter, it is not uncommon to be able to de- tion floor.
An anti-aliasing filter is a feature that rarely
appears on DA cards, mostly because its
required properties are so dependent on
the application for which the card is used.
An anti-aliasing filter is used to remove
high-frequency components of an incom-
ing signal. Unlike the case of the RFI filter,
the signals removed by the anti-aliasing fil-
ter will not result in malfunctions of the
DA card circuitry, but can result in signifi-
cant measurement errors. The whole prob-
lem of aliasing arises because an ADC takes
snapshots of the signal at discrete moments
in time. When these snapshots are taken
at a frequency that is high compared to
that of the signal of interest, it is possible
to reconstruct an accurate representation
of the original signal from the acquired
data, as depicted in Figure 5a. When the
(a) sampling rate is too low, however, the sam-
pled data set will not give a good repre-
sentation of the original signal, and may
even result in a grossly inaccurate repre-
sentation, as shown in Figure 5b.
For a given input signal, with a maximum
frequency component of ‘f’, a theoretical
minimum sampling rate of ‘2f’ is required
to be able to accurately reconstruct that
signal. This sampling rate is referred to as
the Nyquist rate. To adequately sample a
signal, one must either increase the sam-
pling rate beyond the Nyquist rate, or re-
move all incoming signal components
greater than the maximum allowed by a
given sampling rate. Note, however, the
emphasis on both theoretical and mini-
(b) mum; it is usually a good idea in practice
to both limit the bandwidth of the incom-
Figure 5. When a signal is sampled sufficiently often, a good replica can be reconstructed ing signal, and to sample significantly faster
from the acquired data (a). Sampling at too low a frequency (b) can give misleading than the Nyquist rate.
results.
12
May/June 1999
Figure 6. A strain gauge
produces a small
differential signal riding
on a DC offset. An
instrumentation
amplifier can be used to
make this signal more
palatable to a data
acquisition card.

Finally, since real-world signals come in all a high-accuracy voltage reference signal, The challenge in interfacing to a thermo-
sizes (magnitudes), some means of control- often called the excitation, to bias the couple is that there are also unwanted ther-
ling gain is useful. The input channels of a bridge. The bridge then provides a differ- mocouple junctions at the points where the
DA card may have a programmable gain ential voltage signal in response to defor- thermocouple wires are attached to the
amplifier or attenuator, allowing the user mation. DAS. To accurately develop a temperature
to change the full-scale range of the input Because the difference voltage is typically measurement from the voltage measured
channel. Adjustable gain is a common fea- very small, on the order of a few millivolts, by the DAS, it is necessary to monitor the
ture on all but the least expensive DA and is riding on a much larger common temperature at the point of wire attach-
cards. mode signal, feeding the two inputs directly ment, and compensate the readings for this
into a pair of DA card input channels will temperature. While it is possible to do all
result in low-quality measurements. It is the necessary corrections in software in the
Transducer interfaces preferable to first subtract off the common host, thermocouples are sufficiently ubiq-
mode voltage and amplify the difference uitous so as to justify special single-chip
While the generic input buffer described amplification and processing circuits to
above will allow a DAS to deal with a va- signal to match the input range of the DA
card. This can be accomplished with the handle all the details of calibration and
riety of real-world voltage input signals, correction.
the signals derived from transducers may use of an instrumentation amplifier, whose
require some specialised interfaces before output is then sampled by a single DA card
channel.
they become usable by a generic A/D card.
This section will describe interfaces for two
Conclusion
of the more commonly encountered trans- To design an effective data acquisition sys-
ducers. Thermocouple tem, it is important to use hardware that
Thermocouples (Figure 7) also provide supports the application requirements.
This article has attempted to give a broad
Strain gauge small differential signals that generally
must be amplified before being processed overview of how a typical DAS works and
by an ADC. Unlike a strain gauge, a ther- it has described the various functional com-
A strain gauge is a bridge formed from ponents.
four thin-film metal resistors, arranged mocouple is self-powered and does not
so that when the strain gauge is mechani- require a bias voltage source, relying on a
cally deformed the resistors vary as a func- junction of two dissimilar metals to de- Edward Ramsden, Cherry Electrical Prod-
tion of the deformation. Figure 6 shows velop a voltage. The temperature at the ucts, 11200 88th Avenue, PO Box 581913,
a basic interface circuit for a this type junction can be inferred from the voltage Pleasant Prairie, WI 53158, USA; tel: +1-
of transducer. The DAS must provide developed. 414-942-6500; fax: +1-414-942-6566.

Figure 7. Parasitic thermocouple junctions interfere with temperature measurements. Although correction can be done in software,
specialized hardware is available to interface between thermocouples and data acquisition systems.
13

Das könnte Ihnen auch gefallen