ME 322: Instrumentation Lecture 5 January 27, 2016 Professor Miles Greiner Lab 3, transmitter characteristics, least-squares, standard error of the estimate Announcements • HW 2 due Monday – Joseph Young will hold a tutorial after this class (10 am) on Friday in PE 2 (not ME Kitchen) • HW will be returned in Lab • All assignments and reading on the course website – L3PP = Lab 3 preparation problem • Part of Lab 3 instructions • Process sample data • Bring resulting spreadsheet to lab (lab participation grade) • Lab 2 - Statistical Analysis of UNR Quad Measurements – Download and read Lab 2 Instructions and Lab Guidelines – How were the Monday and Tuesday labs? Lab 3 Pressure Transmitter Calibration Proximity Sensor or DMM IT PHI PLO • Dwyer Series 616 Pressure Transmitter – Power must be supplied to pins 1 and 2 (10-35 VDC) • Measurand: Pressure difference between HI and LO ports, – DP = PHI – PLO • Sensor: diaphragm with a strain or proximity gage • The Output or “Reading” is current, IT [mA], measured by a Digital Multimeter (DMM) – May be affected by orientation due to gravity (undesired) Transmitter Characteristics • See Lab 3 website, ~$150 • Different transmitters use different diaphragm thickness or flexibilities to get different deformations (sensitivities) to vary Full Scale (FS) range and resolution • Output Signal: 4 to 20 mA (h = 0 to FS, linear) • Accuracy: 616: ±0.25% F.S. • Stability: ±1% F.S./yr. • Two models in lab: – 616-1: FS = 3 in WC; Accuracy = 0.0025*3 = ±0.0075 in WC – 616-5: FS = 40in WC; Accuracy = 0.0025*40 = ±0.1 in WC Manufacturer’s Transfer Function • Output Signal: 4 to 20 mA (h = 0 to FS, linear) • Manufacturer’s Transfer Function (R vs M) 16 ππ΄ – πΌ= β + 4 ππ΄, β = πππβππ ππΆ; πΉπ = πππβππ ππΆ πΉπ – Try to confirm this in Lab 3 • Inverted Transfer Function – Measurand vs Reading, needed to use the gage • Pressure head: – β = πΉπ πΌ−4ππ΄ 16 • Pressure Difference: – Δπ = ππ»πΌ − ππΏπ = ππ€ πβ ππ π 2.54 ππ 1π πΌ−4ππ΄ = 998.7 3 9.81 2 πΉπ π π πππβ 100 ππ 16 • What is the confidence level (probability) that the real pressure head is within the interval h ± Accuracy? • Determine this in Lab 3 Pressure Standard Characteristics • Martel BetaGage Model 321A, ~$2000 • More stable (less calibration drift) than Dwyer 616’s (More expensive) • Each devise has two pressure gages – FS = 25 mBar (10 in WC); ±0.1% FS • Accuracy (uncertainty) = 10*0.001= 0.01 in WC • Use this to calibrate 3 in WC transmitter – ±0.0075 in WC – FS = 350 mBar (141 in WC), ±0.035% FS • Accuracy (uncertainty)=141*0.00035=0.05 in WC • Use this to calibrate 40 in WC transmitter – ±0.1 in WC • Only have 4 of these for 8 pairs of lab groups Gage Characteristics Pressure Standard Full Scale Range 25 mBar (10 in-WC) 350 mBar (141 in-WC) Relative Accuracy ±0.1% FS ±0.035% FS Absolute Accuracy ±0.01 inch-H2O ±0.05 inch-H2O Model 616-1 Model 616-4 Transmitter Full Scale Range 3 inch-WC 40 inch-WC Relative Accuracy ±0.25% FS ±0.25% FS Absolute Accuracy ±0.0075 inch-H2O ±0.1 inch-H2O Manufacturer's Inverted h = (3 inch-H2O)(I T-4mA)/16mA h = (40 inch-H2O)(IT-4mA)/16mA Transfer Function • High pressure transmitters will be connected to high pressure calibrator port • Low pressure transmitters to low calibrator port • One calibrator will be shared by 2-3 pairs of groups • Accuracy of the transmitter and Standard are roughly the same, but Standard drifts less Lab 3 Set-up and Procedure • • Transmitter LO port open to atmosphere Bulb, standard, HI transmitter port, and manometer high pressure port to “high” pressure tube – We don’t use the manometer for measurements, just to see the fluid shift • • • Open valve to allow high pressure tube to reach atmospheric – Set IT = 4.00 mA, and “zero” the Pressure Standard At each pressure level record hS (from Standard) and IT (from DMM) Record data from at least two ascending and descending pressure cycles, with at least 6 measurements in each direction Plot Manufacturer’s and Measured Transfer Functions Standard Reading, hS [in WC] Transmitter Output, IT [mA] 0 0.5328 1.0597 1.5617 2.0863 2.5295 1.9637 1.5483 0.9211 0.5216 0 0.5619 0.9595 1.4562 1.9927 2.6214 2.1092 1.6423 1.0696 0.5315 0 4 6.88 9.72 12.48 15.34 17.83 14.66 12.35 9.03 6.83 4.01 7.09 9.18 11.92 14.84 18.3 15.43 12.89 9.86 6.88 4.02 • Fit a line IT,F = ahS + b to the data – Measured transfer function (Use least-squares find a & b) • The data does not all fall along one single line due to gage imprecision (more like a “cloud” than a line) • The measured current for this gage is systematically larger than predicted by the Manufacturer Error of Manufacturer’s Transfer Function • Plotting e = IT – IM makes it easier to see error – IT= transmitter, IM = manufacturer (not a single line) • Increases with hS reaches ~0.35 mA (out of 20 mA) Deviation of Data form Fit Line • • • • Deviation plot d= IT – IT,F (above the fit) makes it easier to see ~Equally scatter above and below Same for ascending and descending data (no hysteresis) No systematic deviations (linear response) How to use the calibrated pressure transmitter? Measured Manufacturer Prediction • Measure gage current, I • Algebraically invert the transfer function (I = ah + b) to find h – h = (I – b)/a • If we did not calibrate, then we would assume the dotted line, which systematically gives higher pressures than actually applied • How to find a and b and the uncertainty in h? Least Squares Linear Fit di = yi – yF,i y or R yF = ax + b x or M • Find the “best” values of a and b (Two Unknowns) • Define deviation of data from best fit line for each data point – ππ = π¦πΉ,π - π¦π = ππ₯π + π − π¦π π 2 π=1 ππ π π=1 • Total error: E = = ππ₯π + π − π¦π • Find the values of a and b that minimize E 2 Details (or take my word for it) • Two constraints on E: – • ππΈ ππ – • ππΈ ππ π π=1 E= = π = – π – π= – ππ – π= π π=1 2 ππ₯π + π − π¦π π₯π − π 2 =0 π₯π π¦π = 0 ππ₯π + π − π¦π 1 = 0 π₯π + ππ − π¦π −π π π₯π2 + = 0 and ππΈ ππ ππ₯π + π − π¦π π₯π = 0 π₯π2 + π π π=1 2 ππΈ ππ π₯π π¦π = 0 ; π π¦π π₯π2 π₯π − π π₯π π¦π − π₯π π¦π π π₯π2 − π₯π 2 + π¦π −π π₯π π π₯π 2 − π ;…π= π₯π2 π₯π − π₯π π¦π = 0 π¦π − π π₯π π¦π = 0 π₯π2 − π₯π π₯π π¦π π₯π 2 Summary • Two constraints on E: ππΈ ππ = 0 and ππΈ ππ =0 – Solve simultaneously … and get π π₯π π¦π − π₯π π= Deno π₯π2 π¦π − π₯π π= Deno Deno = π π₯π2 − π¦π π₯π π¦π 2 π₯π Hint: You may use your calculator to find a & b – unless told otherwise. Learn how! How well does Best-Fit Line fit the data? • Best fit line – π¦πΉ = ππ₯ + π • Deviation of each estimate – ππ = π¦π − π¦πΉπ = π¦πΉ − ππ₯π − π • Define Standard Error of the estimate of y, given x – π π¦,π₯ = π (π¦ −ππ₯ −π)2 π π=1 π π−2 – Note: if π = 2, then ππ = 0 • a line will pass through both points – Only has meaning if π > 2 Standard Error of the Estimate of y given x sy,x y x • • • • Characterizes the vertical spread of the data 68% of all π¦π will be within π¦πΉ π₯π ± π π¦,π₯ 95% are within π¦πΉ π₯π ± 2π π¦,π₯ Assuming the error is the same for all π₯ Standard Error of the Estimate of x given y π π¦,π₯ π π₯,π¦ y x • Characterizes the horizontal spread that contains 68% of the data • π π₯,π¦ = π π¦,π₯ /π, where π = slope of best fit line