LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

average of real time value for 1minute

average of real time data coming in every 1min basis. 

suppose in 1min if 100 value come then avg of that.

so data comes in every 1minute , i have to average that values and save in database or text file

Prashant Soni
LabVIEW Engineer
0 Kudos
Message 1 of 5
(2,963 Views)
Where are you getting the data from? Using visa functions? It will take care of the real time data once the read function is inside the loop and the timeout is properly defined.
0 Kudos
Message 2 of 5
(2,956 Views)

If you know how many "values" you have, just add your values together and divide by the number of values.  (If you're putting values into an array, you can use the Array Size function to get the number of values in your array)

 

Another option is to use the Mean function.  This function can take an array of values and give you the mean.  (Very handy averaging on noisy DAQ channels) 

---------------------
Patrick Allen: FunctionalityUnlimited.ca
0 Kudos
Message 3 of 5
(2,941 Views)

Ok

So i have to check that in 1minute how much data comes and according to that i have to take average of that data.

 

right

Prashant Soni
LabVIEW Engineer
0 Kudos
Message 4 of 5
(2,925 Views)

Why don't you use the elapsed time function? Read the help on it, put it on a block diagram, experiment, learn how it works.

0 Kudos
Message 5 of 5
(2,922 Views)