Professional Documents
Culture Documents
Measuring Devices
MEC 232
Lecture_5
Data Acquisition
1st Step:
Analog ----------Coded digital values (Sampling)
Data Acquisition
Data Acquisition
• A digital signal is an approximation of an analog one
• Levels of signal are sampled and converted to a discrete
bit pattern.
• Resistor networks can be used to convert digital signals
into analogue voltages
Step (discrete) approximation
“stair-step”
sample approximation
of original
signal
level
time
hold time for sample
Data Acquisition
temp
A3
A2
A1
time
Conversion of a.c. signals
temp
A2
A1
t1 t2 time
Sample Time vs Frequency
time
sampling
– possible to interpolate
high frequency
components as low
frequency ones
– these errors are said to
be caused by aliasing time
Sample frequency must be at least
– important to preceed A- twice the highest signal frequency (2f
D converter with a low is also called the Nyquist Frequency).
pass filter to remove high
frequencies
– known as an anti-aliasing
filter
Example
•What is the maximum frequency of input signal that
can be converted by an A-D convertor with a
conversion time of 0.25 ms without aliasing?
• flash
• successive approximation
• Delta-Encoded Conversion
The Comparator
– Most A-D converters use a comparator as part of the
conversion process
– A comparator compares 2 signals A and B
• if A > B the comparator output is in one logic state (0, say)
• if B > A then it is in the opposite state (1, say)
– A comparator can be built using an op amp with no
feedback
analogue +
input
reference -
voltage
Flash Converter
• Uses a reference and a comparator for +
G
-
7V
each of the discrete levels represented +
quantisation levels 5V -
digital
• Not practical for more than 10 bit +
D
encoder
output
converters 4V
-
input
+
range (V) A B C D E F G B
<1 0 0 0 0 0 0 0 000 2V -
>1-2 1 0 0 0 0 0 0 001
>2-3 1 1 0 0 0 0 0 010 +
A
>3-4 1 1 1 0 0 0 0 011
>4-5 1 1 1 1 0 0 0 100
-
1V
comparitor
D-A Vd
Converter
Procedure
4-bit reg clock and
b b
3 2 1 0 b b control logic
1. Set MSB to 1
2. Test input, Vin, against DAC output, VDAC
3. If VDAC > Vin, reset bit to 0,
else bit = 1 (VDAC < Vin)
4. Move to next bit and repeat steps 1 - 3
The input is converted to digital value in n
steps, where n = the number of bits in digital signal
Successive Approximation A/D Converters
Example: an 8-bit successive approximation ADC is
presented with a analog value that has a value of
143. Use the successive approximation algorithm
given previously to determine the binary value.
Assuming that each test takes a single clock cycle,
determine the maximum conversion time for the
ADC, if it is clocked at 4.77 MHz. What is the
highest frequency that this system can convert and
accurately reproduce without folding or aliasing?
DAC Selection
•Resolutions (# of bits)
•Sampling rate.
•# of Channels.
•Dynamic response.
•Sampling Methods
•Types of Inputs…..
•Range
System Overview
Transducer Overview
Topics
• What is a Transducer?
• Types of Transducers
What is a Transducer?
Physical
Phenomena Signal
Topics
• Types of Signals
• Information in a Signal
• State, Rate, Level, Shape, and
Frequency
Signal Classification
Your Signal
Digital Analog
Digital Signals
Your Signal
Digital
Two possible levels:
• High/On (2 - 5 Volts)
• Low/Off (0 - 0.8 Volts)
Two types of information:
• State
• Rate
Digital Signal Information
Your Signal
Digital
Analog Signals
Your Signal
Analog
Continuous signal
• Can be at any value with respect to
time
Three types of information:
• Level
• Shape
• Frequency (Analysis required)
Analog Signal Information
Your Signal
Analog
Analysis
Required
Signal Conditioning Overview
Topics
• Purpose of Signal Conditioning
• Types of Signal Conditioning
Why Use Signal Conditioning?
• Signal Conditioning takes a signal that is difficult for your DAQ device to
measure and makes it easier to measure
• Signal Conditioning is not always required
• Depends on the signal being measured
Amplification
• Used on low-level signals (i.e. thermocouples)
• Maximizes use of Analog-to-Digital Converter (ADC) range and increases accuracy
• Increases Signal to Noise Ratio (SNR)
Noise
Instrumentation
Amplifier
+
_ ADC
Lead Wires
Topics
• Types of DAQ Hardware
• Components of a DAQ device
• Configuration Considerations
Data Acquisition Hardware
Your Signal
DAQ Device
Computer
Cable
Terminal Block
DAQ Hardware turns your PC into a
measurement and automation system
Terminal Block and Cable
50 pin connector
Your Signal
Cable
Terminal Block
• Terminal Block and Cable route your signal to
specific pins on your DAQ device
• Terminal Block and Cable can be a combination
of 68 pin or 50 pin
DAQ Device
20
Increase range: = 4.8 mV
1* 212
10
Increase gain: = 24 mV
100 * 212
Grounding Issues
• To get correct measurements you must properly ground your system
• How the signal is grounded will affect how we ground the instrumentation
amplifier on the DAQ device
• Steps to proper grounding of your system:
• Determine how your signal is grounded
• Choose a grounding mode for your Measurement System
+
Signal Measurement
Source VS VM System
-
Measurement System
• Three modes of grounding for your +
Measurement System Measurement System
• Differential
• Referenced Single-Ended (RSE)
• Non-Referenced Single-Ended (NRSE)
-
• Mode you choose will depend on
how your signal is grounded
Differential Mode
Differential Mode
• Two channels used for each signal
• ACH 0 is paired with ACH 8, ACH 1 is paired with ACH 9, etc.
• Rejects common-mode voltage and common-mode noise
ACH (n)
+
VS
+
_ ACH (n + 8)
Instrumentation +
Amplifier
AISENSE
_
VM
AIGND
_
Measurement System
RSE Mode
•Referenced Single-Ended (RSE)
• Measurement made with respect to system ground
• One channel used for each signal
• Doesn’t reject common mode voltage
ACH (n)
+
ACH (n + 8) +
Instrumentation +
VS Amplifier
AISENSE
_
VM
_ AIGND
_
Measurement System
NRSE Mode
•Non-Referenced Single-Ended (NRSE)
• Variation on RSE
• One channel used for each signal
• Measurement made with respect to AISENSE not system ground
• AISENSE is floating
• Doesn’t reject common mode voltage
ACH (n)
+
ACH (n + 8) +
VS
Instrumentation +
Amplifier
_ AISENSE
_
VM
AIGND
_
Measurement System
General Data Acquisition Signal Flow
Digital Model
Sample Rate
Aliasing Applet
1. Wagon Wheel
2. Adjusting Input Frequency
3. Of Aliasing on a Signal
Sample and hold
performed
simultaneously
across all channels
Values written to
memory