Presentation is loading. Please wait.

Presentation is loading. Please wait.

Laboratory 5: Introduction to LabVIEW

Similar presentations


Presentation on theme: "Laboratory 5: Introduction to LabVIEW"— Presentation transcript:

1 Laboratory 5: Introduction to LabVIEW
Revised 02/28/05 Mishah Salman, GG

2 Overview Objectives Background Materials Procedure
Report / Presentation Closing

3 Objectives Familiarization with graphical programming
Obtain data from outside the computer using simulated instrumentation Use this knowledge to create programs in LabVIEW Simple calculator Heating and cooling system Lighting system

4 What is LabVIEW? Laboratory Virtual Instrument Engineering Workbench
Graphical programming language Used for data acquisition, instrument control, and signal processing Based on G programming language

5 Graphic-based vs. Text-Based

6 LabVIEW Programs (VIs)
Called “Virtual Instruments” (VIs) Appearance and operation imitates actual physical instruments Without With

7 Applications in EG 1004 Heat Transfer and Thermal Insulation Lab
Therm1.vi Electronic Filters Lab Oscilloscope Semester Long Project – Supermarket, Train Lighting system and heater/AC Computerized checkout counters Security system Light sensors Switches rail paths

8 LabVIEW Interface Front Panel - User Interface (UI), where the program is controlled and executed Back Panel (Block Diagram) - The internal circuit where the program code is written

9 LabVIEW Tools

10 represents object in front panel
Controls & Indicators Icon in back panel represents object in front panel

11 Color Representation

12 (Functions -> All Functions)
LabVIEW Functions (Functions -> All Functions)

13 Structures Allow programmer to produce conditional statements or multiple outputs, based on input Structures Case Structure

14 Structures Case Structure A number of different situations (or cases)
Executes the case that matches the value of the input If no matching case, default case is executed

15 DAC Board Data Acquisition & Control Board
Interface that exchanges data (sends/receives) between the computer and the outside world DAC Icons Used: One Input Analog Channel Port Config Port Write References: See EG1004 Online Manual, National Instruments documentation, and other LabVIEW oriented websites (i.e. IIT’s LabVIEW for Dummies©)

16 Pattern Pattern represents pins to be activated on DAC interface card
Depends on values used with Port Config.vi Channels are groups of 8 pins With a channel of 2 and port width of 8, to activate pin: 47 pattern is 20, or 1 43 pattern is 22, or 4 47 and 43 pattern is 1+4, or 5

17 Materials for Lab Computer equipped with LabVIEW software, internal DAC board, and external DAC interface cards LED assembly (breadboard with LEDs) | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |

18 Procedure Program 1: Simple Calculator VI
Create program simulating simple calculator Able to add, subtract, and multiply Program 1: Simple Calculator Program 2: Thermal Control Program 3: Lighting System

19 Procedure Program 1: Simple Calculator VI
Front panel of program must have: Switch allowing 3 different arithmetic operations (add +; subtract -; multiply *) 3 LED (Boolean) indicators to show which arithmetic operation is selected Two numeric controls for inputting numbers One numeric indicator to display results Back panel should have: A case statement to control which arithmetic operation is being used Program 1: Simple Calculator Program 2: Thermal Control Program 3: Lighting System

20 Procedure Program 2: Thermal Control VI Home heating/cooling system
Program 1: Simple Calculator Program 2: Thermal Control Program 3: Lighting System Program 2: Thermal Control VI Home heating/cooling system Program requirements- Automatic Mode Regulate house air temperature AC is ON when temperature is greater than 80oF Heater is ON when the temperature is less than 60oF Heater and AC are OFF when temperature is between 60oF and 80oF Program requirements- Manual Mode Heater and AC power are controlled directly by user (overrides automatic mode)

21 Procedure Program 2: Thermal Control VI Front panel must have:
2 LEDs AC on/off indicator Heater on/off indicator Automatic/manual mode switch A temperature control represented by a thermometer Back panel should have: A Boolean case statement to control manual and automatic operations Program 1: Simple Calculator Program 2: Thermal Control Program 3: Lighting System

22 Procedure Program 3: Lighting System VI
Simulate typical household lighting system Use Boolean indicators in conjunction with real LEDs to illustrate operation Program 1: Simple Calculator Program 2: Thermal Control Program 3: Lighting System

23 Procedure Program 3: Lighting System VI Front panel must have:
Main power on/off switch for all lights 4 lights, each representing a different room Each light should have separate on/off switch Back panel should have: A “Port Config” and “Port Write” setup to control LEDs through DAC board A Boolean case for each LED Real world Functional LED assembly (depict real lights) Program 1: Simple Calculator Program 2: Thermal Control Program 3: Lighting System

24 Assignment: Report Individual report Title page
Discussion topics in the manual Include lab notes with TA’s initials TA must note that student programs worked Scan in data and lab notes (ask TA for assistance)

25 Assignment: Presentation
Team presentation Include screen shots of your programs Photo of functioning LED assembly Explain what each part does Provide program walk-through Suggest improvements for programs Refer to “Creating PowerPoint Presentations” found on EG website

26 Closing Have all lab notes signed by TA
Each team member should have turn using software Save Heating and Cooling VI – to be used in next lab Submit all work electronically Return all unused materials to TA


Download ppt "Laboratory 5: Introduction to LabVIEW"

Similar presentations


Ads by Google