LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the peak value

Solved!
Go to solution

May I know how to get the 2 peak values v1 and v2, and 2 time durations t1 and t2.

 

Since there is a lot small amplitude noise, difficult to use the Max function simplely.

 

May need to use some filter such as wavelet or FIR to denoise it first. May I know how to use them, any toolbox in labview. How to make the curve smooth first.

 

Thanks.

 

0 Kudos
Message 1 of 11
(4,168 Views)
If you'd attach your data we (those of us that don't know the answer immediately) could have something to work with.
Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

Message 2 of 11
(4,147 Views)
Please see the data attached.
0 Kudos
Message 3 of 11
(4,093 Views)
Solution
Accepted by topic author alex.

I can't look at your vi now (I'm at work), but if your signals are long enough you may want to consider a median filter.  You can set the number of points before and after to use.  I have found it to be useful for some (not all) smoothing issues.

 

-Matt Bradley

************ kudos always appreciated, but only when deserved **************************




Message 4 of 11
(4,072 Views)
The graph on your VI doesn't look anything like the graph in your image. You image is quite "jagged". There is also no discernible "second" peak. Which graph is more like what you actually have?
Message 5 of 11
(4,069 Views)

Although it looks smooth, it actually has over 200 peaks when using (x2-x1)*(x3-x2)<0 to calculate

0 Kudos
Message 6 of 11
(4,051 Views)
Is the median filter inside some toolkit, thanks.
0 Kudos
Message 7 of 11
(4,050 Views)

turbot wrote:

Although it looks smooth, it actually has over 200 peaks when using (x2-x1)*(x3-x2)<0 to calculate


I don't quite get what that calculation is supposed to prove, and I don't see 200 peaks. I see maybe 2, and that's dependent on how you define "peaks".

 

Median Filter - You need the Full Development version of LabVIEW.

Message 8 of 11
(4,038 Views)

With my eye, also detect 2 peaks.

 

But with the program and algorithm, there may be some problem.

 

Attached my testing program.

Download All
0 Kudos
Message 9 of 11
(4,032 Views)

I don't get resonable data out of the 23 file.

 

But an idea for this:

* Use a numerical derivative function followed by a trigger for the zero crossing. Thaht shoul give you some local maxima.

 

Is this related to your other post?

 

Felix

Message 10 of 11
(4,028 Views)