LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

running statistics

I have a series of values one at a time and would like to calculate the average, SD and CV of these values. I use the "Statistics Express VI", but I'm not able to configure it so that previous data is included in the calculation and the calculation is updated after every incoming data point. Actually it updates itself, but the calculations are performed only with that one last value instead of including the ones before.
Thanks
Bernd
0 Kudos
Message 1 of 4
(2,774 Views)
One thing you could do is collect together your points and then perform the statistical function on the collection. In the Signal Manipulation palette is the Collector Express VI. When you configure it, you will be allowed to enter the maximum number of samples to collect and it will create a single signal. The newest points will be added on the end and when the maximum is reached, it will act like a sliding window and drop off old points from the start of the signal when it adds new points to the end.

I hope that this helps,
Bob Young
Message 2 of 4
(2,774 Views)
Hello Bob, thank you for your help. I just enter a maximum number of samples, which is higher than my total number of samples will ever be and then I have what I need.
Something else: can I protect my LabVIEW application with a password as read only so it will not be changed accidentally during usage?
Have a nice day
Bernd
0 Kudos
Message 3 of 4
(2,774 Views)
Sorry to bother you with that last question. That was too easy.

cu
0 Kudos
Message 4 of 4
(2,774 Views)