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.

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
(4,062 Views)

Hello Mike,

 

Thanks for marking as solution 🙂

0 Kudos
Message 12 of 26
(4,059 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,850 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,843 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,837 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,841 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,837 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,833 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,828 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,810 Views)