Sei sulla pagina 1di 8

Engineering 195H Fall 2010 Activity 2.2.

1: Introduction to LabVIEW
TASK 1 OBJECTIVE: After finishing this task, you should be able to construct LabVIEW VIs to solve simple arithmetic problems. TIMEKEEPER: This exercise should take between 20 and 25 minutes. REMEMBER: This is only a guideline (some teams may use less time, while others may use more) and all team members will be held mutually responsible for all material. INITIAL KEYBOARD OPERATOR: NONE Save all written work associated with this task, in a PowerPoint file named: Act_2_2_1_login.pptx Create each task on a separate slide and title the slides as instructed in every task. Part A: As a TEAM, for the following set of simple arithmetic operations, i) Construct a flow chart corresponding to the following equation

where A and B are inputs; C is an output. Construct a flow chart for the following cases when [operator] is: 1) Addition (+), 2) Multiplication (), 3) Subtraction (-) and 4) Division (/). Build or paste the flow chart into one slide. Title the slide, Task 1: Flow Chart ii) Create a trace table for each flow chart (i.e. all 4 possible [operator]s) when 1) A=9 and B=8; (+) 2) A=8 and B=9; () 3) A=4 and B=0; (-) 4) A=-7 and B=8; (/)

Build or paste all 4 trace tables into one slide (slide 2). Label the slide Task 1: Trace Table. Be sure to label each trace table with its corresponding [operator]. Part B: As a TEAM, complete the following tasks i) ii) Describe the major functions of the front panel and block diagram. Using LabVIEW, find the following objects: numeric, Boolean, string and path, graph, array, matrix and clusters, and list and table in the control palette; In a separate
ENGR 195H Activity 2 Fall 2010 1

iii)

iv)

slide, take a screen shot (use Snipping Tool in Windows 7) of each object showing the path of those objects. Describe the functions of numeric and Boolean Using LabVIEW, find the following objects: structure, numeric, arrays, file I/O, Boolean, string, comparison, and timing in the function palette; in a separate, take a screen shot of each object showing the path of those objects. Describe the functions of numeric and string Construct a LabVIEW VI to evaluate the following operations: 8 +9; 89; 8-9; 8/9 Act_2_2_1_task_1_login.vi

Save your VI as:

v)

Run your code using highlight execution mode and compare with the trace table you created in Part I.

Thought questions: 1. In which example does the position of the input connector (top or bottom) to the operator matter? 2. When you highlight your code, what do you see? Save your answers to Part B as well as answers to thought questions into a separate slide (or slides as needed) in the .pptx file you created in task 1.

ENGR 195H Activity 2 Fall 2010 2

TASK 2 OBJECTIVE: Be able to draw a flow chart diagram and construct a LabVIEW VI to solve a modeled engineering problem using LabVIEWs arithmetic and formula objects. TIMEKEEPER: This exercise should take between 20 and 25 minutes. REMEMBER: This is only a guideline (some teams may use less time, while others may use more) and all team members will be held mutually responsible for all material. INITIAL KEYBOARD OPERATOR: none Save all written work associated with this task, in a PowerPoint file named as: Act_2_2_1_login.pptx The Reynolds Number (Re) is a very important dimensionless parameter used in many engineering disciplines relating inertial and viscous forces. The Reynolds number can be calculated using the following formula:

Where:

V is the fluid velocity (SI unit: m/s) L is typical length (SI unit: m) is the dynamic viscosity of the fluid (SI unit: kg/(ms)) is the density of the fluid (kg/m)

For this task you will create a model to calculate Reynolds number. All the terms in the right hand side of the equation will be considered as inputs (or controls). Reynolds number will be considered as output (or indicator). For your model, the units of your inputs will be given as: Part A Draw a flow chart diagram and trace table to represent how you will calculate Reynolds number using the equation. Remember, you need to transform all the given units into SI units first. Build or paste the flow chart into a separate slide titled Task 2: Flow Chart A. fluid velocity V in (mi/hr), typical length L in (in), dynamic viscosity of the fluid in (lb/(in*s)), density of the fluid in (lb/in).

ENGR 195H Activity 2 Fall 2010 3

Part B For the following VIs, create string constants to represent your units. i) Construct a VI in LabVIEW using LabVIEW arithmetic objects to calculate Reynolds number. Remember to convert your given unit into SI unit. Act_2_2_1_task_2_1_login.vi ii) Construct a VI in LabVIEW using a formula object to solve the same problem; discuss the differences from using arithmetic objects. Remember to convert your given unit into SI unit. Act_2_2_1_task_2_2_login.vi

Save your VI as:

Save your VI as:

ENGR 195H Activity 2 Fall 2010 4

TASK 3 OBJECTIVE: Understand sequential flow and create flow diagrams using sequential flow. TIMEKEEPER: This exercise should take between 50 and 60 minutes. REMEMBER: this is only a guideline (some teams may use less time, while others may use more) and all team members will be held mutually responsible for all material. INITIAL KEYBOARD OPERATOR: none Save all written work associated with this task, in a PowerPoint file named as: Act_2_2_1_login.pptx In cold environments like West Lafayettes winter, heating units are required to be used to maintain households at a comfortable temperature. Engineers design heating units based on the amount of heat a household loses to the outside air; the amount of heat lost to the outside air is the amount of heat that must be provided by the heating unit to maintain a constant temperature. To calculate the amount of heat lost, engineers use the following equation: (1) Where: stands for heat transfer rate (W), stands for heat transfer coefficient (W/m2 k), stands for surface area of the house (m2), stands for the temperature inside the house (K), stands for the temperature of outside air (K).

To calculate the heat transfer coefficient, engineers use the following relationship: (2) Where: stands for Nusselt number (dimensionless), stands for heat transfer coefficient (W/m2 K), stands for the height of the house (m), stands for the thermal conductivity of air (0.25 W/m*K for air),

also, the Nusselt number can be found by the following relationship: (3) Where: stands for Nusselt Number (dimensionless), stands for Rayleigh number (dimensionless).
ENGR 195H Activity 2 Fall 2010 5

The Rayleigh number can be found by the following equation: (4) Where: Part A Working as a TEAM: Draw a sequential flow diagram that shows what steps an engineer must follow to compute the total heat transfer of the house. The model should consider the following as inputs: Temperature of house, Temperature of outside air, Surface Area of the house and Height of the house. stands for Rayleigh number (dimensionless), stands for gravity (9.81 m/s2), stands for thermal expansion (which means, the inverse of temperature of outside air), stands for temperature inside the house (K), stands for temperature of outside air (K). stands for the height of the house (m), Pr stands for the Prandtl Number (0.7 for air dimensionless), stands for kinematic viscosity of air (1.78e-5 kg/(m*s)).

The output of the model should simply be the computed heat transfer. Both inputs and outputs should have appropriate units attached to them. Save your flow chart in a separate slide titled Task 3: Flow Chart Part B Using LabVIEW, create a VI that solves the previous problem. Remember that inputs are controls in LabVIEW and outputs are indicators. All logic is wired in the block diagram. Save your file as: Act_2_2_1_task_3_login.vi

ENGR 195H Activity 2 Fall 2010 6

TASK 4 OBJECTIVE: Understand sequential flow and create flow diagrams using sequential flow. TIMEKEEPER: This exercise should take between 10 and 15 minutes. REMEMBER: this is only a guideline (some teams may use less time, while others may use more) and all team members will be held mutually responsible for all material. INITIAL KEYBOARD OPERATOR: none For Aeronautical Engineers, it is often important to compute the speed of sound for various reasons (e.g. while designing supersonic aircraft or engines). The speed of sound in air is not constant. It is defined as a relationship between pressure and density. The speed of sound in air is approximately 330 m/s under standard atmospheric pressure (1 atm) at a temperature of 32 F. As the temperature increases, the speed of sound will increase. A simplified equation for calculating the speed of sound is given by: (1) Where: Part A Create a flow chart to calculate the speed of sound. Use the equation above (1) where temperature is an input and the speed of sound is the output; test your algorithm with a temperature of 150 F. Remember your units! Build or paste your flow chart into a separate slide with the title Task 4: Flow Chart. Part B Translate the flow chart you created into a LabVIEW VI. Save your VI as: Act_2_2_1_task_4_login.vi a is the speed of sound in air (m/s), is specific heat ratio of air, which is 1.4 (dimensionless), R is the ideal gas constant, which is 287.03 J/kg*K, T is absolute temperature in (K).

ENGR 195H Activity 2 Fall 2010 7

Activity 2.2.1 Bonus Submission


DUE DATE: 9:29 AM Friday, September 10th, 2010 Instructions: Complete and submit ALL Task materials associated with this Activity (see Submit Files below). You are allowed to combine the work you and your team completed during the Activity with materials you individually (or as a team) complete outside of class. The Activity Bonus Submission will not be graded and returned to you like a typical assignment. Instead, it will be reviewed, and the bonus point awarded, for its completeness. Therefore, submitting an incomplete Activity Bonus Submission will be considered an act of Academic Dishonesty for which the penalty will be forfeiture of the opportunity to earn future Activity Bonus Submission points. There are two options for completing the materials for the Activity Bonus Submission: As an INDIVIDUAL: Combine the work you and your team completed in class with materials you have individually completed outside of class. When submitting an individual Activity Bonus Submission you will append your electric signature (i.e., your typed name) at the top of the file that represents your individual work. Your electronic signature indicates that this is your individual work and you have not collaborated with other individuals (other than the teaching team) to obtain the final materials being submitted working with other individuals/groups (e.g., discussing ideas and concepts, helping find errors, talking about potential solutions to errors) is permissible up to the point where the work represents a coloration (i.e., working with another person or group to achieve an answer). Any work previously completed by your team should include each team members electronic signature. The significance of an electronic signature by an individual for team work is stated below. As a TEAM: Combine the work you and your team completed in class with materials your team (or sub-team) completed outside of class. When submitting a Activity Bonus Submission that has been worked on as a team (or sub-team) each member will append his/her electronic signature (i.e., his/her typed name) at the top of the file that represents the collaborative work. The electronic signature of each individual implies he/she: was an active participant in the preparation of the materials; has a general understanding of all the materials being submitted; and has not individually, or as a team, colorated with other individuals outside the team (other than the teaching team) to obtain the final materials being submitted. Please note: Late submissions will NOT be allowed. Submit Files: Submit all files electronically via Blackboard to the appropriate box. F1. Act_2_2_1_login.pptx F2. Act_2_2_1_task_1_login.vi F3. Act_2_2_1_task_2_1_login.vi F4. Act_2_2_1_task_2_2_login.vi F5. Act_2_2_1_task_3_login.vi F6. Act_2_2_1_task_4_login.vi
ENGR 195H Activity 2 Fall 2010 8

Potrebbero piacerti anche