LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Averageing data within a second

I'm new to lab view and I need to collect and output data from 50 chanels and take a sample ever X ms from each chanel. After one s I need to average the data colleted within that s and output it asthough that was that data collected for that s.

Any help will be appreciated. Thankyou
0 Kudos
Message 1 of 3
(2,722 Views)
There are a number of ways to do this but the problem is going to be estimating how many samples are in a second. If you are using one of NI's daq cards, you can simply use the scan rate for this estimate.

To do the averaging, you can output an array of data containing all the points read for one second. Then you index the array to make several 1 d arrays. Then use the add array elements found in functions >> numeric palette to add the values and then divide by the number of elements.
0 Kudos
Message 2 of 3
(2,722 Views)
Thank you. it worked very well. 😃
0 Kudos
Message 3 of 3
(2,722 Views)