06-06-2011 01:50 PM
Hi All,
I generate some data, and I would like to get continously the standard deviation of the last measured N double number. I do not want to get a result until I have already got at least N number from the generated data. I have attached the not yet finished test vi. I thought this should be relatively easy to do, but I feel what I try to do (I would make some modulo iterating for the index of the insert into array function, so I would always replace the oldest member in the double array) is really not elegant. Maybe someone could point me toward the proper direction.
Thanks!
Solved! Go to Solution.
06-06-2011 03:50 PM
There was some problems with the above vi, I have made some modifications, I think this is a working solution. I have attached it. But my questions remains: is it a good/nice solution? In my real application I will use a double array with size approx. 1024-2048.
Thanks for any advice!
06-07-2011 06:56 AM
okey, some more search in the forum, and I have found there is a built-in solution in labview for this,
in Point by Point >> Prob & Stat :
http://forums.ni.com/t5/LabVIEW/Creating-Trendline-of-50-Period-Moving-Average/m-p/1182653
🙂