Jump to content

Peak detection


goran

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

Link to comment

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.

Link to comment

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
Link to comment

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?

Link to comment

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.