LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to find the maxima and minima of a sawtooth wave form

Hi,

I am getting a problem in my programme and please help me to find out the solution. I have my experimental data in an excel spreadsheet and on plotting these data, it nearly gives a sawtooth waveform. Now I want to find out all the local maxima and minima points of the waveform. Then I want to extract all the data points between each local maxima and minima. For better understanding my problem I have paste a diagram.

 

Regards

bdcpp08

 

example.png

0 Kudos
Message 1 of 9
(5,284 Views)

Did you try Peak Detection VI?

-----

The best solution is the one you find it by yourself
Message 2 of 9
(5,272 Views)

P@Anand wrote:

Did you try Peak Detection VI?


Look at the example called Peak Detection and Display.vi to get started.  I does half of what you need already.  Smiley Wink

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
Message 3 of 9
(5,252 Views)

@NIquist wrote:

P@Anand wrote:

Did you try Peak Detection VI?


Look at the example called Peak Detection and Display.vi to get started.  I does half of what you need already.  Smiley Wink


You really meant to quote me? Smiley Indifferent

-----

The best solution is the one you find it by yourself
0 Kudos
Message 4 of 9
(5,247 Views)

2x Niquist sampling theorem fulfilled 🙂

 

-AK2DM

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
Message 5 of 9
(5,232 Views)

P@Anand wrote:

@NIquist wrote:

P@Anand wrote:

Did you try Peak Detection VI?


Look at the example called Peak Detection and Display.vi to get started.  I does half of what you need already.  Smiley Wink


You really meant to quote me? Smiley Indifferent


Well... Yes, why wouldn't I?  You DID just mention the Peak Detection VI and I was elaborating on its use.  See the connection? Smiley Wink

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 6 of 9
(5,220 Views)
I got it:)
-----

The best solution is the one you find it by yourself
0 Kudos
Message 7 of 9
(5,204 Views)

Hi 

thanks all for suggesting to my post. But the peak detection vi gives the peak amplitude corresponding to the index value. I want to find out the peak position corresponding to time and to extract the data points between the peaks and the valleys. can you give some hints regarding to this problem.

Thanks again.

0 Kudos
Message 8 of 9
(5,164 Views)

You can do the math to convert from index to time easily.  A waveform consists of a T0 (start time), dT (delta T or time between points) and an array of Y values.  T get real time multiply dT * # of samples (data point) and add it to the T0.  Look at Waveform Get Time Array in the Waveform palette, that's what it does.

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
Message 9 of 9
(5,119 Views)