LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Peak Detection of the passband waveform

Solved!
Go to solution

Hi shreya,

 


@shreya51 wrote:

I played with the Peak Detector parameters but it is real time data, I cannot make difference between the "main peak" and bunch of other peaks. If you can help me with that, it would be highly appreciated.

You still have not defined the difference between "main" and "other" peaks. How should I help when you don't explain what you are talking about?

 


@shreya51 wrote:

After your suggestions, I removed the use of difference between the first two samples of plot ("Y") data to scale the positions ("X") output data of the PeakDetector. But still I don't get the Locations in frequency.


Your samples are presented as a plain 1D array, missing all timing information.

So the "location" as given by the PeakDetector is the sample/array index of the peak. Until you provide information about the sample timing there is no way to convert from "array index location" to "frequency location"…

 


@shreya51 wrote:

when I realized when I need to work with real-time data, it takes longer to figure out the results I want.


Why does it take longer to work with "real-time data" than with "simulated/pre-recorded data"?

Until you describe the "results you want" (and how to get them) you will not get much (more/better) help…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 11 of 19
(1,417 Views)

@GerdW wrote:

Hi shreya,

 


@shreya51 wrote:

I played with the Peak Detector parameters but it is real time data, I cannot make difference between the "main peak" and bunch of other peaks. If you can help me with that, it would be highly appreciated.

You still have not defined the difference between "main" and "other" peaks. How should I help when you don't explain what you are talking about?

 



Hi, @shreya51,

To focus on one of @GerdW's questions, what do you mean when you say "main peak"?

I could easily imagine it being any of these:

Spoiler
whichPeaks_JoB.PNG (I apologize if you are colorblind)

So: What do you mean when you say 'main peak(s)'?

 

-joeorbob

 

0 Kudos
Message 12 of 19
(1,413 Views)

Hi Gred,

 

Thanks for guiding me. I got it what you are trying to say. I have attached the vi that includes Y axis data and X axis data and also that plots the graph. Now please help me if you find the solution.

0 Kudos
Message 13 of 19
(1,409 Views)

I have attached the picture of the graph and highlighted in Red to show which peaks I am interested in.

Thanks

0 Kudos
Message 14 of 19
(1,403 Views)

Peaks on the Graph_mod.PNG

Message 15 of 19
(1,374 Views)

Thank you @alexderjuengere for the solution. I adjusted width to 3 and threshold -45, then I started getting peaks I wanted. But I am still getting the unwanted peaks highlighted in red circle in the picture. How to get rid of those peaks?

0 Kudos
Message 16 of 19
(1,350 Views)
Solution
Accepted by topic author shreya51

Hi, @shreya51


I adjusted width to 3 and threshold -45, then I started getting peaks I wanted. But I am still getting the unwanted peaks highlighted in red circle in the picture. How to get rid of those peaks?

OK, so you don't want the quadratic polynomial peaks, you want the maximum data values of (nearly hand-picked) peaks...

 

Here's one solution that builds off of what has already been done, but if the data is not pretty close to this ideal (specifically having the "main peaks" to the left of other nearby local maxima), it may break. Use with caution.

Find -main peaks-_JoB.png

Does this meet your needs?

-joeorbob

 

EDIT: Whoops! The "in-snippet" comment is wrong. Where I said "next-peak-to-the-right", it's actually "next-peak-to-the-left".

0 Kudos
Message 17 of 19
(1,329 Views)

Thank you so much @joeorbob. This is what I was trying to get as result. I really appreciate it.

0 Kudos
Message 18 of 19
(1,319 Views)

Hi shreya51

 

I´m working on the LabView program for E5061b, could you please share with me the sub-VIs of the program that you´re using?, because I tried the official driver but still some sub-VIs are missing.

Also, is it possible to measure impedance (real and imaginary impedance) using E5061b and 16047e?.

 

Thank you!. 

0 Kudos
Message 19 of 19
(1,148 Views)