LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I extract the frequency of a (possibly noisy) signal?

Hi,

 

The simplest filter that can be built is a Moving Average Filter (FIR with equal coefficients = 1/N, N=filter order). You have an example in the attachment.

 

For building other filters you have to:

- search on internet for sites which have applets for filter coefficient computing. You have to choose filter type (IIR, FIR), characteristic (low pass, band pass..) and frequencies (Fc, Fs ..) and you'll get the coefficients

- implement the filter using one (for IIR) or two (for IIR) shift register. A shift register is an array which is shifted after each sample (FIFO).

 

Paul

 

 

 

 

0 Kudos
Message 11 of 25
(1,462 Views)

Thanks Lynn,

 

I dont know exactly what you mean by smoothing technique. It would be great if you could give me some example. 

 

Thanks.

0 Kudos
Message 12 of 25
(1,455 Views)

Thanks Paul,

Unfortunately I cannot open this file. My labview is 2009.

0 Kudos
Message 13 of 25
(1,451 Views)

Now it should work also under 9.0

0 Kudos
Message 14 of 25
(1,448 Views)

Yeah. It works.

 

Thanks Paul.

0 Kudos
Message 15 of 25
(1,446 Views)

I am trying to figure out how it works. So what is the cut-off frequency of this filter? and how can I see the output in a graphical indicator (it doesn't give me the option)? I know some of my questions may look primitive, but I am new to labview. 

0 Kudos
Message 16 of 25
(1,440 Views)

Asking questions is how you learn. We were all new to LV once.

0 Kudos
Message 17 of 25
(1,438 Views)

Oh, Thanks. That was encouraging. 

0 Kudos
Message 18 of 25
(1,435 Views)

Baran,

 

On this topic you are all by yourself. There is nothing that LabView can help you with filters, especially if you have the the basic version.

 

For digital filters, the cutting frequency is strong related to the sampling frequency. Using the same filter at different sampling frequency you'll get different cutting frequency. The Moving Average Filter is far away of being the best choice but it's ok, and works for most of the cases where advance signal analyze is not required.

 

You have to search on internet some Digital Filter basics. Building a Digital Filter is easy, you need to add, multiply some value and to shift some samples.You just need to understand some basics.

 

You can use the VI as a subvi and to connect to input (Array Input) a Sine + Noise and to add at output a Graph.

 

Paul

0 Kudos
Message 19 of 25
(1,431 Views)

I found out how to have a graphical indicator, just replaced it in front panel. But I am still wondering why in block diagram it doesn't give me the option to have a graphical indicator!

 

anyway, thanks. I guess I got it now. just one last thing. You said I can use it as subVI in other VIs. Is it a way I can group them together and save them for future use (like functions), or I just can copy/paste them anytime I need to use. 

 

Thanks again.

0 Kudos
Message 20 of 25
(1,422 Views)