LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

average of fluctuated value

Solved!
Go to solution

Hi, i am acquiring real real time signal. i have calculated SNR of received signal problem is thet SNR of signal is fluctuating between 9 to 15. i want to average it.

i require a block or function that calculate average of last 50 or 60 values so that fluctuation in SNR reduce. OR any other method for solving this isue 

(SNR data type is DBL)

THANKS

0 Kudos
Message 1 of 5
(3,853 Views)

Just create a VI that uses a feedback node, or shift register, to keep a buffer of the last 50 or 60 values. You can create the array of values to be stored in the feedback node by prepending new values to the array and then resizing array to 50 or 60.

Once you have an array of values (your buffer), you can run the Mean function on it.

The above will work if you're trying to do a running average. If you're trying to do an average of sections of data separate from each other, there are other methods.

 

You have posted two other topics before and never came back... If those other threads helped, you I would suggest you give Kudos and Marked Solutions (Unofficial Forum Rules and Guidelines). You received assistance from some top-tier LabVIEW experts there, whom I'm sure would appreciate your gratitude. Marked Solutions help others find this post when they have the same issure and Kudos motivate us all to keep coming back to help! Smiley Wink

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


Message 2 of 5
(3,844 Views)

Use "mean ptbypt" with a reasonable history lenght.

Message 3 of 5
(3,829 Views)
What Altenbach said. I was overcomplecating it with the idea that data other than just the DBLs was being stored. I feel dumb 😕

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 4 of 5
(3,822 Views)
Solution
Accepted by IrfanRazzaq

Hello,

 

Try the example below, see vi attached.

 

Hope it works for you.

 

example avg.png

--------------------------------------------------------------------------------------------------------------------------------------------------------------------

Wisdom is the principal thing; therefore get wisdom: and with all thy getting get understanding. Proverbs 4:7
Message 5 of 5
(3,819 Views)