LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to measure frequency from offline data?

Hi!

I have to measure frequency of a signal. The signal is saved for a specific time duration. Is it possible to measure frequency of a signal using offline data? If so, how to do it?

 

Thanks at advance.

 

 

0 Kudos
Message 1 of 9
(3,455 Views)

I would say, you can do the same thing you would with online data. Detect two positive or two negaitve edges, measure the time and invert.



Remember Cunningham's Law
0 Kudos
Message 2 of 9
(3,450 Views)

If you could provide any example VI, it would be great help. Thanks.

0 Kudos
Message 3 of 9
(3,446 Views)

Where do you still have problems? What format is your data in? 



Remember Cunningham's Law
0 Kudos
Message 4 of 9
(3,432 Views)

Why not post a data slice ?

Ah, and the (sub) vi to save it, or a description of the data type.....

... and the expected  output you are looking for.....

 

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 5 of 9
(3,400 Views)

Hi

Plz see the VI. I tried to calculate frequency using this way. The 1st column of the spreadsheet data is time, 2nd is EMG and 3rd is ECG.

 

Thanks at advance.

0 Kudos
Message 6 of 9
(3,339 Views)

What do you want to take the frequency of?  I'm guessing the ECG since I actually see periods in it.

 

What you will want to do here is go through your data with a FOR loop and find where the ECG goes above a threshold (probably 0.1 in this case).  Get the times when this transition happens.  Now you just subtract the current threshold time by the previous threshold time.  That will give you a period in seconds.  Just use the Reciprical function to get the frequency.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 7 of 9
(3,318 Views)

Hi @crossrulz ! At first I would like to congratulates you for being knight of NI. Thank you for your reply. I need to measure the frequency of EMG. I understood your point but I have no idea how to do it.... It would be great help if you would help me a bit to do so... thanks again....

0 Kudos
Message 8 of 9
(3,299 Views)

What do you know about analyzing "signals" in sampled data?  Do you know about the relationship between sampling frequency, number of points, and how these affect the ability to estimate the frequency content of the underlying data?  Do you know what an FFT is?  What do you know about the quality of the signal you are trying to analyze?  For example, how precise is the time interval between the samples?  The data that you are showing in your example, for example, do not seem like precisely even samples.

 

Bob Schor

0 Kudos
Message 9 of 9
(3,243 Views)