LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Filtering with Butterworth

Solved!
Go to solution

 

Hi everyone,

 

I have been trying to use Butterworth as a lowpass filter to limit the frequanies of my signal. I have provided the attached code in which two simple sine waves with 2Hz and 10Hz frequencies have been added. I have used low pass Butterworth filter with 4Hz as low cut of frequency. I expected to have the sine signal with frequency=2Hz (2<4<10) but the output of the filter (and also its FFT) is a very ugly!! and weird signal. Would anyone please help me to figure out where my mistake is and how to solve this problem?

 

Thank you,

Soran

0 Kudos
Message 1 of 3
(2,660 Views)
Solution
Accepted by topic author Soran

Soran,

 

The default values on your controls do not match the settings of the SImulate Signal VIs, specifically the sampling rate. When I set the sampling freq control to 250, everything seems fine.

 

Creating a waveform to tell the second FFT Power Spectrum VI about the timing information will give suitably scaled graphs for the filtered signals. Note that Spectrum Y-axes are set to logarithmic mapping in the image below.

 

Lynn

 

Timing info.png

 

Filter2.png

Message 2 of 3
(2,636 Views)

Thank you so much Lynn. It was very helpful.

 

Soran

0 Kudos
Message 3 of 3
(2,624 Views)