overview ppt

Download Report

Transcript overview ppt

Instrumentation Overview
Spring 2012
•The laboratory is a controlled environment where we
can measure isolated physical phenomena with a
view to eventual understanding them.
•The suite of tools we use in this endeavor is typically
called “instrumentation.”
1
Scott Russell and Roger Gans
Lab Instruments
•
•
•
•
•
•
•
Various, selected to measure what you want.
Off-the-Shelf or Scratch Built.
Must be calibrated.
Used with a PC or “stand alone.”
Responds to phenomena with some “signal.”
The signal is typically a voltage or current.
Instruments have varied response times, accuracy, and
precision.
• Here’s a cartoon of the process
2
Data acquisition (the measurement part)
the
lab
pressure, e. g.
Most of your data acquisition
will be done using LabVIEW on a PC.
You will learn how to do this early on.
transducer
voltage
LabVIEW: hardware/software
A/D
conversion
binary number
computer
3
Some issues to be addressed:
instrument response in time (transients, lag time)
Measuring time-dependent phenomena
accuracy and precision (system resolution)
noise!
(I’ll look at some of these in the context of temperature measurement another day.
First I’d like to look at some ideas in general.)
4
From the lab to your dorm I
(some language)
•
Sample rate refers to the number of data sets that can be processed
(converted or decoded) per second.
•
If, for example, the sample rate is 1000 Hertz, then we are gathering 1000
snapshots per second of information (may be multidimensional) from the
real world into the PC.
•
Bit resolution describes the precision of that sample, or how much discrete
detail (significant figures) is captured in each snapshot .
•
The voltage signal from the instrument is converted to a binary number. The
number of bits in the number determines the possible precision.
•
Resolution is therefore the SMALLEST DETECTABLE increment of
measurement.
•
For PC-based DAQ, resolution is limited to the number of bits used to
quantize or translate the analog to the digital signal.
5
is just unwanted signal
We’ll look at some real noise once we’ve played with the other stuff
6
From the lab to your dorm II
(resolution)
•
DAQ devices are specified in terms of resolution — the number of bits
in the converted binary number.
•
Consider a 14 bit instrument measuring a voltage between -1 and +1:
14-bits of resolution over a minimum range of ± 1 V.
•
What does this mean in terms of signal capture quality????
•
The voltage resolution is (1 - (-1))V / (214) = 2 / (16384) V = 122 µV.
•
This is excellent for a voltage of 0.5, but useless for a voltage below
122 µV.
•
It also cannot distinguish between 0.5 and 0.5001; whether this is
important depends on the problem
•
Let’s look at this graphically (for 0 < V < +1).
7
Bit Contributions
0.5
0.45
0.4
contribution
0.35
0.3
0.25
0.2
0.15
0.1
0.05
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
term
8
Conversion of 0.4
0.3
8 bit = 0.3984375
contribution
0.25
12 bit = 0.399902344
0.2
16 bit = 0.399993896
0.15
0.1
0.05
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
term
9
Midrange Digitization
0.525
digitized signal
0.52
0.515
8 bit
0.51
16 bit
0.505
0.5
0.495
0.495
0.5
0.505
0.51
0.515
0.52
0.525
true signal
10
Periodic Conversion
0.015
0.01
signal
0.005
true signal
0
8 bit
1
102 203 304 405 506 607 708 809 910
16 bit
-0.005
-0.01
-0.015
time
11
LabVIEW Overview
Take
a
look
Read
data
Take
a
look
Analyze
Data
(?)
Store
data
12
The analysis part on the previous slide is not the final analysis
It is often useful to do some preliminary analysis in LabVIEW
BUT . . .
13
From the lab to your dorm III
(transport)
The LabVIEW software can store data in Excel format
You can take it away on a flash drive to analyze at your leisure
14
ON NOISE
The air is full of EM signals
range=±10 v
Your instrument can pick them up
range = ±10 mv
15
Change the red to ± 10 mv
16
FILTERS
cutoff = 10 Hz
cutoff = 1 Hz
17
A quick introduction to LabVIEW
All Programs —> Engineering —> National instrumentsLabVIEW
(or something close to this)
Select New Blank VI
18
You will get a Front Panel
and a Block Diagram
Each will have a palette
19
FRONT PANEL
run
stop
controls palette
run continuously
20
BLOCK DIAGRAM
functions palette
useful analytical tools
are here
much of what we want
is here
21
CALIBRATION VIRTUAL INSTRUMENT
dial in the independent variable, x
read the dependent variable, y
write the result to a file
you will build one of these tomorrow
22
SIMPLE FRONT PANEL
input, x
allows writing to file
value, y
file name
23
SIMPLE BLOCK DIAGRAM
writes x and y to a file
acquires data
combines x and y in a “vector”
24
DATA FILE
THE HEADER
25
THE DATA
26
DATA PLOT WITH REGRESSION LINE
12
y = 1.0461x - 0.0395
R² = 0.9997
10
8
6
Series1
Linear (Series1)
4
2
0
0
2
4
6
8
10
27
I can make LabVIEW do more or less what I want it to do, but
Scott is a LabVIEW expert
If Scott “helps” you too much,
you will wind up with a LabVIEW program I cannot help you with!
28
About Gavett 244
Your ID should get you into the room
Your UserID should allow you access to the machines
You may have to change the password; they made me do that
It takes close to two minutes for the log on process
DO THAT FIRST
29
They wipe the machines overnight
so
bring a flash drive to take your stuff home with you
30