Modify your vi that you created in the previous part of the lab to calculate the...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Modify your vi that you created in the previous part of the lab to calculate the velocity of an air flow given the following inputs: Static Pressure - Ps Total Pressure - Pt Temperature - Ts Density - p Values of the inputs should be entered via controls on the front panel and the result should be displayed using two types of indicators on the front panel. The vi should do the calculation when the "Run" button is pressed and keep the result until the "Clear" button is pressed. Save the new modified vi to the same folder as the other files in this lab. Send all files in this folder to a compressed (zipped) folder named "YOUR_NAME ME446L Lab 2.zip" Upload this file to the Canvas site under the Lab 2 submission feature. Things to consider while you are working on this and before you submit it. 1. I am looking for neat, well organized, well documented work products. 2. While you may consult with other members of the class, you should submit your own, unique work product. 3. Your final product should be thoroughly tested such that it works as designed and as many bugs as possible have been found and fixed. I will try to break the VI that you submit. On the event structure right click on the event banner at the top of the structure and select "Add Event Case..." ME 446L Lab 2.vi Block Diagram File Edit View Project Operate Tools Window Help 15pt Application Font Clear "Wait for event" Timeout Source Type Time KOK Visible Items Wait for Examples Description and Tip... Breakpoint Event Inspector Window Structures Pale Auto Grow Exclude from Diagram Cleanup Remove Event Structure Edit Events Handled by This Case.... Add Event Case Duplicate Event Case... Delete This Event Case Search Show Dynamic Event Terminals Show Case 0 In the Edit Events pane select "Run" from the middle Window that is labeled "Event Sources" Make sure that "Change Value" is selected in the "Events" pane. Then click OK. Edit Events Event case [1] "Run": Value Change Event Specifiers Event Source Run Add Event Event Value Change X Remove Event Sources Dynamic Panes Filter Pane Splitters Controls Run Message Run Clear Exit Events Filter Key Mouse Drag Shortcut Menu Value Change Lock panel (defer processing of user actions) until the event case completes Limit maximum instances of this event in event queue 1 Instances OK Cancel Help This will tell LabVIEW what to do when the user clicks the "Run" button. Namely execute the code in the "Run" case of the case structure. Verify that the mechanical action of the "Run" button is set to "Latch When Released" by right clicking on the "Run" button on the front panel and selecting Mechanical Action. ME 446L Lab 2.vi Front Panel* File Edit View Project Operate Tools Window Help II 15pt Application Font - Search Run Message You have Run Visible Items Find Terminal Change to Indicator Change to Array Make Type Def. Description and Tip... Create Replace Data Operations Advanced Fit Control to Pane Scale Object with Pane Mechanical Action Release Text Properties Exit Latch When Released The "Latch When Released" mechanical action changes the value of the control when the user clicks the button and releases it while the mouse is still over the control icon on the front panel. The value changes back once LabVIEW has read the value. Consider the effect of the different mechanical action settings might have on your vi. Finish your vi from this point such that the run message is displayed when the "Run" button is pushed and is cleared from the front panel when the "Clear" button is pushed. The "Exit" button should terminate the vi no matter what state the vi is in. Open a blank vi On the front panel, place an enum control. Untitled 1 Front Panel* File Edit View Project Operate Tools Window II 15pt Application Fo?: Controls Modern 1.23 efc NXG Style Silver System Classic Express ~ 85 abc Path Ring Enum OA Search 802 Ring Ring & Enum Enum Ring Ring Enum Right click on the enum and select "Make Type Def." from the context menu. Untitled 1 Front Panel* File Edit View Project Operat 11? Enum Visible Items Find Terminal Change to Indicator Change to Array Make Type Def. Description and Tip... Create Right click on the enum control and select "Open Type Def." from the context menu. Untitled 1 Front Panel" File Edit View Project Operate Tools Window Help II 15pt Application Font 2 Enum Visible Items Find Change to Indicator Change to Array Review and Update from Type Def... Auto-Update from Type Def. Open Type Def. Disconnect from Type Def. Show VI Hierarchy Explore... Description and Tip... Create Replace Data Operations Advanced } Representation Display Format... In the new window that appears go to File -> Save and save the type def as State Control.ctl to your computer in a file called "YOUR_NAME ME446L Lab 2". Where YOUR NAME is...well your name. Right click on the enum in the new .ctl file and select "edit items." State Control.ctl Type Def File Edit View Project Operate Tools Type Def. Enum Visible Items Change to Indicator Change to Array Description and Tip... Replace Data Operations Advanced Representation Display Format... Select Item Add Item After Add Item Before Remove Item Edit Items... Disable Item In the Enum Properties window double click on the white space under Items to select it and add the text "initialize." This is now the first enumerated item in the enum and corresponds to the numeric value 0. Enum Properties: Enum Appearance Data Type Display Format Edit Items Documentation Items Initializ Values Allow undefined values at runtime "Clear" "Exit" OK Insert Delete Move Up Move Down Disable Item Cancel Help By clicking the "Insert" button add the following items: "Wait for event" "Run" Close the file "State Control.ctl" saving all changes. Return to the original vi that you opened. Save it in the same folder as the type def as "ME446L Lab 2" In the initial vi window, change from the Front Panel to the Block Diagram by pressing "Ctrl E" On the Block Diagram bring up the Functions Palette by right clicking. You may wish to "pin" the palette to the active window using the push pin icon in the upper left corner. At the bottom of the palette choose "Select a VI..." In the window that appears, navigate to the folder containing the type def and select the .ctl file you just made. Place the type def on the block diagram. Place a while loop on the block diagram. Inside the while loop place a case structure and wire the type def to the case structure though the while loop. ME 446L Lab 2.vi Block Diagram File Edit View Project Operate Tools Window Help 15pt Application Font Initialize B "Initialize, Default }" Place another instance of the type def inside the "Initialize" case in the case structure and set its value to "Wait for event." Wire the output of the type def to the while loop in a shift register deleting the wire connecting the first instance of the type def to the while loop and the tunnel and rewiring the first instance of the type def to initialize the shift register. Change the working case of the case structure to "Wait for event" and place an event structure there. Place another instance of the type def in the event structure and set the value to "Run." Wire the output to the tunnel on the case structure. Add a new case after the "Wait for event" case. The case definition window at the top of the case structure should say "Run" In the "Run" case create code that displays the message "You have pressed the Run button" on the front panel. Add an instance of the type def to return the state to the "Wait for event" case. Place three Boolean controls (buttons) on the front panel and name them, respectively; "Run", "Clear", and "Exit" Format the buttons so that the names appear on the button but the label is not visible. Modify your vi that you created in the previous part of the lab to calculate the velocity of an air flow given the following inputs: Static Pressure - Ps Total Pressure - Pt Temperature - Ts Density - p Values of the inputs should be entered via controls on the front panel and the result should be displayed using two types of indicators on the front panel. The vi should do the calculation when the "Run" button is pressed and keep the result until the "Clear" button is pressed. Save the new modified vi to the same folder as the other files in this lab. Send all files in this folder to a compressed (zipped) folder named "YOUR_NAME ME446L Lab 2.zip" Upload this file to the Canvas site under the Lab 2 submission feature. Things to consider while you are working on this and before you submit it. 1. I am looking for neat, well organized, well documented work products. 2. While you may consult with other members of the class, you should submit your own, unique work product. 3. Your final product should be thoroughly tested such that it works as designed and as many bugs as possible have been found and fixed. I will try to break the VI that you submit. On the event structure right click on the event banner at the top of the structure and select "Add Event Case..." ME 446L Lab 2.vi Block Diagram File Edit View Project Operate Tools Window Help 15pt Application Font Clear "Wait for event" Timeout Source Type Time KOK Visible Items Wait for Examples Description and Tip... Breakpoint Event Inspector Window Structures Pale Auto Grow Exclude from Diagram Cleanup Remove Event Structure Edit Events Handled by This Case.... Add Event Case Duplicate Event Case... Delete This Event Case Search Show Dynamic Event Terminals Show Case 0 In the Edit Events pane select "Run" from the middle Window that is labeled "Event Sources" Make sure that "Change Value" is selected in the "Events" pane. Then click OK. Edit Events Event case [1] "Run": Value Change Event Specifiers Event Source Run Add Event Event Value Change X Remove Event Sources Dynamic Panes Filter Pane Splitters Controls Run Message Run Clear Exit Events Filter Key Mouse Drag Shortcut Menu Value Change Lock panel (defer processing of user actions) until the event case completes Limit maximum instances of this event in event queue 1 Instances OK Cancel Help This will tell LabVIEW what to do when the user clicks the "Run" button. Namely execute the code in the "Run" case of the case structure. Verify that the mechanical action of the "Run" button is set to "Latch When Released" by right clicking on the "Run" button on the front panel and selecting Mechanical Action. ME 446L Lab 2.vi Front Panel* File Edit View Project Operate Tools Window Help II 15pt Application Font - Search Run Message You have Run Visible Items Find Terminal Change to Indicator Change to Array Make Type Def. Description and Tip... Create Replace Data Operations Advanced Fit Control to Pane Scale Object with Pane Mechanical Action Release Text Properties Exit Latch When Released The "Latch When Released" mechanical action changes the value of the control when the user clicks the button and releases it while the mouse is still over the control icon on the front panel. The value changes back once LabVIEW has read the value. Consider the effect of the different mechanical action settings might have on your vi. Finish your vi from this point such that the run message is displayed when the "Run" button is pushed and is cleared from the front panel when the "Clear" button is pushed. The "Exit" button should terminate the vi no matter what state the vi is in. Open a blank vi On the front panel, place an enum control. Untitled 1 Front Panel* File Edit View Project Operate Tools Window II 15pt Application Fo?: Controls Modern 1.23 efc NXG Style Silver System Classic Express ~ 85 abc Path Ring Enum OA Search 802 Ring Ring & Enum Enum Ring Ring Enum Right click on the enum and select "Make Type Def." from the context menu. Untitled 1 Front Panel* File Edit View Project Operat 11? Enum Visible Items Find Terminal Change to Indicator Change to Array Make Type Def. Description and Tip... Create Right click on the enum control and select "Open Type Def." from the context menu. Untitled 1 Front Panel" File Edit View Project Operate Tools Window Help II 15pt Application Font 2 Enum Visible Items Find Change to Indicator Change to Array Review and Update from Type Def... Auto-Update from Type Def. Open Type Def. Disconnect from Type Def. Show VI Hierarchy Explore... Description and Tip... Create Replace Data Operations Advanced } Representation Display Format... In the new window that appears go to File -> Save and save the type def as State Control.ctl to your computer in a file called "YOUR_NAME ME446L Lab 2". Where YOUR NAME is...well your name. Right click on the enum in the new .ctl file and select "edit items." State Control.ctl Type Def File Edit View Project Operate Tools Type Def. Enum Visible Items Change to Indicator Change to Array Description and Tip... Replace Data Operations Advanced Representation Display Format... Select Item Add Item After Add Item Before Remove Item Edit Items... Disable Item In the Enum Properties window double click on the white space under Items to select it and add the text "initialize." This is now the first enumerated item in the enum and corresponds to the numeric value 0. Enum Properties: Enum Appearance Data Type Display Format Edit Items Documentation Items Initializ Values Allow undefined values at runtime "Clear" "Exit" OK Insert Delete Move Up Move Down Disable Item Cancel Help By clicking the "Insert" button add the following items: "Wait for event" "Run" Close the file "State Control.ctl" saving all changes. Return to the original vi that you opened. Save it in the same folder as the type def as "ME446L Lab 2" In the initial vi window, change from the Front Panel to the Block Diagram by pressing "Ctrl E" On the Block Diagram bring up the Functions Palette by right clicking. You may wish to "pin" the palette to the active window using the push pin icon in the upper left corner. At the bottom of the palette choose "Select a VI..." In the window that appears, navigate to the folder containing the type def and select the .ctl file you just made. Place the type def on the block diagram. Place a while loop on the block diagram. Inside the while loop place a case structure and wire the type def to the case structure though the while loop. ME 446L Lab 2.vi Block Diagram File Edit View Project Operate Tools Window Help 15pt Application Font Initialize B "Initialize, Default }" Place another instance of the type def inside the "Initialize" case in the case structure and set its value to "Wait for event." Wire the output of the type def to the while loop in a shift register deleting the wire connecting the first instance of the type def to the while loop and the tunnel and rewiring the first instance of the type def to initialize the shift register. Change the working case of the case structure to "Wait for event" and place an event structure there. Place another instance of the type def in the event structure and set the value to "Run." Wire the output to the tunnel on the case structure. Add a new case after the "Wait for event" case. The case definition window at the top of the case structure should say "Run" In the "Run" case create code that displays the message "You have pressed the Run button" on the front panel. Add an instance of the type def to return the state to the "Wait for event" case. Place three Boolean controls (buttons) on the front panel and name them, respectively; "Run", "Clear", and "Exit" Format the buttons so that the names appear on the button but the label is not visible.
Expert Answer:
Related Book For
Posted Date:
Students also viewed these mechanical engineering questions
-
List three specific parts of the Case Guide, Objectives and Strategy Section (See below) that you had the most difficulty understanding. Describe your current understanding of these parts. Provide...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
People who earn a higher salary can afford more goods, including health care. However, according to Grossman, they will choose a higher desired health stock. Why is this so, according to the model?
-
Sweetwood Company issues $5 million, 10-year, 9% bonds at 96, with interest payable annually on January 1. The straight-line method is used to amortize bond discount. (a) Prepare the journal entry to...
-
Given the information provided in Fig. 4.113, determine: (a) RC. (b) RE. (c) RB. (d) VCE. (e) VB. 12 V 2 mA Rc 7.6 V 24 V
-
If the sea power plant described in Problem 11.5 is to deliver power at \(\$ 8 / 10^{6} \mathrm{Btu}\), estimate the maximum permissible cost of the condenser and evaporator heat-exchanger surface in...
-
Richmond Sporting Goods, which uses the FIFO method, has the following account balances at August 31, 2012, prior to releasing the financial statements for the year: Richmond has determined that the...
-
Estimating Useful Life, Percent Used Up, and Gain or Loss on Disposal Husky Energy is one of Canada's largest integrated energy companies. Based in Calgary, Alberta, Husky is publicly traded on the...
-
Write a program to find the area of triangle when three sides a, b and c of the triangle are given. Use appropriate statements to input the values of a, b and c from the keyboard. Formula for the...
-
Given the input image, and convolutional and max pooling operations, draw the outputs in two dashed boxes. 12 1201 1 1 0 0 0 1 1 1 0 1 0 2 1 1 2 0 2 2 1 202 20 0 1 1 2 10 3 by 3 convolutional filter...
-
Draw a rough picture of the window produced by this code public class Main extends Application { @Override public void start (Stage primaryStage) { HBox data= new HBox(10); Label name LBL = new...
-
Determine the forces acting on the ground and the torque, T12, to maintain static equilibrium for the four-bar linkage shown in the figure below (a) (b) De 3 A B 2 C 4 P 210 T12 04 B 3 RAO2 RDO4 = 7...
-
Consider a 2- ply lamination with all plies at 45 degrees and both layers have the same hardness Q as below Let's assume you have the matrix: [ Q ] = [130 2.5 2.5 10 0 ] 0 0 3.5 ...
-
Consider the irrigation system shown below. The system consists of a reservoir with a maximum depth of h=2.5m, 5 sections of piping with a diameter of 5cm, 2 pipe bends (r/d=3), a wide-open globe...
-
Predict the major product for the following Diels-Alder reaction. Include stereochemistry when applicable. CN a. CN b. COMe C. NC
-
Write the binomial probability in words. Then, use a continuity correction to convert the binomial probability to a normal distribution probability. P(x 110)
-
Create action queries for Coast Jewelers (after backing up your file) a. Create and run an action query for Coast Jewelers that increases the sales markup 5 percent for all categories. Save this...
-
Snick's Board Shop has several questions for you that Excel can help answer. The company is planning for the future and would like you to prepare a present value analysis. Using the file ch7-10,...
-
Create additional select queries for Coast Jewelers using wildcards a. Create and print a select query for Coast Jewelers that lists the product name, quantity, supplier contact name, and supplier...
-
The City of Central Falls has engaged Robert Cohen, CPA to audit the June 30, 1999 financial statements of the City's Water Department under the GAO's Government Auditing Standards. Cohen's report...
-
Wil Stevens is executive vice president of a major automobile manufacturing company. Stevens was recently elected Mayor of Detroit. Prior to assuming office, he calls on you, his independent auditor,...
-
A public accounting firm has been engaged to perform the audit of a local, federally funded Housing Allowance Program. The objective of the program is to increase the housing standards of Agana...
Study smarter with the SolutionInn App