Problem 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.
-
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:
The Build Text Express VI is limited to
eight inputs. Use multiple Build Text
Express VIs or use the Format into
String function. You can build the delimiters
into the format string to require fewer inputs.
The front panel should be similar to Figure 2.
-
Save the VI as
Temperature Application.vi in
the C:\Exercises\LabVIEW Basics I directory.
Comments, questions, feedback, criticisms?
Discussion forum
Send feedback
"A full introductory course on programming with LabVIEW."