LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

peak detector

Solved!
Go to solution

Hi

 

I am using the peak detetor VI.

The detector algorithm is able to find the peaks in the data, but not the valleys.

How is that possible, or what settings should I use?

 

 

0 Kudos
Message 1 of 5
(2,717 Views)

hi PabloNL,

 

how about some try and error?

 

peaks: threshold = 2

1.PNG

 

 

 

valleys: threshold = 4

2.PNG

 

 

 

 

Regards,
Alex

Message 2 of 5
(2,686 Views)

btw the math behind is discret calculs

0 Kudos
Message 3 of 5
(2,677 Views)
Solution
Accepted by topic author PabloNL

Hi PabloNL,

 

What Alex means is that if you want to detect the valleys in your signal you will need a threshold that is defined as a higher value then your valley values. If you want to detect the peaks you will need a threshold which is a lower value then your peak values. Since you had a threshold value of 2 it works for your peaks but since the valleys are a higher value then your threshold they where not detected.

 

Regards, 

Rik Prins, CLA, CLED
Software Development Engineer
Message 4 of 5
(2,648 Views)

While using this peak detection.vi how to find location in terms of time . They have given an equation in "help"  but I was not able to understand that perfectly.

 

@nk
0 Kudos
Message 5 of 5
(2,544 Views)