LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a signal with noise, and averaging the the multiple instances of the signal to remove the noise

Solved!
Go to solution

Hi!

 

I am trying to create a program that takes in a signal with noise and then averages multiple instances of the signal to remove the noise. In the attached VI, I have created a signal within a for loop that has noise. I am trying to average the multiple instances using the SubVI attached. I am not sure why I am not getting a average signal without the noise.

 

 

Download All
0 Kudos
Message 1 of 3
(811 Views)
Solution
Accepted by topic author guffadi

You forgot to wire the input and set it for "Average of Columns".  As a result, you are averaging the wrong dimension of the array.

 

Other tips.

1.  Initialize your shift register with an empty array.

2.  Concatenate the new data to the end of the array, not to the beginning of the array.

3.  For No. of Loops, save a value in there as default besides zero.  It makes us harder for us to debug when we have to choose values for your controls not knowing what you use.  Obviously zero is a bad default for that control since it does nothing.

 

0 Kudos
Message 2 of 3
(797 Views)

Thanks so much! I will keep in mind what you said for the next times

0 Kudos
Message 3 of 3
(792 Views)