08-17-2010 11:31 AM
Hello,
I have this vi that take measurements data, finds running average, and suppose to count the number of times it exceeded the allowed deviation and time stamp whenever a measurement exceeds the threshold value from the running average. There is a problem in my algorithm, can someone please take a look?
Known problem:
-- number of exceeded times should reset only when cycle time=passed time.
I'll be happy to hear any suggestions you might have.
Thank you,
Solved! Go to Solution.
08-17-2010 12:49 PM
I did a little work on your vi and simplified it. I think it is doing what you want. I am not sure what the threshold part is doing so I left it. You were having problems with the local variables and you had a few greater thans hooked up backward. If you do not understand what I did let me know and I will explain it.
08-17-2010 01:07 PM
Hi Aeastet,
Thank you for your help, but I'm not able to open this vi since I have LabVIEW 2009. Can you please save it in an older format?
The threshold control controls how sensitive the measurement has to be (if the boolean switches to true on 5um, 10um, and etc...)
This vi is part of a larger vi where I use particle analysis....
08-17-2010 01:12 PM
Sorry I forget to downgrade it.
Here you go.
08-17-2010 01:33 PM
Thank you it works great, but I have one question: how come the time is always set on 4pm? When it sends it to the array sometime it sends the correct time and some times it sends 4pm.
08-17-2010 01:37 PM
Because you had a time stamp control hooked up to the dat time. You needed to replace it with a get time and dat in seconds. See my attached. You may also want to look at the moving average. I reinitilize it after the elapsed time has expired. I am not sure it you want it to work that way.
08-17-2010 01:43 PM
Sure, that's actually better to reinitialize it. Thanks.
But I'm afraid the time stamp to array still doesn't work when I run it....
08-17-2010 01:50 PM
Here you go. I think this is what you want.
08-17-2010 02:18 PM
Thank you very much, that's exactly what I needed.
08-17-2010 02:23 PM
you are welcome.