Jump to content
goran

Peak detection

Recommended Posts

Hi, I got a signal that looks like the attached file and want to get the indexes of the measurements in that signal. In the attached filed I got 6 measurements and want to cut out them out and process them. Is there a VI that finds them? Ie finds were the signals raises from the base and then returns. Any ides?

post-12262-125690130341_thumb.jpg

Share this post


Link to post
Share on other sites

Hi, I got a signal that looks like the attached file and want to get the indexes of the measurements in that signal. In the attached filed I got 6 measurements and want to cut out them out and process them. Is there a VI that finds them? Ie finds were the signals raises from the base and then returns. Any ides?

Use the Threshold Peak Detector to find all the leading edges.

Reverse the array, then use the Threshold Peak Detector to find all the trailing edges. Just remember that in the reversed case, you need to subtract the peak indices from the length of the array to get the current index values.

Share this post


Link to post
Share on other sites

Without getting into gradients, this is a quick and dirty example of extracting data over a threshold level directly into a 2D array, where each row represents each waveform above the threshold. Because LV uses square arrays, when you process each row, you will have to truncate the data where the zeros start.

Edited by ShaunR

Share this post


Link to post
Share on other sites

Without getting into gradients, this is a quick and dirty example of extracting data over a threshold level directly into a 2D array, where each row represents each waveform above the threshold. Because LV uses square arrays, when you process each row, you will have to truncate the data where the zeros start.

Thank you. Any chans anyone can save that VI in LW version 8.2?

Share this post


Link to post
Share on other sites

Thank you. Any chans anyone can save that VI in LW version 8.2?

Saved for 8.0. It might be an idea to set your labview version in your profile so that people know what version you are using.

Share this post


Link to post
Share on other sites

Saved for 8.0. It might be an idea to set your labview version in your profile so that people know what version you are using.

This is faster:

post-4344-125718972324_thumb.png

  • Like 1

Share this post


Link to post
Share on other sites

It might be an idea to set your labview version in your profile so that people know what version you are using.

I'm going to go a step farther and say that it might even be a good idea. ;)

Share this post


Link to post
Share on other sites

I'm going to go a step farther and say that it might even be a good idea. ;)

Naaah. I don't have those :P

Factor of 6-10, depending on data properties.

Now that IS worth a point.:D

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.