Summary: To graph and analyze data.
waveform chart. After the acquisition is complete,
the VI plots the data on a graph and calculates the minimum,
maximum, and average temperatures. The VI displays the best fit
of the temperature graph.
![]() Figure 1 |
waveform chart plot to a
small waveform chart.
waveform chart to
Temperature Chart.
waveform graph to
Temperature Graph.
Temperature Chart and select
Properties from the shortcut menu. On the
Scales tab, change the x-axis multiplier to
0.25. On the Format and
Precision tab, change the Digits of
Precision to 2. The
data for Temperature Graph will be
formatted on the block diagram.
waveform
graph to show two plots.
Plot 0 to
Temp and Plot 1 to
Fitted.
waveform graph
Temp plot to a small square.
Mean, Max,
andMinindicators yet. They will be created
from the block diagram.
![]() Figure 2 |
Thermometer VI on the block
diagram. Select Functions>>All Functions>>Select a
VI and navigate to C:\Exercises\LabVIEW
Basics I\Thermometer.vi. This subVI returns one
point of temperature data.
Place the Wait Until Next ms Multiple
function, located on the Functions>>All
Functions>>Time & Dialog palette, on the
block diagram. This function causes the For
Loop to execute every
Array Max & Min function,
located on the Functions>>All
Functions>>Array palette, on the block
diagram. This function returns the maximum and minimum
temperature.
Mean VI, located on the
Functions>>All
Functions>>Analyze>>Mathematics>>Probability and
Statistics palette, on the block diagram. This
subVI returns the average of the temperature
measurements.
Array Max
& Min function and Mean VI and
select Create>>Indicator from the
shortcut menu to create the Max,
Min, and Mean indicators.
Place the General Polynomial Fit VI,
located on the Functions>>All
Functions>>Analyze>>Mathematics>>Curve Fitting
palette, on the block diagram. This subVI returns an
array that is a polynomial fit to the temperature array.
Place the Bundle function, located on the
Functions>>All Functions>>Cluster palette,
on the block diagram. This function assembles the plot
elements into a single cluster. Press the
<Ctrl> key while you drag the function
to copy it. The elements include the initial
0),
the
0.25), and the
0.25 is required so that
the VI plots the temperature array points every
waveform graph.
Build Array function, located on
the Functions>>All Functions>>Array
palette, on the block diagram. This function creates an
array of clusters from the temperature cluster and the
best fit cluster.
Temperature Analysis.vi in the
C:\Exercises\LabVIEW Basics I directory.
Temp plot display in the
plot legend and select Common Plots>>Scatter
Plot from the shortcut menu, the top middle
option.
Fitted plot display in the
plot legend, select Bar Plots from the
shortcut menu, and select the second option in the
middle row. The waveform graph should
appear similar to the front panel in Figure 3.
![]() Figure 3 |
Comments, questions, feedback, criticisms?
"A full introductory course on programming with LabVIEW."