Lab Sheet 9
Lab Sheet 9
NAME :
MATRIC / STUDENT NO :
DATE :
LECTURER : DR. MUHAMAD SYAZMIE BIN SEPEEH
Name
Student ID Batch
Module Code BEE1081 Module Title Engineering Software and Applications
Year 1 Semester Session
No. Lab 9
Title Calculating the Minimum, Maximum and Average Temperatures
AIM:
To utilize array in LABVIEW for calculating the minimum, maximum and average
temperatures.
Page 2 of 4
FACULTY OF ENGINEERING AND BUILT
ENVIRONMENT
PROCEDURE:
1. Open a new VI and build the following front panel using the following tips.
a. Go to Numeric palette to the front panel. Right-click the Numerical Indicator and
label as Current Iteration.
b. Go to Boolean palette to the front panel. Right-click the Stop Button and label as
Stop.
2. Build the block diagram as shown below.
a. Select Select a VI… and choose Thermometer.vi (from previous exercise).
b. Right-click on Thermometer.vi and select Create >> Indicator.
c. Re-label the indicator as Current Temperature
d. Select the While Loop on the Programming»Structures palette.
e. Click and drag a selection rectangle around the blocks shown above.
f. Place the Wait Until Next ms function located on the Programming»Timing palette
and create a constant of 250. This causes the While Loop to execute every 0.25s
(250ms).
Page 3 of 4
FACULTY OF ENGINEERING AND BUILT
ENVIRONMENT
g. Place the Array Max & Min function located on the Programming»Array palette.
This function returns the maximum and minimum temperature.
h. Add the Mean VI located on the Mathematics»Probability and Statistics palette.
This VI returns the average of the temperature measurements.
i. Right-click the output terminals of the Array Max & Min function and Mean VI and
select Create»Indicator from the shortcut menu to create the Max, Min, and Mean
indicators.
j. Label the Max indicator as Max Temp, Min indicator as Min Temp, and Mean
indicator as Mean Temp.
3. Save the VI as Temperature Logger.vi.
4. Display the front panel and run the VI.
5. Write a lab report based on the experiment you have done.
Page 4 of 4