LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Frequency Measurement

I am taking an ECG signal(simulated) through thr NI USB 6009, as input.

 

When I display the waveform on a waveform graph, I can use the cursors to pin-point amplitude etc.

 

But is there any way I can directly display the frequency of ECG or sine wave, or any other peiodic signal ?

 

Thank you.

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

Hi Razor,

 

As far as I know, it's not possible, but I'm no Expert 😉

What you could do is use the FFT analysis VI to get the frequence of a certain graph.

You can use this execute this VI everytime there is a change on your graph for instance.

 

Kind regards,

- Bjorn -

Have fun using LabVIEW... and if you like my answer, please pay me back in Kudo's 😉
LabVIEW 5.1 - LabVIEW 2012
0 Kudos
Message 2 of 5
(3,239 Views)

Yes - the easy way is to position two cursors on the waveform at points representing the period of the waveform.  You can read the X-index of each cursor and subtract and use this to calculate the time interval (period) knowing the sampling rate.  The inverse of the period is the frequency of the periodic waveform.

 

By the way - please visit our Biomedical User Group at www.ni.com/biomedusers

 

Steve

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

Thank you very much for your suggestions!

 

Since there is no direct method, I will try out both methods listed above.

 

I actually wanted automatic calculation of frequency. Since I am new to LabVIEW, I think it may take some time to figure out how to implement alternate solutions.

 

Any VI's present as an example?

 

Thank you again.

0 Kudos
Message 4 of 5
(3,231 Views)

Hi,

 

This is a VI you could use.  You wire your graph as input and get the spectrum of your graph as output.

 

Autospectrum.png

 

 

More help on this VI can be found here

 

the outpust will be something like the image in attachment.  You will get a peak at the frequence which apears the most.

Autospectrum.JPG

Kind regards,

- Bjorn -

Have fun using LabVIEW... and if you like my answer, please pay me back in Kudo's 😉
LabVIEW 5.1 - LabVIEW 2012
0 Kudos
Message 5 of 5
(3,228 Views)