From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

notch waveform

Dear colleagues,

I need to construct a notch waveform for my research project.
"Notch waveform" means the waveform of the following type: it contains all frequencies in the interval f1-f2, nothing in the interval f2-f3 and all frequencies from the f3-f4 interval. In other words "notch" is obtained via reverse Fourier transformation of the following profile in the frequency domain:

    f1 _________f2       f3________________f4
__|                       |____|                                     |_________

Currently I have no idea how to do this in LabView and any help would be highly appreciated.

Thanks in advance!


0 Kudos
Message 1 of 5
(2,730 Views)
If you have the Signal Processing package you can use the Waveform Conditioning "Filter.vi" to implement a bandstop (notch) filter. If you don't have the package, you can do it by the grunt method as I've done:
Do a FFT on your time domain data. Then examine the bins of the FFT data and overwrite the frequency amplitudes (from F2 cutoff to F3 cutoff as in your example) that you want to notch out with appropriate values (similar to your expected noise floor amplitude or with some rolloff on the band edges).

Message Edited by Bill@NGC on 07-26-2007 11:11 PM

0 Kudos
Message 2 of 5
(2,715 Views)
Thank you!
Question: how one can do FFT and inverse FFT in LabView?
My task is not to make a bandstop filter and I don't have any time domain data.
What I actually need is to construct the time domain waveform by inverse Fourier transformation of the "notch" profile in the frequency domain. Currently I have no clue how to do this in LabView.
0 Kudos
Message 3 of 5
(2,705 Views)
The FFT and inverse FFT VIs are in Signal Processing >> Transforms. The output is in the form of an array. Determine which elements of the array represent the frequencies you want to notch out and set them to zero before doing the inverse FFT. The frequency of element [i] is i*df. The help files specify how to calculate df.

Lynn
0 Kudos
Message 4 of 5
(2,700 Views)
Just to reemphasize that the value to which you set the bandstop frequencies should equal your expected noise floor and Y value units. In other words, you want to push those bandstop frequencies well down into the noise. A zero value may not necessarily be appropriate.
0 Kudos
Message 5 of 5
(2,688 Views)