LabVIEW

cancel
Showing results for
Did you mean:

Solved!
Go to solution

Re: How to to continuously average dynamic voltage data

Thanks that works too!

Mike

How do I mark as solution?

Message 11 of 26
(3,421 Views)

Re: How to to continuously average dynamic voltage data

Hello Mike,

Thanks for marking as solution 🙂

Message 12 of 26
(3,418 Views)

Re: How to to continuously average dynamic voltage data

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?

Message 13 of 26
(3,209 Views)

Re: How to to continuously average dynamic voltage data

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

Message 14 of 26
(3,202 Views)

Re: How to to continuously average dynamic voltage data

@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.

There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 15 of 26
(3,196 Views)

Re: How to to continuously average dynamic voltage data

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.

Message 16 of 26
(3,200 Views)

Re: How to to continuously average dynamic voltage data

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..

Message 17 of 26
(3,196 Views)

Re: How to to continuously average dynamic voltage data

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.

There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 18 of 26
(3,192 Views)

Re: How to to continuously average dynamic voltage data

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?

PS: I have attached the modified program

Message 19 of 26
(3,187 Views)

Re: How to to continuously average dynamic voltage data

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.

There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 20 of 26
(3,169 Views)