<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE document PUBLIC "-//CNX//DTD CNXML 0.5 plus MathML//EN" "http://cnx.rice.edu/cnxml/0.5/DTD/cnxml_mathml.dtd">
<document xmlns="http://cnx.rice.edu/cnxml" xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="None">
  <name>Measurement Averaging VI </name>
  <metadata>
  <md:version>1.1</md:version>
  <md:created>2004/06/17 15:45:08 GMT-5</md:created>
  <md:revised>2004/07/16 15:31:08.662 GMT-5</md:revised>
  <md:authorlist>
      <md:author id="NationalInstruments">
      <md:firstname>National</md:firstname>
      
      <md:surname>Instruments</md:surname>
      <md:email>certification@ni.com</md:email>
    </md:author>
  </md:authorlist>

  <md:maintainerlist>
    <md:maintainer id="lizzardg">
      <md:firstname>Elizabeth</md:firstname>
      
      <md:surname>Gregory</md:surname>
      <md:email>lizzardg@rice.edu</md:email>
    </md:maintainer>
    <md:maintainer id="mshiralkar05">
      <md:firstname>Malan</md:firstname>
      
      <md:surname>Shiralkar</md:surname>
      <md:email>mshiralkar05@hotmail.com</md:email>
    </md:maintainer>
    <md:maintainer id="harika">
      <md:firstname>Harika</md:firstname>
      
      <md:surname>Basana</md:surname>
      <md:email>ilsai@rice.edu</md:email>
    </md:maintainer>
    <md:maintainer id="NationalInstruments">
      <md:firstname>National</md:firstname>
      
      <md:surname>Instruments</md:surname>
      <md:email>certification@ni.com</md:email>
    </md:maintainer>
  </md:maintainerlist>
  
  <md:keywordlist>
    <md:keyword>National Instruments</md:keyword>
    <md:keyword>LabVIEW</md:keyword>
    <md:keyword>Measurement Averaging</md:keyword>
    <md:keyword>VI</md:keyword>
    <md:keyword>exercise</md:keyword>
  </md:keywordlist>

  <md:abstract>In this exercise, the objective is to reduce noise in analog measurements by averaging.</md:abstract>
</metadata>

  <content>
    <exercise id="e1">
      <problem>
	<list id="l1" type="enumerated">
	  <item>
	    Run the <cnxn document="m12270">Voltmeter VI</cnxn>.
	  </item>
	  <item>
	    Introduce noise into the temperature measurement by
	    changing the <code>Temp Sensor Noise</code> switch on the
	    DAQ Signal Accessory to the <code>ON</code> position. The
	    measurements begin to fluctuate with noise spikes.
	  </item>
	</list>
	<section id="s1">
	  <name>Block Diagram</name>
	  <list id="s1l1" type="enumerated">
	    <item>
	      Stop the VI and display the <cnxn target="s1l1f1">block
	      diagram</cnxn>. Modify the block diagram to calculate
	      the average of 100 measurements.
	      <figure id="s1l1f1">
		<media type="image/png" src="MeasurementAveragingbd.png"/>
	      </figure>
	    </item>
	    <item>
		<media type="image/png" src="Collector.png"/>
	      Place the <code>Collector</code> Express
	      VI located on the <code>Functions&gt;&gt;Signal
	      Manipulation</code> 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
	      <code>Configure Collector</code> dialog box that
	      appears, set the <code>Maximum number of samples</code>
	      to <code>100</code>. Click the <code>OK</code> button to close the
	      dialog box.
	    </item>
	    <item>
		<media type="image/png" src="statistics.png"/>
	      Place the <code>Statistics</code> Express
	      VI, located on the
	      <code>Functions&gt;&gt;Analysis</code> palette, on the block
	      diagram. In the <code>Configure Statistics</code> dialog
	      box that appears, place a checkmark in the
	      <code>Arithmetic Mean</code> checkbox to perform
	      averaging on the collected data. Click the
	      <code>OK</code> button to close the dialog box.
	    </item>
	    <item>
	      Select <code>File&gt;&gt;Save As</code> to save the VI as
	      <code>Measurement Averaging.vi</code> in the
	      <code>C:\Exercises\LabVIEW Basics I</code> directory.
	    </item>
	    <item>
	      Display the front panel and run the VI. Notice that the
	      noise spikes are reduced when the <code>Temp Sensor
	      Noise</code> switch is turned on.
	    </item>
	    <item>
	      Stop and close the VI.
	    </item>
	  </list>
	</section>
      </problem>
    </exercise>
	      
  </content>
  
</document>
