LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

why the signal amplitude changes sosososo much????after i used a filter

Solved!
Go to solution

i am so puzzled !

i used butterworth coefficient  vi get the fs=8000hz,low frequency 500hz filter coefficient and used in labview vi ,put 50hz sine wave in ,i dont know why the siginal changed sososo much amplitiude ?i just put a pure wave in the filter no noise no other frequency wave !please help me!i think the labview makes me so puzzled!

 

 

 

 

 

ni2.png

ni1.png

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

You didn't wired anything to the high cutoff frequency input so it is using the default value of 0.45 Hz.

 

Ben64

0 Kudos
Message 2 of 8
(2,998 Views)

lowpass filter dont need higher cutoff frequency

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

You're right, my bad.

 

Ben64

0 Kudos
Message 4 of 8
(2,987 Views)

I'm not sure why, but try using the "IIR Cascade Filter.vi" instead of the "IIR Filter.vi".

Or use the Butterworth Filter.vi which combines the coefficient and actual filter VIs.

 

Message 5 of 8
(2,909 Views)

@dan_u wrote:

I'm not sure why, but try using the "IIR Cascade Filter.vi" instead of the "IIR Filter.vi".

Or use the Butterworth Filter.vi which combines the coefficient and actual filter VIs.

 


dan_u is correct. Use the IIR Cascade Filter.vi

 

IIR_Cascade.png

 

IIR Response.PNG

0 Kudos
Message 6 of 8
(2,896 Views)
Solution
Accepted by topic author labview测控小能手

The IIR filter.vi requires coefficients in direct form. 

 

So, in your original code, we should convert the coefficients to direct form VI before passing it to the IIR filter.vi.

 

IIR_cascadeDirect.png

BR
0 Kudos
Message 7 of 8
(2,874 Views)
yes,u are right man!
0 Kudos
Message 8 of 8
(2,832 Views)