LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

low pass filter and peak detection

Hello everyone, 

 

my code generates two different waveforms and im using NI 6009, however i am uncertain on how and very exactly to implement low pass filter in order to acquire smoother plots, in addition, i want to be able to use peak detection script in labview.

 

Thank you 

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

The most simple way would be to use the in-built functions in LV.

These should do the job 🙂

Peak Detector.JPGButterworth.JPG

Message 2 of 5
(3,190 Views)

Hi Tom,

what are the recommended values for fs, fh and fl. 

 

Cheers, 

Yazan

0 Kudos
Message 3 of 5
(3,163 Views)

 

sine-with-noise--filter--FRONT.pngsine-with-noise--filter.png

all VIs have default values for their terminals, that doesn't mean they are recommendend in general (and i don't know either).

i think you will have to play with it a little.

as a starting point, i added the snippet .png which you can save and drag+drop onto a block diagram.

 

regards


If Tetris has taught me anything, it's errors pile up and accomplishments disappear.
Message 4 of 5
(3,155 Views)

Ive added the low pass filter on my block diagram but i havent been able to achieve that smooth curve. I am using a NI USB-6009 for my project and my frequency is 2 kHz.the top is the main output plot, and the other two are after i placed the low filter pass you can see from my block diagram i attached. Thanks in advance. 

image.png

 

 

 

0 Kudos
Message 5 of 5
(3,136 Views)