From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
07-30-2009 08:26 AM
Thanks that works too!
Mike
How do I mark as solution?
07-30-2009 08:29 AM
Hello Mike,
Thanks for marking as solution 🙂
10-26-2012 10:56 AM
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
10-26-2012 12:35 PM
Hi Mark
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?
Thanks
10-26-2012 01:14 PM
@Lili_M wrote:
Hi Mark
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?
Thanks
Care to share what code you have? I'm not sure what you are asking.
10-26-2012 01:44 PM
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.
10-26-2012 01:52 PM
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..
10-26-2012 02:09 PM
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.
10-26-2012 02:44 PM
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
10-26-2012 07:59 PM
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.