Introduction To Data Acquisition System
Introduction To Data Acquisition System
K.K.
K.K. Bajpai
Bajpai
Senior
Senior Scientific
Scientific Officer
Officer
Structural
Structural Engineering
Engineering Laboratory
Laboratory
IIT
IIT Kanpur
Kanpur
DAQ System
Load Cell
LVDT’S
Signal Conditioning
Software
DAQ System Contd…
Analog Inputs
Analog signals from transducers are often corrupted by other
electric signals, such as electromagnetic interference (EMI),
referred as Noise
Need to measure data and not noise
Reduce noise so that signal to noise ratio(SNR) is high
•Proper connection to sensors to limit noise entering into signal
•Filter usually high frequency noise
•Limit transducer noise
DAQ System Contd…
Electrical Noise
Ground Loops - these arise when the
ground voltage at each end of a cable run
is different, causing a current to flow in the
cable's shield and creating a magnetic field
which induces current (noise) in the same
cable the shielding is designed to protect
DAQ System Contd…
Electrical Noise
Tw isted-P air Cable
One wire used to carry signal. One as a ground reference.
If the wires run in parallel, unwanted signals will interfere
with one wire more than the other
Because the wires are twisted, the effect of unwanted
signals are almost neutralized.
DAQ System Contd…
Electrical Noise
Coax ial Cable
Coaxial cabling has
single/multiple copper conductor
at its center. A plastic layer
provides insulation between the
center conductor and a braided
metal shield. The metal shield
helps to block any outside
interference from fluorescent
lights, motors, and other
computers.
Although coaxial cabling is difficult to install, it is highly
resistant to signal interference. In addition, it can support
greater cable lengths between network devices than
twisted pair cable.
DAQ System Contd…
Block Diagram
DAQ Hardware
Signal Conditioning
Software
DAQ System Contd…
Signal Conditioning
Signal conditioning circuits improve the quality of
signals generated by transducers before they are
converted into digital signals by the data-acquisition
hardware. Functions:
Pre-filtering: remove undesirable high frequency
components
Amplification: amplify the signal to match the
dynamic range of the ADC (typically 10 V). e.g. a
x10 amplifier maps transducer signals which
range from 0 to 1 V into the range 0 to 10 V
Scaling
Offsetting
Isolation etc….
DAQ System Contd…
Block Diagram
DAQ Hardware
Signal Conditioning
Software
DAQ System Contd…
Multiplexing
While some systems have a single input and a single
output, often there are multiple inputs and outputs
Rather than have separate converters for each input and
output, we often use multiplexing
multiplexers make use of electrically operated
switches to control the routing of signals
these can be used at the input or output of a
system
normally separate anti-aliasing and/or
reconstruction filters would be used with each
input
DAQ System Contd…
Multiplexing
DAQ System Contd…
Multiplexing
DAQ System Contd…
Block Diagram
DAQ Hardware
Signal Conditioning
Software
DAQ System Contd…
Sample and Hold
The purpose of the sample and hold circuitry is to take a
snapshot of the sensor signal and hold the value. The ADC
must have a stable signal in order to accurately perform a
conversion. The switch connects the capacitor to the signal
conditioning circuit once every sample period. The capacitor
then holds the voltage value measured until a new sample
is acquired. Many times, the sample and hold circuitry is
incorporated into the same integrated circuit package.
DAQ System Contd…
Block Diagram
DAQ Hardware
Signal Conditioning
Software
DAQ System Contd…
Quantization
represent 2.50
010
001
your signal 1.25
000
0| | | | |
0 50 100 150 200
Time (µs)
Resolution R = Range / 2n – 1
16-Bit Versus 3-Bit Resolution
(5kHz Sine Wave)
10.00
111
8.75
110 16-bit resolution
7.50
101
6.25
Amplitude 100
3-bit resolution
(volts) 5.00
011
3.75
010
2.50
001
1.25
000
0 | | | | |
0 50 100 150 200
Time (µs)
DAQ System Contd…
Aliasing
Acquired signal gets distorted if
sampling rate is too small.
DAQ System Contd…
Anti-aliasing Filter
One way of avoiding the problem of aliasing is
to apply an anti-aliasing filter to the signal, prior
to the sampling stage, to remove any frequency
components above the "folding" or Nyquist
frequency (half the sampling frequency).
An anti-aliasing filter is a low-pass filter.
DAQ System Contd…
Nyquist Theorem
Analog signal that has been digitized can be perfectly
reconstructed if the sampling rate was 2 times the
maximum frequency component of the signal to
accurately represent the FREQUENCY of analog signal.
Aliased Signal
Adequately Sampled
for Frequency Only
(Same # of cycles)
Adequately Sampled
for Frequency and
Shape
Signal Source
Grounded Floating
+ +
Vs Vs
_ _
DAQ System Contd…
• Signal is referenced to a
system ground
Grounded
– earth ground
– building ground
+ • Examples:
Vs – Power supplies
_ – Signal Generators
– Anything that plugs into
an outlet ground
DAQ System Contd…
• Signal is NOT
referenced to a system Floating
ground
– earth ground
– building ground +
• Examples: Vs
_
– Batteries
– Thermocouples
– LVDT/Load Cell
– Transformers
– Isolation Amplifiers
DAQ System Contd…
ACH (+)
+
ACH (-) +
Instrumentation +
VS Amplifier
AISENSE
_
VM
_ AIGND
_
DAQ System Contd…
Grounded Floating
+ +
Vs Vs
_ _
NOT RECOMMENDED
- Voltage difference (Vg) between the two
grounds makes a ground loop that could
damage the device
GOOD
+ Allows use of entire channel count
- Doesn’t reject Common-Mode Voltage
DAQ System Contd…
BETTER
+ Allows use of entire channel count
+ Don’t need bias resistors
- Doesn’t reject Common-Mode Voltage
GOOD
+ Allows use of entire channel count
- Need bias resistors
- Doesn’t reject Common-Mode Voltage
DAQ System Contd…
Data Transfers to the
computer
•Typically, DAQ boards are
installed in a PC with high
speed data bus like PCI.
•Depending on the speed of
the motherboard of the PC,
the maximum data transfers
can occur between
microprocessor and memory
at 20 to 40 MHz.
•To improve the data transfers,
bus mastering (allowing DAQ
board to transfer data
directly) is implemented
DAQ System Contd…
DAQ Software