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: 

Peaks in continuos signal

Hello,

I have I problem. Maybe someone can tell me, how I can find time interval between two peaks in two continuos signal? In this case HM?catTHM.PNG

0 Kudos
Message 1 of 7
(2,862 Views)
0 Kudos
Message 2 of 7
(2,854 Views)

I would use Array Max & Min on each of your arrays.  One of the outputs of that function is the index of the max.  Subtract the two indecies and then multiply by the samples rate (assuming both are sampled at the same rate).


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 3 of 7
(2,851 Views)

Capture.PNGMy real time signals looks like this.

 

0 Kudos
Message 4 of 7
(2,805 Views)

And I need to find interval every time the peaks occurs.

0 Kudos
Message 5 of 7
(2,799 Views)

Do I need shift?

0 Kudos
Message 6 of 7
(2,770 Views)

Assuming you have fetches of two continous wfrms..

 

What is your samplerate?

How do you capture the data?

 

Apply a a peak search on each wfrm part and calculate the difference ?

 

in your last data picture there are two white peaks .... how to decide which one to take?

 

Post your code and some real data (in a constant?) .....

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 7 of 7
(2,755 Views)