Data Acquisition Compatibility Mode
Data Acquisition Compatibility Mode
Interfacing
Lecture 17
System Set-up
PCL-812PG
PCL-839
drivers
Mechanical parts
transmission, stepper motors
System Set-up
Introduction
A data acquisition system consists of many
components that are integrated to:
Sense physical variables (use of transducers)
Condition the electrical signal to make it
readable by an A/D board
Convert the signal into a digital format
acceptable by a computer
Process, analyze, store, and display the
acquired data with the help of software
Transducers
Sense physical phenomena and translate it into
electric signals.
Examples:
Temperature
Pressure
Light
Force
Displacement
Level
Electric signals
ON/OFF switch
Signal Conditioning
Electrical signals are conditioned so they can
be used by an analog input board. Types of
signal conditioner:
Amplification
Isolation
Filtering
Linearization
Resolution
Range
Gain
Digital
Signal is either ON or OFF
Example: light switch.
16 Samples/cycle
8 Samples/cycle
AnalogAnalog
-toto-Digital Conversion
An ADC converts an analog
voltage to a digital number.
The digital number represents
the input voltage in discrete
steps with finite resolution.
ADC resolution is determined
by the number of bits that
represent the digital number.
Resolution
The resolution = is a function of number of bits ADC uses to
represents digital data
The higher the resolution, the higher voltage range is broken
into, and therefore, the smaller the detectable voltage change.
A 8 bit ADC gives 256 levels (2^8) compared to a 12 bit ADC
that has 4096 levels (2^12).
Hence, 12 bit ADC will be able to detect smaller increments of
the input signals then a 8 bit ADC.
LSB or least significant bit is defined as the minimum
increment of the voltage that a ADC can convert
E.g. - For full scale input signal of 10V, the LSB for a 3-bit
ADC corresponds to 10/2^3=1.25V. However, for a 12 bit
ADC, LSB = 10/2^12=10/4096=2.44mV.
Resolution of ADC,
X axis is analog input
Exercise 1
An ADC with word length of 10 bits. If the
input analogue signal range is 10 V, what
is the resolution of this ADC?
Answer
The resolution:
VFS 10V
= 10 = 9.8 mV
n
2
2
Exercise 2
Consider a thermocouple giving an output
of 0.5 mV/0C. What will be the word length
required when its output passes through
an ADC if temperatures from 00 to 2000C
are to be measured with resolution of
0.50C?
Answer
The full scale output from sensor:
200 0.5= 100 mV
With word length n, this voltage is divided into
100/2n mV steps
For a resolution of 0.50C, we must be able to detect a
signal from sensor 0.5 0.5=0.25mV
Thus, the word length:
0.25 = 100/2n;
n = 8.6
9-bit word length is required
Bits
The smallest unit in
digital signal is the bit,
a contraction of the
more descriptive
phase of binary digit.
Off
0
On
1
A bit is a single
element in digital
signal, having only two
possible states: on
(indicating 1) or off
(indicating 0).
Bytes
1GB = 230
1TB = 240
AnalogAnalog
-toto-Digital Converter
Theory
Analog
Input
N-bit
Digital Output
N-bit
ADC
1
1
Step Size = N = 3
2
2
= 0.125 V
.5V
. 375
. 25 V
. 125
0 Volt
Analog Input Signal
111
110
101
100
011
010
001
000
Digital Output Code
D6
27
(128)
D5
26
(64)
D4
25
(32)
D3
24
(16)
Decimal Value
Binary Code
D2
D1
D0
23
(8)
22
(4)
21
(2)
20
(1)
167
1
Decimal Number
Digital Output
0000 0000
1.2
1.2
255 = 61.2 61
5.0
0011 1101
3.7
3.7
255 = 188.76 189
5 .0
10111101
255
1111 1111
Hexadecimal
Binary
0000
0001
0010
0011
0100
0101
0110
0111
1000
1001
10
1010
11
1011
12
1100
13
1101
14
1110
15
1111
Monitor
ROM
Optional
User ROM
System
& User
RAM
Address Bus
Data Bus
Keyboard
System
Input/Output
Display
User
Input/Output
http://www.chassisplans.com/PDF/T4I_Reference_
Manual.pdf
Sensor
Timer
Digital Control
Interrupt
Circuit
Instrumentation
Amplifier
Input
Strobe
+
Bridge
Filter
S/H
Display
Control
A/D
Parallel/Series Computer
Input Port
D/A
Parallel/Series
Output Port
Output Strobe
Multiplexer
Device where
computer reads
information from
various channel one
at a time
Electronic switch
Computer instruct
MUX select particular
channel and the data
are read and
processed
Programmable Software
Involves the use of a programming
language, such as:
C++, Visual C++
BASIC, Visual Basic + Add-on tools (such
as VisuaLab with VTX)
Fortran
C#
Advantage: flexibility
Disadvantages: complexity and steep
learning curve
KPCI-3108
End of Lecture 17