Vous êtes sur la page 1sur 24

Lecture 4: DAQ & Signal

Conditioning
March 29, 2007
TKM366 Teknik Pengukuran
Joga Dharma Setiawan, PhD

Presentation Overview

Signal Conditioning: Filter Terminology & Types


DAQ Tools for Science & Engineering
Data Acquisition (DAQ) Specs
Wire connection type
Connecting Instruments & DAQ to PC
How fast must you sample ?
Spectral Analysis
Advantages of Software Controlled DAQ
LabView

Universitas Diponegoro 2007

TKM366 Teknik Pengukuran

Signal, System, Filtering

Signal

System

Abstraction of any measurable quantity, function


of 1 or more indep vars. ie time, space
Abstraction of anything that takes an input signal,
operates on it, and produces as output signal

Filtering

Process of selectively removing or altering the


frequency content of a signal

Universitas Diponegoro 2007

TKM366 Teknik Pengukuran

Filter Terminology

Universitas Diponegoro 2007

TKM366 Teknik Pengukuran

Filter Terminology

Gain
Phase
Passband, Stopband, Transition-band,
Stopband attenuation
Passband Ripple, Stopband Ripple
Roll-off rate, Order
Cutoff Frequency, Bandwidth
Decade, Octave
Q

Universitas Diponegoro 2007

TKM366 Teknik Pengukuran

Type of Filters

Low Pass
High Pass
Bandpass , Notch

Universitas Diponegoro 2007

TKM366 Teknik Pengukuran

DAQ Tools for Science & Engineering

Oscilloscope

2 GHz, 4 channels, up to 4 GS/s. Powerful triggering and


automatic measurement capability. Includes floppy,
Centronics, RS-232 and GPIB.

Universitas Diponegoro 2007

TKM366 Teknik Pengukuran

DAQ Tools for Science & Engineering

Dynamic Signal Analyzer

244 Hz to 102.4 kHz in 1-channel mode, 122 Hz to 51.2


kHz in 2-channel mode. Built-in sine, noise, random and
chirp source. 3.5" floppy drive.

Universitas Diponegoro 2007

TKM366 Teknik Pengukuran

DAQ Tools for Science & Engineering

Computer Controlled DAQ

DAQ Device

Computer

Sensors
Cable
Terminal Block

Universitas Diponegoro 2007

TKM366 Teknik Pengukuran

DAQ Specs

Basic Components

Transducer

Output
Voltage Vt

Signal Conditioning
Amplification (A)
Conditioned
Isolation
Voltage (Vc)
Filters
Vc = Vt A
Etc.

A/D Conversion
# of Bits Resolution

Max. Theoretical Resolution = Vc/2#bits

Computer Memory
as Digital
Information
Universitas Diponegoro 2007

TKM366 Teknik Pengukuran

10

DAQ Specs

Range
Resolution
Speed of acquisition (sampling rate)
Number of channels
Multiplex vs. Simultaneous
On-board amplification (gain)
Options:

Analog output
Digital output
Hardware Filtering
Triggering

Universitas Diponegoro 2007

TKM366 Teknik Pengukuran

11

Range & Resolution

Refers to amplitude of input signal, example:

Unipolar
0 to + 10V
Bipolar
-10 to +10
Software selectable

Resolution = Range/2N

N= number of bits, 2N = number of bins


Example:

12-bit resolution for 0-10V range= 10V/212=2.44mV


16-bit resolution for 10 to 10V range= 20V/216=0.305mV

Universitas Diponegoro 2007

TKM366 Teknik Pengukuran

12

Range & Resolution

Clipping Error

Voltage signals

If the original signal lies outside the range of the A/D


converter it will be clipped at the extreme value

If the signal < few mV need to amplify


If the signal > 10 V have to divide
If the signal is noisy need shielding, grounding, filtering

Current signals

Current signal is good in noisy environment, long distance


wire. Converted to voltage using a resistor near the next
measurement point

Universitas Diponegoro 2007

TKM366 Teknik Pengukuran

13

Wire Connection Type


NRSE

Non-Referenced Single
Ended (NRSE)
GRSE

Referenced Single
Ended (GRSE)

Differential

Differential

generally preferred due


to its superior noise
rejection capabilities.

Universitas Diponegoro 2007

TKM366 Teknik Pengukuran

14

Connecting Instruments and DAQ to PC

Plug-In Cards
RS-232 Serial Link
RS-485 Serial Link (Centronics)
General Purpose Interface Bus (GPIB), RS-488
Ethernet
Others:

USB (Universal Serial Bus)


CAN (Controller Area Network)
IEEE1348 (Fire Wire)

Universitas Diponegoro 2007

TKM366 Teknik Pengukuran

15

Connecting Instruments and DAQ to PC

Instrument connection comparison

Universitas Diponegoro 2007

TKM366 Teknik Pengukuran

16

How Fast Must You Sample ?

Sampling rate must be at least twice input frequency


(Nyquist Criteria) otherwise Aliasing error will appear
Aliasing error

reduce the accuracy of the data collected


show up as spurious lower frequency errors that cannot be
distinguished from valid sampled data.
example, with a sampling rate of 1,000 Hz, a signal at 800
Hz will be aliased to 200 Hz (the false lower frequency).

Antialiasing filter

Low pass filter with BW of less than sampling frequency

Universitas Diponegoro 2007

TKM366 Teknik Pengukuran

17

Spectral Analysis

To determine the frequencies presents in a complex


wave form that we measure.
Describe time varying signals as the sum of other
time varying components
Fourier Transform (FT)

Useful for continuous, periodic, analog signals of known


fundamental frequency

Fast Fourier Transform (FFT)

A simple and efficient way to calculate the Discrete Fourier


Transform (DFT)
Can be applied to signals that are not periodic
No need to know the signal frequency prior to calculation

Universitas Diponegoro 2007

TKM366 Teknik Pengukuran

18

Spectral Analysis

FFT of a pure sine wave

Universitas Diponegoro 2007

TKM366 Teknik Pengukuran

19

Spectral Analysis

FFT of a random signal

Universitas Diponegoro 2007

TKM366 Teknik Pengukuran

20

Advantages of Software Controlled DAQ

Decreases test-to-test variability.


Greater flexibility in controlling complex test
procedures.
Real-time acquisition, analysis and display.
Data is easier to archive and put into presentations.
A very powerful tool in the hands of a competent test
engineer.

Universitas Diponegoro 2007

TKM366 Teknik Pengukuran

21

Virtual Instrumentation with LabVIEW

Visual programming is a method of writing software


using icons and wires as the computer language.

Universitas Diponegoro 2007

TKM366 Teknik Pengukuran

22

LabVIEW

Front Panel

Back Panel

Control Buttons
Universitas Diponegoro 2007

Icon
TKM366 Teknik Pengukuran

23

LabVIEW Palettes

Tools Palette
Control Palette
Universitas Diponegoro 2007

Functions Palette
TKM366 Teknik Pengukuran

24

Vous aimerez peut-être aussi