3- Write a VI to convert a given temperature value from Degrees C to Degrees F.
ID: 2266800 • Letter: 3
Question
3- Write a VI to convert a given temperature value from Degrees C to Degrees F. and create subVI named C to F convertor. Build a thermometer (using random generator), which measures temperature and displays temperature values using the C to F convertor built in the earlier problem. 5-Create a thermometer using the above tow Vis and plot the output temperature values on a chart to display the variation of temperature values. At the same time show the mean of the temperature values on a thermometer. And save the temperature values to a file. SingExplanation / Answer
PROCEDURE:
1.Connect the USB cable to the sensorDAQ
2. Attach the other end of the USB cable to any unused USB port on your computer. the green LED on the sensorDAQ should be blinking.
3. Connect the vernier stainless steel Temparature probe to channel 1.
4. Launch labVIEW.
5. From the getting started window, click on the "Blank VI" link under the new category.
6. on the front panel, add a numeric control and lable it "Temp In", a boolean push button labled "chang units", and a numeric indicator labled "Temp Out", organize your front panel with the controls on the left and indicators on the right.
7. Go to the block diagram using <Ctrl-E>.
8. In that block diagram add the select function from the comparison palette and the add and multiply functions from the numeric palette.
9. Go back to the front panel using <Ctrl-E>.
10. Type a value of 30 in the Temp In contorl and Run the program.
11. Click the change units, and Run the program again to verify that the VI is performing properly.
12. open the icon editor by right clicing theicon in the upper right corner of the front panel and selecting Edit icon. create an appropriate icon and press OK button to close the icon editor.
13.Show the connector panel by right clicing the icon in the upper right corner of the front panel and selecting show connector.
14. Create terminals for the two front panel controls and the indicator.
a) Click on the upper left terminal box and click on the Temp In contorl.
b). Click on the bottom left terminal box and click on the Change units contorl.
c). Click on the upper right terminal box and click on the Temp out indicator
15. save the VI with the name Change Temp units and close this VI.
16. Open a new blank VI.
17. Go to the blockdiagram workspace using <Ctrl-E>.
18. Place the analog express VI in the blockdiagram with a timing length of 20 seconds and sample rate of 2 samples/second.
19. Place the change Temp units VI in to your block diagram workspace. this VI can found by going to the functions palette and choosing select a VI.
20. Navigate to the change Temp units VI and double click to place it on the blockdiagram.
21. Write the express VI's CH 1 Auto-ID terminal to the SubVI,s Temp in terminal.
22. Right click the SubVI's change units input terminal and select create>>control from the shortcut menu.
23. place the code within a while loop.
24. Write the analog Express VI's stopped out terminal to the while loop's conditional terminal. In addition create a stop button control by right clicking on the VI's "stop(F)" input terminal and selecting create>>control.
25. Go to the front panel and add a chart.
26. Go to the blockdiagram and write the subVI's Temp out terminal to the chart terminal.
27. Go to the front panel and run the VI. Click thechange units control to change the reading from Celsius to Fahrenheit.
Build a Thermometer:
Step 1: Put a few drops of water colouring into the water bottle and fill it to the top with lukewarm water.
Step 2: Insert the straw a couple inches into the bottle and mold the clay around it to seal the bottle and hold it in place. when you have a tight seal, whater should go up into the straw.
Step 3: Use a marker to mark up the level of the water in the straw.
Step 4: Set the bottle in a bowl of hot water. whatch the water level for awhile and then mark the level again.
Step 5: Set the bottle in a bowl of Ice and watch what happen, then mark the level.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.