<?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>Additional Exercises for Plotting Data</name>
  <metadata>
  <md:version>**new**</md:version>
  <md:created>2004/06/24 09:48:04.617 GMT-5</md:created>
  <md:revised>2004/07/15 09:29:37.693 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>exercise</md:keyword>
    <md:keyword>plotting data</md:keyword>
  </md:keywordlist>

  <md:abstract/>
</metadata>
  
  <content>
    <exercise id="e1">
      <problem>
	<para id="para1">
	  Build a VI that displays two plots, a random plot and a
	  running average of the last four points, on a <code>waveform
	  chart</code> in <code>sweep update</code> mode. Use the
	  following tips:
	</para>
	<list id="list1">
	  <item>
	    Use a <code>For Loop</code>
	    (<m:math>
	      <m:apply>
		<m:eq/>
		<m:ci>n</m:ci>
		<m:cn>200</m:cn>
	      </m:apply>
	    </m:math>)
	    instead of a <code>While Loop</code>.
	  </item>
	  <item>
	    Use a <code>shift register</code> with three left
	    terminals to average the last four data points.
	  </item>
	  <item>
	    Use the <code>Random Number (0-1)</code> function located
	    on the <code>Functions&gt;&gt;Arithmetic &amp;
	    Comparison&gt;&gt;Express Numeric</code> palette to generate the
	    data.
	  </item>
	  <item>
	    Use the <code>Bundle</code> function located on the
	    <code>Functions&gt;&gt;All Functions&gt;&gt;Cluster</code> palette to
	    group the random data with the averaged data before
	    plotting.
	  </item>
	</list>
	<para id="para2">
	  Save the VI as <code>Random Average.vi</code> in the
	  <code>C:\Exercises\LabVIEW Basics I</code> directory.
	</para>
      </problem>
    </exercise>
    <exercise id="e2">
      <problem>
	<para id="para3">
	  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.
	</para>
	<para id="para4">
	  Save the VI as <code>Temperature Limit.vi</code> in the
	  <code>C:\Exercises\LabVIEW Basics I</code> directory.
	</para>	  
      </problem>
    </exercise>
    <exercise id="e3">
      <problem>
	<para id="para5">
	  Modify the VI you created in <cnxn target="e2"/> to display
	  the maximum and minimum values of the temperature trace.
	</para>
	<note type="tip">
	  Use <code>shift registers</code> and two <code>Max &amp;
	  Min</code> functions located on the <code>Functions&gt;&gt;All
	  Functions&gt;&gt;Comparison</code> palette.
	</note>
	<para id="para6">
	  Select <code>File&gt;&gt;Save As</code> to save the VI as <code>Temp Limit (max-min).vi</code>
	  in the <code>C:\Exercises\LabVIEW Basics I</code> directory.
	</para>
      </problem>
    </exercise>
  </content>
  
</document>
