Hi Darin, thanks for your neat program.
I have a similar situation but imagine with no possibility to put the data source inside the while loop, in your program case imagine if the random generator is out of the while loop, do you know any method to take the average now?
Thanks in advance
Thanks for your code, I have sligtly a different problem, do you possibly know how to average in your program "basicAverage" if the data aquision is outside the while loop?
Care to share what code you have? I'm not sure what you are asking.
Here is a simplified version of my program, please consider we can only deal with the part in the "sequence structure" and we want to average the signal over time lets say it takes 10 signals and shows the average.
It would be a big help if you can help me.
PS: I can send you my code also but it wouldn't work there due to many subvis and data acquisitions.
this is an incomplete solution for it. if I just knew how could I show the data just when it was ready... that would be heaven..
You probably want to change it to use a running average. Then after X waveforms (X being your number of waveforms to sample over), then data will always be ready.
very much thanks for your kind reply, but its not totaly solved yet.
by choosing "running average" it still needs a time to average the signal, and meanwhile it shows the procedure not the final averaged signal at once, so imagine for saving the data I will have issue, can you please comment on that?
thanks in advance
PS: I have attached the modified program
I don't have LabVIEW on this machine, but I'm guessing you could just use a case structure to only save the data when the averaging is ready/complete.