me 322: instrumentation lecture 38

19
ME 322: Instrumentation Lecture 38 April 24, 2015 Professor Miles Greiner Integral Control

Upload: cate

Post on 18-Jan-2016

24 views

Category:

Documents


0 download

DESCRIPTION

ME 322: Instrumentation Lecture 38. April 25, 2014 Professor Miles Greiner. Announcements/Reminders. HW 12 Due now HW 13 Due Monday, 4/28/2014 L12PP (proportional/integral control) HW 14 Due Wednesday, 4/30/2014 X3 (post soon, Last HW assignment) Review Labs 9, 10, 11, and 12; - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: ME 322: Instrumentation Lecture 38

ME 322: InstrumentationLecture 38

April 24, 2015

Professor Miles Greiner

Integral Control

Page 2: ME 322: Instrumentation Lecture 38

Announcements/Reminders• College of Engineering Innovation Day: Friday, May 1,

2015• http://

www.unr.edu/engineering/news-and-events/special-events/innovation-day

• HW 12 Due now• HW 13 Due Monday- L12PP (proportional/integral control)

• HW 14 Due Wednesday- X3, Last HW assignment

• Review Labs 10, 11, and 12: Wednesday and Friday

• Open Lab Practice: next Saturday and Sunday• Lab Practicum Finals, start a week from Monday

– Schedule on WebCampus– Guidelines: http://

wolfweb.unr.edu/homepage/greiner/teaching/MECH322Instrumentation/Tests/Index.htm

• Next week: Lab 12 Feedback Control

Page 3: ME 322: Instrumentation Lecture 38

Two Extra-Credit Opportunities• National Instruments (NI) On-line LabVIEW

Training• Wednesday, April 29, 2015, 1:30 to 3:30 pm

– Will that timing work? If not, when would?

• See instructions on WebCampus– Sign-up and actively participate to receive credit – Use your own computer or one on campus– Need headset or speakers (and microphone?)

• 1% of grade

• Lab 12.1 (Do at home, Due last lecture)• See Lab 12 instructions (study effect of DT, DTi, TSP, heater and

TC locations)• Check out Lab-in-a-Box for DeLaMare Library• Only 0.5% of grade

Page 4: ME 322: Instrumentation Lecture 38

Lab 12 Setup

• Measure the beaker water temperature using a thermocouple/conditioner/myDAQ/VI

• Use myDAQ analog output (AO) connected to a digital relay to turn heater on/off, and control the water temperature– Use Fraction of Time On (FTO) to control heater power

Page 5: ME 322: Instrumentation Lecture 38

Last HW: Proportional Control

• Use FTO when T is within DT below TSP – Define

• Three temperature zones:– For , f > 1 FTO = 1– For , 1 > f >0– For , f < 0 FTO = 0

• Corrective Heat input: – Q = QMAX*FTO = – QMAX= V2/R

• For DT = 0, Proportional becomes full power On/Off

Page 6: ME 322: Instrumentation Lecture 38

Proportional Control VI• You did this in HW

Page 7: ME 322: Instrumentation Lecture 38
Page 8: ME 322: Instrumentation Lecture 38

20

30

40

50

60

70

80

90

0 10 20 30 40 50 60 70 80 90

Te

mp

era

tu

re

, T

[C

]

Time, t [minutes]

T TSP

TSP - DT

Integrate Error

• Proportional Control had steady state error when temperature was steady• Integrate error

• Corrective Action from integration–

• FTOi will – Increase with time when )– Decrease with time when )– Stay constant when

• How to choose DTi?– Q will be too responsive if DTi is small (or not responsive enough if DTi is too large)– Wait for temperature to be steady before turning on integral control (Decreasing DTi)

When T-TSP > 0Decrease FTOi

When T-TSP < 0Increase FTOi

Page 9: ME 322: Instrumentation Lecture 38

How to implement in LabVIEW

• Need to calculate at each time step and sum• Within While Loop

– Use Shift Register to pass data from one step to the next

• Modify Proportional Controller to include integration

Page 10: ME 322: Instrumentation Lecture 38

Figure 2 VI Block Diagram

Write To Measurement File File Format: Microsoft Excel (.xlsx) File Path:C:\Users\Miles Greiner\Documents\LabVIEW Data\test.xlsx Mode: Save to one file Ask user to choose file: False If a file already exists: Use next available filename X value(time) columns: One column only Description:

• Modify proportional VI– http://

wolfweb.unr.edu/homepage/greiner/teaching/MECH322Instrumentation/Labs/Lab%2012%20Thermal%20Control/Lab%20Index.htm

Page 11: ME 322: Instrumentation Lecture 38

Figure 1 VI Front Panel

• Plots help the user monitor the time-dependent measured and set-point temperatures T and TSP, temperature error T–TSP, and control parameters

Page 12: ME 322: Instrumentation Lecture 38

Modify Proportional Control

• Shift register, input DTi– Add FTOi to FTOp

• Display FTOi (bar and numerical indicators)• Add 10log(DTi) and log(DTi) to plots• Add Write to Measurement File VI

– Use next available file name– Microsoft Excel– One time column

Page 13: ME 322: Instrumentation Lecture 38

Process Sample Data• http://wolfweb.unr.edu/homepage/greiner/teaching/MECH322Instrumentation/Labs/

Lab%2012%20Thermal%20Control/Lab%20Index.htm

• Add time scale in minutes– Calculate difference, general format, times 24*60

• Figure 3– Plot T, TSP, DT and 10log(DTi) versus time

• Figure 4– Plot T-TSP, -DT, 10log(DTi) and 0 versus time

• Table 1– Determine time periods when behavior reaches “steady state,” and

find and during those times (use an integer number of cycles)

• Figure 5– Plot versus DT and DTi

• Figure 6 – Plot versus DT and DTi

Page 14: ME 322: Instrumentation Lecture 38

Figure 3 Measured, Set-Point, Lower-Control Temperatures and DTi versus Time

• Data was acquired for 40 minutes with a set-point temperature of 85°C.• The time-dependent water temperature is shown with different values of the

control parameters DT and DTi. • Proportional control is off when DT = 0 • Integral control is effectively off when DTi = 107 (10log(DTI) = 70)

Page 15: ME 322: Instrumentation Lecture 38

Figure 4 Temperature Error, DT and DTi versus Time

• The temperature oscillates for DT = 0, 5, and 15°C, but was nearly steady for DT = 20°C.

• DTi was set to 100 from roughly t = 25 to 30 minutes, but the systems oscillated, and so it was increased to 1000.

• The controlled-system behavior depends on the relative locations of the heater, thermocouple, and side of the beaker, and the amount of water in the beaker. These parameters were not controlled during the experiment.

Page 16: ME 322: Instrumentation Lecture 38

Table 1 Controller Performance Parameters

• This table summarizes the time periods when the system exhibits steady state behaviors for each DT and DTi.

• During each steady state period– TA is the average temperature

– TA – TSP is an indication of the average controller error.

– The Root-Mean-Squared temperature TRMS is an indication of controller unsteadiness

DT [°C]

DtiTime Range

[min]TA [°C]

TRMS

[°C]TA-TSP

[°C]0 1.E+07 4.43 to 7.50 88.22 3.42 3.22

5 1.E+07 9.45 to 14.48 85.85 2.79 0.85

15 1.E+07 17.62 to 22.34 83.01 0.62 -1.99

20 1.E+07 23.61 to 25.41 82.48 0.10 -2.52

20 1000 35.51 to 39.44 85.06 0.23 0.06

Page 17: ME 322: Instrumentation Lecture 38

Figure 5 Controller Unsteadiness versus Proportionality Increment and Set-Point Temperature

• TRMS is and indication of thermocouple temperature unsteadiness

• Unsteadiness decreased as DT increased, and was not strongly affected by DTi.

Page 18: ME 322: Instrumentation Lecture 38

Figure 6 Average Temperature Error versus Set-Point Temperature and Proportionality Increment

• The average temperature error– Is positive for DT = 0, but decreases and becomes

negative as DT increases. – Is significantly improved by Integral control.

Page 19: ME 322: Instrumentation Lecture 38

Proportional-Control Energy-Balance

TQIN = FTO(QMAX)

QOUT = hA(T-TENV)

TENV

• Assume water temperature is uniform and equal to TC temperature

• Let be the temperature under steady state conditions –

– Magnitude increases as and increase