chapter 9 computer-based instrumentation...

35
Chapter 9 Computer-Based Instrumentation Systems

Upload: truongkhue

Post on 25-Mar-2018

225 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: Chapter 9 Computer-Based Instrumentation Systemsengineering.snu.ac.kr/lecture_pdf/EE/Chapter09_SNU.pdf · Determine specifications for the elements of computer-based instrumentation

Chapter 9Computer-Based

Instrumentation Systems

Page 2: Chapter 9 Computer-Based Instrumentation Systemsengineering.snu.ac.kr/lecture_pdf/EE/Chapter09_SNU.pdf · Determine specifications for the elements of computer-based instrumentation

1. Operation of Computer-based Instrumentation system.

2. Possible Errors encountered in instrumentation systems.

3. Avoid common pitfalls such as ground loops, noise coupling, andloading when using sensors.

4. Determine specifications for the elements of computer-based instrumentation systems such as data-acquisition boards.

Goal

Page 3: Chapter 9 Computer-Based Instrumentation Systemsengineering.snu.ac.kr/lecture_pdf/EE/Chapter09_SNU.pdf · Determine specifications for the elements of computer-based instrumentation

Overview of Computer-Based Instrumentation

Analog Analog-to-Digital DigitalPhysical-to-Analog

Page 4: Chapter 9 Computer-Based Instrumentation Systemsengineering.snu.ac.kr/lecture_pdf/EE/Chapter09_SNU.pdf · Determine specifications for the elements of computer-based instrumentation

. . . when we need to measure the internal voltage of the sensor, we should specify a signal-conditioning amplifier having an input impedance that is much larger in magnitude than the Thévenin impedance of the sensor.

insensor

insensorinin ZZ

ZVZIV+

==

Model for Voltage Sensing

sensorinsensorin at ZZVV >>=

Page 5: Chapter 9 Computer-Based Instrumentation Systemsengineering.snu.ac.kr/lecture_pdf/EE/Chapter09_SNU.pdf · Determine specifications for the elements of computer-based instrumentation

. . . when we want to sense the current produced by a sensor, we need a current-to-voltage converter having a very small (ideally zero) input impedance magnitude.

Model for Current Sensing

Page 6: Chapter 9 Computer-Based Instrumentation Systemsengineering.snu.ac.kr/lecture_pdf/EE/Chapter09_SNU.pdf · Determine specifications for the elements of computer-based instrumentation

Variable Resistance Sensor

Generally Sensors have varying Impedance. To Get Reliable Data from Sensor, Very High Impedance Amplifier is Necessary

Page 7: Chapter 9 Computer-Based Instrumentation Systemsengineering.snu.ac.kr/lecture_pdf/EE/Chapter09_SNU.pdf · Determine specifications for the elements of computer-based instrumentation

Errors in Measurement Systems

trueError xxm −= %100Error %full

true ×−

=x

xxm

Page 8: Chapter 9 Computer-Based Instrumentation Systemsengineering.snu.ac.kr/lecture_pdf/EE/Chapter09_SNU.pdf · Determine specifications for the elements of computer-based instrumentation

1. Accuracy: Maximum expected difference in magnitude between measured and true values

Usually defined as a percentage of full-scale value

2. Precision: The ability to Repeat the Measurement of a constant measurand.

More precise measurements have less random error.

3. Resolution:The Smallest Increment discernible between measured values.

Higher resolution means smaller increments

Additional Terms for Sensing

Page 9: Chapter 9 Computer-Based Instrumentation Systemsengineering.snu.ac.kr/lecture_pdf/EE/Chapter09_SNU.pdf · Determine specifications for the elements of computer-based instrumentation

SIGNAL CONDITIONING

1. Amplification of the sensor signals

2. Conversion of Currents to Voltages

3. Supply of (ac or dc) Excitations to the sensors so changes in resistance, inductance, or capacitance are converted to changes in voltage

4. Filtering to eliminate noise or other unwanted signal components

Typical functions of Signal conditioners are:

Page 10: Chapter 9 Computer-Based Instrumentation Systemsengineering.snu.ac.kr/lecture_pdf/EE/Chapter09_SNU.pdf · Determine specifications for the elements of computer-based instrumentation

Single-Ended vs Differential Amplifiers

Signals from Sensor are very small Amplification is Necessary- Single Ended Amplifier : Grounded Signal : Two Wires- Differential Amplifier : Floating Signal : 3 Wires

Page 11: Chapter 9 Computer-Based Instrumentation Systemsengineering.snu.ac.kr/lecture_pdf/EE/Chapter09_SNU.pdf · Determine specifications for the elements of computer-based instrumentation

21 vvvd −=

( )21cm 21 vvv +=

Differential Signal

Differential Signal

Common Mode Signal

CMRR : Common Mode Rejection Ratio

cm

log 20CMRRAAd=

Instrumentation Amplifier has Large CMRR

Page 12: Chapter 9 Computer-Based Instrumentation Systemsengineering.snu.ac.kr/lecture_pdf/EE/Chapter09_SNU.pdf · Determine specifications for the elements of computer-based instrumentation

Ground Loops

+ + + + +

1. Many Electrical System Connected to Ground with Different Wires2. Ground Noise (such as 60Hz) swings

Page 13: Chapter 9 Computer-Based Instrumentation Systemsengineering.snu.ac.kr/lecture_pdf/EE/Chapter09_SNU.pdf · Determine specifications for the elements of computer-based instrumentation

Ground Loops

. . . in connecting a sensor to an amplifier with a single-ended input, we should select a floating sensor

Cableg RIVV1Sensorin −=

Page 14: Chapter 9 Computer-Based Instrumentation Systemsengineering.snu.ac.kr/lecture_pdf/EE/Chapter09_SNU.pdf · Determine specifications for the elements of computer-based instrumentation

Various Connections

Page 15: Chapter 9 Computer-Based Instrumentation Systemsengineering.snu.ac.kr/lecture_pdf/EE/Chapter09_SNU.pdf · Determine specifications for the elements of computer-based instrumentation

Noise

Electric field coupling of noise can be reduced by using shielded cables.Magnetically coupled noise is reduced by using coaxial or twisted-pair cables.

Noise due to Electric or Magnetic Coupling from Nearby Circuits

Page 16: Chapter 9 Computer-Based Instrumentation Systemsengineering.snu.ac.kr/lecture_pdf/EE/Chapter09_SNU.pdf · Determine specifications for the elements of computer-based instrumentation

DIGITAL SIGNAL PROCESSING

Analog-DigitalConverter

Digital-AnalogConverter

DSP

If a signal contains no components with frequencies higher than fH, the signal can be exactly reconstructed from its samples, provided that the sampling rate fs is selected to be more than twice fH.

ADC : Conversion of Signals from Analog to Digital Form

Hs ff 2> : Sampling Rate (frequency)

DAC : Conversion Digital form into Analog Signal

Page 17: Chapter 9 Computer-Based Instrumentation Systemsengineering.snu.ac.kr/lecture_pdf/EE/Chapter09_SNU.pdf · Determine specifications for the elements of computer-based instrumentation

DigitalDigital--toto--Analog Converter (DAC) Analog Converter (DAC) ]222[ 2

21

1n

nRout bbbVV −−− +++= L

output voltageanalog=outV

voltagereference=RVdbinary worbit -...21 nbbb n =

Rnout VNV2

= input DAC of equivalentnumber whole10 base −=N

nRout VV −=∆ 2 changeoutput smallest =∆ outV

voltagereference=RV wordin the bits ofnumber =n

RR VVV 9375.0]2222[ 4321max =+++= −−−−

RR VVV 9961.0]22222222[ 87654321max =+++++++= −−−−−−−−

4bit

8bit

Page 18: Chapter 9 Computer-Based Instrumentation Systemsengineering.snu.ac.kr/lecture_pdf/EE/Chapter09_SNU.pdf · Determine specifications for the elements of computer-based instrumentation

Generic DAC diagram Typical DAC Circuit

DAC CircuitDAC Circuit

Page 19: Chapter 9 Computer-Based Instrumentation Systemsengineering.snu.ac.kr/lecture_pdf/EE/Chapter09_SNU.pdf · Determine specifications for the elements of computer-based instrumentation

AnalogAnalog--toto--Digital Converters(ADCs)Digital Converters(ADCs)

R

innn V

Vbbb ≤+++ −−− 222 22

11 L

nRVV −=∆ 2

ageinput volt analog=inV voltagereference analog=RV

output digitalbit -...21 nbbb n =

= n

R

in

VVN 2INTRnin VNV

2=

Conversion Resolution

kN 2=32rms

∆=qN

The effect of finite word length can be modeled asadding quantization noise to the reconstructed signal.

Page 20: Chapter 9 Computer-Based Instrumentation Systemsengineering.snu.ac.kr/lecture_pdf/EE/Chapter09_SNU.pdf · Determine specifications for the elements of computer-based instrumentation

Generic ADC diagram

Data-acquisition timing diagram Read Operation at any time after the end-of-convert

Analog-to-digital conversion is a two-step process. First, the signal is sampled at uniformly spaced points in time. Second, the sample values are quantized so they can be represented by words of finite length.

Analog-to-Digital Conversion

Page 21: Chapter 9 Computer-Based Instrumentation Systemsengineering.snu.ac.kr/lecture_pdf/EE/Chapter09_SNU.pdf · Determine specifications for the elements of computer-based instrumentation

ADC CharacteristicsADC Characteristics

1. Analog Voltage Input : Signal Input to be Converted2. Power Supply3. Reference Voltage4. Digital Output

N output Lines Connected to Memory Bus5. Control Lines

SC : Start of ConversionEOC : End of ConversionRD : Read

6. Conversion Time

Page 22: Chapter 9 Computer-Based Instrumentation Systemsengineering.snu.ac.kr/lecture_pdf/EE/Chapter09_SNU.pdf · Determine specifications for the elements of computer-based instrumentation

Aliasing

Aliasing : Sampling Rate too Low, High frequency Componentappears to be those of Low frequency

Anti-aliasing filter removes High frequency component (Low Pass Filter or High Order Butterworth Low Pass filter)

Page 23: Chapter 9 Computer-Based Instrumentation Systemsengineering.snu.ac.kr/lecture_pdf/EE/Chapter09_SNU.pdf · Determine specifications for the elements of computer-based instrumentation

Successive approximation using Internal DAC

Parallel Feedback ADCParallel Feedback ADC

Page 24: Chapter 9 Computer-Based Instrumentation Systemsengineering.snu.ac.kr/lecture_pdf/EE/Chapter09_SNU.pdf · Determine specifications for the elements of computer-based instrumentation

DualDual--Slope ADCSlope ADC

Op amp integrator, comparator, counter. Commonly used in digital voltmeters.Typical timing diagram

Page 25: Chapter 9 Computer-Based Instrumentation Systemsengineering.snu.ac.kr/lecture_pdf/EE/Chapter09_SNU.pdf · Determine specifications for the elements of computer-based instrumentation

∫= dtVRC

V x1

1 xVTRC

V 111

=

∫−= dtVRC

VV R1

12 Rx tVRC

VTRC

V 1112 −=

Rx

x VTtV

1

=

Page 26: Chapter 9 Computer-Based Instrumentation Systemsengineering.snu.ac.kr/lecture_pdf/EE/Chapter09_SNU.pdf · Determine specifications for the elements of computer-based instrumentation

Basic Concept of a sample-and-hold circuit for use with the ADC.

Sampled signal is literally “held”during the ADC conversion

Sample and HoldSample and Hold

Page 27: Chapter 9 Computer-Based Instrumentation Systemsengineering.snu.ac.kr/lecture_pdf/EE/Chapter09_SNU.pdf · Determine specifications for the elements of computer-based instrumentation

ADC interfaced to Computer bus with Tri-state bufferAddress decoding by computer software.

MicroMicro--Processor Compatible ADCProcessor Compatible ADC

Page 28: Chapter 9 Computer-Based Instrumentation Systemsengineering.snu.ac.kr/lecture_pdf/EE/Chapter09_SNU.pdf · Determine specifications for the elements of computer-based instrumentation

FrequencyFrequency--based Convertersbased Converters

General diagram of a frequency-based analog-to digital converter.

Page 29: Chapter 9 Computer-Based Instrumentation Systemsengineering.snu.ac.kr/lecture_pdf/EE/Chapter09_SNU.pdf · Determine specifications for the elements of computer-based instrumentation

Common V-to-F Converteruseful in frequency-based ADCs.

Useful for generation of frequencyBy resistance or capacity.

LM331LM331 555 timer555 timer

Page 30: Chapter 9 Computer-Based Instrumentation Systemsengineering.snu.ac.kr/lecture_pdf/EE/Chapter09_SNU.pdf · Determine specifications for the elements of computer-based instrumentation

DAS HardwareDAS Hardware

Typical layout of a data-acquisition board for use in a personal computer expansion slot.

DATADATA--ACQUISITION SYSTEMSACQUISITION SYSTEMS

Page 31: Chapter 9 Computer-Based Instrumentation Systemsengineering.snu.ac.kr/lecture_pdf/EE/Chapter09_SNU.pdf · Determine specifications for the elements of computer-based instrumentation

Multi-position switch for selecting particular inputs to ADC

Analog MultiplexerAnalog Multiplexer

Page 32: Chapter 9 Computer-Based Instrumentation Systemsengineering.snu.ac.kr/lecture_pdf/EE/Chapter09_SNU.pdf · Determine specifications for the elements of computer-based instrumentation

DAS SoftwareDAS Software

Start ADC-Test EOC-Input

Page 33: Chapter 9 Computer-Based Instrumentation Systemsengineering.snu.ac.kr/lecture_pdf/EE/Chapter09_SNU.pdf · Determine specifications for the elements of computer-based instrumentation

Temperaturehistory

No loading

Loading

No loading Loading

DAS for TRIPDAS for TRIP

TRIP(TRIP(변태유기소성) : TRansformation Induced Plasticity

Page 34: Chapter 9 Computer-Based Instrumentation Systemsengineering.snu.ac.kr/lecture_pdf/EE/Chapter09_SNU.pdf · Determine specifications for the elements of computer-based instrumentation

t=0

t=t

L01

L02

dL

dl

∆L1 ∆L2

0102

12

LLLL

−∆−∆

● Power : 50 kW●Maximum temp. : 1500 oC●Maximum load : 90 kgf●Measure of disp. : LVDT &

Laser disp. Sensor● Cooling Method : Gas cooling (Ar)

변태소성측정장치

Page 35: Chapter 9 Computer-Based Instrumentation Systemsengineering.snu.ac.kr/lecture_pdf/EE/Chapter09_SNU.pdf · Determine specifications for the elements of computer-based instrumentation