Download A. LabVIEW
Transcript
Lesson 6 Plotting Data Additional Exercises 6-7 Build a VI that displays two plots, a random plot and a running average of the last four points, on a waveform chart in sweep update mode. Use the following tips: • Use a For Loop (n = 200) instead of a While Loop. • Use a shift register with three left terminals to average the last four data points. • Use the Random Number (0-1) function located on the Functions»Arithmetic & Comparison»Express Numeric palette to generate the data. • Use the Bundle function located on the Functions»All Functions»Cluster palette to group the random data with the averaged data before plotting. Save the VI as Random Average.vi in the C:\Exercises\ LabVIEW Basics I directory. 6-8 Build a VI that continuously measures the temperature once per second and displays the temperature on a scope chart. If the temperature goes above or below limits specified with front panel controls, the VI turns on a front panel LED. The chart plots the temperature and the upper and lower temperature limits. You should be able to set the limit from the following front panel. Save the VI as Temperature Limit.vi in the C:\Exercises\ LabVIEW Basics I directory. 6-9 Modify the VI you created in Exercise 6-8 to display the maximum and minimum values of the temperature trace. Use shift registers and two Max & Min functions located on the Functions» All Functions»Comparison palette. Tip Select File»Save As to save the VI as Temp Limit (max-min).vi in the C:\Exercises\LabVIEW Basics I directory. © National Instruments Corporation 6-31 LabVIEW Introduction Course Manual