取消
顯示結果 
搜尋替代 
您的意思是: 

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 積分
1 條訊息(共 9 條)
5,952 檢視

Did you try Peak Detection VI?

-----

The best solution is the one you find it by yourself
2 條訊息(共 9 條)
5,940 檢視

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.  眨眼表情

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
3 條訊息(共 9 條)
5,920 檢視

@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.  眨眼表情


You really meant to quote me? 冷淡表情

-----

The best solution is the one you find it by yourself
0 積分
4 條訊息(共 9 條)
5,915 檢視

2x Niquist sampling theorem fulfilled 🙂

 

-AK2DM

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
5 條訊息(共 9 條)
5,900 檢視

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.  眨眼表情


You really meant to quote me? 冷淡表情


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

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 積分
6 條訊息(共 9 條)
5,888 檢視
I got it:)
-----

The best solution is the one you find it by yourself
0 積分
7 條訊息(共 9 條)
5,872 檢視

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 積分
8 條訊息(共 9 條)
5,832 檢視

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
9 條訊息(共 9 條)
5,787 檢視