LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Filter PtByPt issue

Solved!
Go to solution

I am using a point by point low pass filter (butterworth) everything works well but what happens is that the direct component of the signal is attenuated a lot when a low pass filter should leave it intact, I send you a photo of the program (one I did to see the specific problem is not the original).

IMG-20200612-WA0049.jpg

With a cutoff frequency of 40Hz look at the big difference between the white signal (unfiltered) and the red signal (filtered).

IMG-20200612-WA0052.jpg

Virtually the signal does not change in time, its almos a component of DC. And even so it attenuates a lot ...

Thanks for everything!!

0 Kudos
Message 1 of 8
(3,188 Views)

Do you have a question here?

Can you attach real screenshots and a VI rather than difficult to see pictures of your monitor?

 

What is your loop rate?

Because the pt. by pt. is working with a scalar value and no timing information, it will assume the numbers are coming it at 1 Hz, even if your loop is running faster.

 

 

0 Kudos
Message 2 of 8
(3,152 Views)

I am really sorry for that bad quality pics...

Screenshoots:

Block Diagram.jpg

Front Panel.jpg

  I have attached the vi.

 

The question is: why if I have just a DC component, the signal is being reduced that way by a lowpass filter? I am missing something?

 

Thanks again.

0 Kudos
Message 3 of 8
(3,117 Views)
Solution
Accepted by topic author yamelbio

Hi yamelbio,

 

You have the initialize terminal of the Butterworth filter set permanently to TRUE so the internal state of the filter is being reset with every pass.  You should only initialize in the first pass through the loop: check the loop iteration value with Equal To 0? and pass the boolean result to the initialize terminal.

 

PsyenceFact

0 Kudos
Message 4 of 8
(3,108 Views)

I realized of that 5 minutes ago and I feel really stupid right now!! 

Thank you very much!

I was stucked for nothing...

Greethings from Cuba!

  

 

0 Kudos
Message 5 of 8
(3,102 Views)

Hi

I have the same problem but I was able to solve you can explain again

0 Kudos
Message 6 of 8
(1,180 Views)

@MalekLam wrote:

I have the same problem but I was able to solve you can explain again


Why do you need an explanation if you were able to solve the problem?

0 Kudos
Message 7 of 8
(1,147 Views)

I did not pay attention I will I was not able to solve the problem but good now I solved the problem thank you

0 Kudos
Message 8 of 8
(1,141 Views)