<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Hardware triggered analog input with averaging using Multifunction DAQ in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Hardware-triggered-analog-input-with-averaging-using/m-p/322312#M166345</link>
    <description>Try using the Waveform Measurement VIs located under Signal Processing
on the funcions pallete.&amp;nbsp; There are a number of VIs mad ealready
that will average, rms, dc average, etc.&lt;BR /&gt;
&lt;BR /&gt;
that way you wont have to seperate the signal like you were and make mistakes in the algebra.&lt;BR /&gt;
&lt;BR /&gt;
Kenny&lt;BR /&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 08 Feb 2006 20:20:34 GMT</pubDate>
    <dc:creator>Kenny_K</dc:creator>
    <dc:date>2006-02-08T20:20:34Z</dc:date>
    <item>
      <title>Hardware triggered analog input with averaging using Multifunction DAQ</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Hardware-triggered-analog-input-with-averaging-using/m-p/321735#M166088</link>
      <description>&lt;DIV&gt;hi,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I am trying to develop a code to acquire data using DAQcard-6062E. I have to acquire a fixed number of samples upon a hardware analog trigger and then check for the trigger again and if there is a trigger then start acquisition again. i also have to do averaging of the data. I tried to modify some of the example codes to do the averaging but the averaging doen't seem to work. i am attaching the code i am using for reference. can some one please suggest me how to do it...and if there is a problem with the code can some one suggest any modifications i have to do. I am using DAQmx for the code.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;thanks&lt;/DIV&gt;
&lt;DIV&gt;jithendra&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 07 Feb 2006 22:35:39 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Hardware-triggered-analog-input-with-averaging-using/m-p/321735#M166088</guid>
      <dc:creator>jithendra p</dc:creator>
      <dc:date>2006-02-07T22:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Hardware triggered analog input with averaging using Multifunction DAQ</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Hardware-triggered-analog-input-with-averaging-using/m-p/322279#M166325</link>
      <description>&lt;P&gt;Hello jithendra,&lt;/P&gt;
&lt;P&gt;Are you trying to average each of the sets of data you acquire?&amp;nbsp; Or, are you averaging all of the data?&amp;nbsp; If the first is what you are doing (I think this is the case), then it would be easier to use the array size and sum functions to perform your averaging instead of using a For Loop.&amp;nbsp; Try this out.&amp;nbsp; If you are still seeing problems with the averaging, can you please explain what the problem is?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;Laura&amp;nbsp; &lt;/P&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 08 Feb 2006 19:47:53 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Hardware-triggered-analog-input-with-averaging-using/m-p/322279#M166325</guid>
      <dc:creator>Laura F.</dc:creator>
      <dc:date>2006-02-08T19:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: Hardware triggered analog input with averaging using Multifunction DAQ</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Hardware-triggered-analog-input-with-averaging-using/m-p/322312#M166345</link>
      <description>Try using the Waveform Measurement VIs located under Signal Processing
on the funcions pallete.&amp;nbsp; There are a number of VIs mad ealready
that will average, rms, dc average, etc.&lt;BR /&gt;
&lt;BR /&gt;
that way you wont have to seperate the signal like you were and make mistakes in the algebra.&lt;BR /&gt;
&lt;BR /&gt;
Kenny&lt;BR /&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 08 Feb 2006 20:20:34 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Hardware-triggered-analog-input-with-averaging-using/m-p/322312#M166345</guid>
      <dc:creator>Kenny_K</dc:creator>
      <dc:date>2006-02-08T20:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: Hardware triggered analog input with averaging using Multifunction DAQ</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Hardware-triggered-analog-input-with-averaging-using/m-p/322322#M166352</link>
      <description>&lt;P&gt;hello Laura&lt;/P&gt;
&lt;P&gt;thanks for the reply. what i am trying to do is, if i specify the number of averages as 10, then it has to acquire&amp;nbsp; and add 10 1-D arrays of data (the length of each would be equal to the number of samples) and then divide the resultant array by 10. i have to do the averaging because the raw data is noisy and the waveform oscillates, so if i do averaging then i would get stable waveform. &lt;/P&gt;
&lt;P&gt;My application is to acquire an analog signal from an Electromagnetic Induction Sensor, as the sensor is moved over a lane of around 100 m long.&amp;nbsp; The acquisition should start on a&amp;nbsp;analog trigger and continuously acquire data until i reach the end of the lane, and store the data in a file. I also want to do averaging to reduce the noise and stor the averaged data as well.&lt;/P&gt;
&lt;P&gt;The trigger signal is a square wave, and the repetition rate of the signal is around 20 Hz (50 % duty cycle). I need to sample at around 50 kHz.&lt;/P&gt;
&lt;P&gt;can u suggest me if the method i am using is correct or there is any other way of doin it.&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;
&lt;P&gt;jithendra&lt;/P&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 08 Feb 2006 20:32:20 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Hardware-triggered-analog-input-with-averaging-using/m-p/322322#M166352</guid>
      <dc:creator>jithendra p</dc:creator>
      <dc:date>2006-02-08T20:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Analog Input Averaging</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Hardware-triggered-analog-input-with-averaging-using/m-p/322399#M166389</link>
      <description>&lt;DIV&gt;hi....&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I need to do acquire an analog input with averaging. An example VI from Labview seems to be doing the job i need. But it doesn't have any averaging in it. &lt;/DIV&gt;
&lt;DIV&gt;can someone suggest me how to do it.&lt;/DIV&gt;
&lt;DIV&gt;i have tried some tricks but it is not working&lt;/DIV&gt;
&lt;DIV&gt;i am attaching the VI that's working for me without averaging.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;thanks&lt;/DIV&gt;
&lt;DIV&gt;jithendra&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 08 Feb 2006 23:00:55 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Hardware-triggered-analog-input-with-averaging-using/m-p/322399#M166389</guid>
      <dc:creator>jithendra p</dc:creator>
      <dc:date>2006-02-08T23:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: Hardware triggered analog input with averaging using Multifunction DAQ</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Hardware-triggered-analog-input-with-averaging-using/m-p/322693#M166515</link>
      <description>&lt;DIV&gt;hi Kenny,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;thanks for your suggestion. I tried the Advanced DC-RMS VI to get the averaged data and it seems to work.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;thank you&lt;/DIV&gt;
&lt;DIV&gt;jithendra&lt;/DIV&gt;</description>
      <pubDate>Thu, 09 Feb 2006 15:07:20 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Hardware-triggered-analog-input-with-averaging-using/m-p/322693#M166515</guid>
      <dc:creator>jithendra p</dc:creator>
      <dc:date>2006-02-09T15:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Hardware triggered analog input with averaging using Multifunction DAQ</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Hardware-triggered-analog-input-with-averaging-using/m-p/322985#M166637</link>
      <description>&lt;P&gt;Hi jithendra,&lt;/P&gt;
&lt;P&gt;I am glad to hear that the VI Kenny suggested worked out for you.&amp;nbsp; Let us know if you run into any other problems.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Laura&lt;/P&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 09 Feb 2006 21:16:23 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Hardware-triggered-analog-input-with-averaging-using/m-p/322985#M166637</guid>
      <dc:creator>Laura F.</dc:creator>
      <dc:date>2006-02-09T21:16:23Z</dc:date>
    </item>
  </channel>
</rss>

