Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69018

pass continuous discrete averages out of loop

$
0
0

Hi,

 

I have a DAQ that's acquiring 1 sample at 1 Hz. I am trying to get the program to continuously acquire samples but to output the average of every 10 samples, which I use at a later point in the program for calculations. I have found a lot of topics on the NI forums that discuss running averages but this is not what I am looking for. I have also found this link that shows a labview program that can acquire a given number of samples, average them and write to a file (2nd diagram from the top). This is very similar to what I need except for the part where it displays the mean within the case structure.

 

http://forums.ni.com/t5/LabVIEW/How-to-make-labview-program-to-get-average-value-of-200-reading/td-p/1106557/page/2

 

I am able to write the averages to a file or display them within the loop. However, I need to pass the average of every 10 samples out of the loop. In other words, the DAQ acquires continuously but at the end of every 10 seconds, the algorithm outputs the average of the data from those 10 seconds. Can anyone tell me if this is possible in Labview 2010 and what function will help me achieve this?

 

Thanks for reading!


Viewing all articles
Browse latest Browse all 69018

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>