Automated Industrial Wind Tunnel Network Control...

57
Automated Industrial Wind Tunnel Network Control with LabVIEW Matt Draear Advisor: Dr. Malinowski Advisor: Dr. Malinowski 1

Transcript of Automated Industrial Wind Tunnel Network Control...

Page 1: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

Automated Industrial Wind Tunnel

Network Control with LabVIEW

Matt Draear

Advisor: Dr. MalinowskiAdvisor: Dr. Malinowski

1

Page 2: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

Presentation Outline

• Overview of Old Hardware

• Overview of New Hardware

• Details of New Hardware

• FPGA LabVIEW Code

• Real-Time Controller LabVIEW Code

• Wind Tunnel Test Results• Wind Tunnel Test Results

2

Page 3: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

Old Hardware Overview

3

Page 4: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

New National Instruments Hardware

4

Page 5: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

Wind Tunnel

Router

National Instruments cRio

Computer

Remote

LabView

Operator

Internet

NI 9472

NI 9505

NI 9205

NI 9211FPGA

Real

Time Cont.

Relay Fan On/Off

Relay Damper Direction

Relay Damper On/Off

Actuator #1 Feedback

Actuator #2 Feedback

Actuator #3 Feedback

Lift Force

Drag Force

Ambient Air Pressure

Wind Tunnel Air Pressure

Ethernet

System Diagram With New Hardware

Webcams

Operator

Interface

Ethernet

NI 9505

NI 9505

NI 9505

Cont. Lift Force

Future Thermocouple #1

Future Thermocouple #2

Actuator #1 Motor

Actuator #2 Motor

Actuator #3 Motor

5

Page 6: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

National Instruments cRIO – 9074

6

Page 7: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

Analog Input NI - 9205

7

Page 8: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

Thermocouple Input NI - 9211

8

Page 9: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

Digital Output NI - 9472

9

Page 10: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

Motor Controller NI - 9505

10

Page 11: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

FPGA Interface

http://www.mit.bme.hu/system/files/oktatas/targyak/7258/criodevgudfull.pdf

11

Page 12: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

Downloading LabVIEW Code to FPGA

http://www.mit.bme.hu/system/files/oktatas/targyak/7258/criodevgudfull.pdf

12

Page 13: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

LabVIEW Project with

FPGA / Real Time Controller / IO

13

Page 14: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

FPGA Front Panel

14

Page 15: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

Hardware I/O

Actuator PID Control Loop

Actuator Control PWM

Wind Speed PID Control Loop

FPGA LabVIEW Code

Wind Speed PID Control Loop

Damper Control PWM

15

Page 16: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

Hardware I/O

FPGA LabVIEW Code

16

Page 17: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

Hardware I/O Interface With FPGA

17

Page 18: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

Actuator PID Control Loop

FPGA LabVIEW Code

18

Page 19: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

Actuator PID Control Loop

19

Page 20: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

Linear Actuator Distance Versus Setpoint

30

40

50

60

70

Act

ua

tor

Ex

ten

sio

n (

mm

)

Setpoint

0

10

20

0

0.1

2

0.2

4

0.3

6

0.4

8

0.6

0.7

2

0.8

4

0.9

6

1.0

8

1.2

1.3

2

1.4

4

1.5

6

1.6

8

1.8

1.9

2

2.0

4

2.1

6

Act

ua

tor

Ex

ten

sio

n (

mm

)

Time (s)

Position

20

Page 21: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

Actuator Control PWM

FPGA LabVIEW Code

21

Page 22: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

Actuator Control PWM Generation

22

Page 23: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

Wind Speed PID Control Loop

FPGA LabVIEW Code

Wind Speed PID Control Loop

23

Page 24: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

Wind Speed PID Control Loop

24

Page 25: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

Wind Speed Versus Setpoint

Win

d S

pee

d (

Mil

e P

er H

ou

r)W

ind

Sp

eed

(M

ile

Per

Ho

ur)

Time (Seconds)

25

Page 26: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

FPGA LabVIEW Code

Damper Control PWM

26

Page 27: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

Damper Control PWM Generation

27

Page 28: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

Hardware I/O

Actuator PID Control Loop

Actuator Control PWM

Wind Speed PID Control Loop

FPGA LabVIEW Code

Wind Speed PID Control Loop

Damper Control PWM

28

Page 29: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

Real Time Target LabVIEW Code

29

Page 30: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

Real Time Target LabVIEW Code

Startup Code

Inputs From FPGA

Measurement Conversions

Output To FPGA

Automated Test Control

Graph and Data Acquisition

Test Time Counter

30

Page 31: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

Real Time Target LabVIEW Code

Startup Code

31

Page 32: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

Startup Code

Enable(1)/Disable(0) Lower Limit (mm) Upper Limit (mm)

Actuator #1 1 70 160

Actuator #2 1 0 199

WindTunnelConfigSettings.CSV

Actuator #2 1 0 199

Actuator #3 0 0 199

32

Page 33: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

Real Time Target LabVIEW Code

Inputs From FPGA

Output To FPGA

33

Page 34: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

FPGA I/O

Inputs From FPGA Outputs To FPGA

34

Page 35: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

Real Time Target LabVIEW Code

Measurement Conversions

35

Page 36: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

y = 20.555x + 0.0314

0

0.5

1

1.5

2

2.5

0 0.02 0.04 0.06 0.08 0.1 0.12

Lift

Fo

rce

Ib

s

Sensor Output Voltage

Lift Force Sensor Voltage to Ibs

y = 9.2584x + 0.0033

-1.5

-1

-0.5

0

0.5

1

1.5

-0.15 -0.1 -0.05 0 0.05 0.1 0.15

Dra

g F

orc

e I

bs

Sensor Output Voltage

Drag Force Sensor Voltage to Ibs

36

Page 37: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

y = 6009.7x + 79473

0

20000

40000

60000

80000

100000

120000

0 1 2 3 4 5 6

Ab

solu

te A

ir P

ress

ure

Pa

Sensor Output Voltage

Ambient Air Pressure Sensor Voltage to Pa

y = 689.48x

0

1000

2000

3000

4000

5000

6000

7000

8000

0 2 4 6 8 10 12

Re

lati

ve

Air

Pre

ssu

re P

a

Sensor Output Voltage

Wind Tunnel Air Pressure Sensor Voltage to Pa

37

Page 38: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

Measurement Conversions

38

Page 39: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

Measurement Conversion Sub VIs

SensorConvRT.VI

WindSpeedCalcRT.VI

SensorConvRT.VI

39

Page 40: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

Real Time Target LabVIEW Code

Automated Test Control

40

Page 41: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

Automated Test Control

41

Page 42: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

Automated Test Control

42

Page 43: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

Automated Test Control

43

Page 44: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

Real Time Target LabVIEW Code

Graph and Data Acquisition

44

Page 45: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

Graphing and Data Acquisition

45

Page 46: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

Step

Step

Time (s)

Wind

Speed

#1 Actuator

Position (mm)

#2 Actuator

Position (mm)

#3 Actuator

Position (mm)

0 20 50 120 90 0

1 15 50 90 90 0

2 15 50 150 90 0

3 20 70 120 90 0

WindSpeedTest.CSV

3 20 70 120 90 0

4 15 70 90 90 0

5 15 70 150 90 0

6 20 60 120 90 0

7 15 60 90 90 0

8 15 60 150 90 0

9 15 80 120 90 0

10 15 90 120 90 0

46

Page 47: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

Data Acquisition Sub VIs

FilePathRT.VI

FileSetupRT.VI47

Page 48: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

Real Time Target LabVIEW Code

Test Time Counter

48

Page 49: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

Test Time Counter

49

Page 50: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

Real Time Target LabVIEW Code

Startup Code

Inputs From FPGA

Measurement Conversions

Output To FPGA

Automated Test Control

Graph and Data Acquisition

Test Time Counter

50

Page 51: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

Test Results and Debugging

51

Page 52: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

60

80

100

120

140

160

Plot From Test Data Recorded to Spreadsheet

-40

-20

0

20

40

Time (s) 10 20 30 40 50 60 70 80 90 100 110 120 130 140 150

Wind Speed Set Point (MPH) Wind Speed (MPH) Linear Actuator #1 Setpoint (mm)

Linear Actuator #1 Position (mm) Drag Force Ibs x10 Lift Force Ibs x10

52

Page 53: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

[1] Ben Morrison and Mike Firman. “Web Enabled Wind Tunnel System”, Senior

Project, Electrical and Computer Engineering Department, Bradley University, March

2010, http://cegt201.bradley.edu/projects/proj2010/webwind/

[2] Nick Detrempe and Daniel Monahan. “Automated Industrial Wind Tunnel Controller”,

Senior Project, Electrical and Computer Engineering Department, Bradley University, April

2012, http://cegt201.bradley.edu/projects/proj2012/aiwt/

[3] NI CompactRIO, National Instruments, [Online] 2012, http://www.ni.com/compactrio

Sources

53

Page 54: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

NI 9505 Wiring Diagram

54

Page 55: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

NI 9472 Wiring Diagram

55

Page 56: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

NI 9205 Wiring Diagram

56

Page 57: Automated Industrial Wind Tunnel Network Control …cegt201.bradley.edu/.../aincwtl/FinalProjectPresentation.pdfPresentation Outline • Overview of Old Hardware • Overview of New

NI 9211 Wiring Digram

57