LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to to continuously average dynamic voltage data

Solved!
Go to solution

Thanks that works too!

Mike

 

How do I mark as solution?

0 Kudos
Message 11 of 26
(3,361 Views)

Hello Mike,

 

Thanks for marking as solution 🙂

0 Kudos
Message 12 of 26
(3,358 Views)

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

0 Kudos
Message 13 of 26
(3,149 Views)

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

0 Kudos
Message 14 of 26
(3,142 Views)

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

 


GCentral
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
0 Kudos
Message 15 of 26
(3,136 Views)

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.

0 Kudos
Message 16 of 26
(3,140 Views)

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

0 Kudos
Message 17 of 26
(3,136 Views)

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.


GCentral
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,132 Views)

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

 

 

0 Kudos
Message 19 of 26
(3,127 Views)

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.


GCentral
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
0 Kudos
Message 20 of 26
(3,109 Views)