Saturday, September 25, 2010

Measurement Averaging VI

Summary: In this exercise, the objective is to reduce noise in analog measurements by averaging.

EXERCISE 1

  1. Run the Voltmeter VI.
  2. Introduce noise into the temperature measurement by changing the Temp Sensor Noise switch on the DAQ Signal Accessory to the ON position. The measurements begin to fluctuate with noise spikes.

1.A) Block Diagram

  1. Stop the VI and display the block diagram. Modify the block diagram to calculate the average of 100 measurements.
    Figure 1
    Figure 1 (MeasurementAveragingbd.png)
  2. Collector.png Place the Collector Express VI located on the Functions>>Signal Manipulation palette, on the block diagram. This Express VI creates an internal buffer to store the individual points. When the maximum number of input points is collected, the Express VI discards the oldest points and adds the newest points. In the Configure Collector dialog box that appears, set the Maximum number of samples to 100. Click the OK button to close the dialog box.
  3. statistics.png Place the Statistics Express VI, located on the Functions>>Analysis palette, on the block diagram. In the Configure Statistics dialog box that appears, place a checkmark in the Arithmetic Mean checkbox to perform averaging on the collected data. Click the OK button to close the dialog box.
  4. Select File>>Save As to save the VI as Measurement Averaging.vi in the C:\Exercises\LabVIEW Basics I directory.
  5. Display the front panel and run the VI. Notice that the noise spikes are reduced when the Temp Sensor Noise switch is turned on.
  6. Stop and close the VI.

Content actions

GIVE FEEDBACK:

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...
There was an error in this gadget

Popular Projects

My Blog List

Give support

Give support
Encourage Me through Comments & Followers

Followers