Summary: In this exercise, you will apply what you have learned so far in this course�structures, shift registers, waveform charts, arrays, graphs, file I/O, and so on.
EXERCISE 1
- Build a VI that performs the following tasks.
- Takes a temperature measurement once every second until you stop the VI or an error occurs.
- Displays both the current temperature and the average of the last three measurements on a waveform chart.
- If the temperature exceeds a limit, turns on an LED.
- After each measurement, logs the date, time including seconds, temperature, average of the last three measurements, and a one-word message describing whether the temperature is normal or over the limit. Logs data so each item appears in one column of a spreadsheet, as shown in Figure 1.
Figure 1 - After you stop the acquisition, plots both the raw temperature data and a best-fit curve in an XY graph and displays the average, maximum, and minimum temperatures.
TIP:
Start with the Temperature Logger VI. To complete this step, use portions of the Temperature Analysis VI.The front panel should be similar to Figure 2.TIP:
TheBuild Text Express VI
is limited to eight inputs. Use multipleBuild Text
Express VIs or use theFormat into String
function. You can build the delimiters into the format string to require fewer inputs.Figure 2
- Save the VI as
Temperature Application.vi
in theC:\Exercises\LabVIEW Basics I
directory.
No comments:
Post a Comment