goran Posted October 30, 2009 Report Share Posted October 30, 2009 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? Quote Link to comment
Gary Rubin Posted October 30, 2009 Report Share Posted October 30, 2009 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. Quote Link to comment
ShaunR Posted October 30, 2009 Report Share Posted October 30, 2009 (edited) 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 October 30, 2009 by ShaunR Quote Link to comment
goran Posted November 2, 2009 Author Report Share Posted November 2, 2009 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? Quote Link to comment
ShaunR Posted November 2, 2009 Report Share Posted November 2, 2009 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. Quote Link to comment
Gary Rubin Posted November 2, 2009 Report Share Posted November 2, 2009 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: 1 Quote Link to comment
ShaunR Posted November 2, 2009 Report Share Posted November 2, 2009 (edited) Nice. How much faster? Edited November 2, 2009 by ShaunR Quote Link to comment
asbo Posted November 2, 2009 Report Share Posted November 2, 2009 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. Quote Link to comment
Gary Rubin Posted November 2, 2009 Report Share Posted November 2, 2009 Nice. How much faster? Factor of 6-10, depending on data properties. Quote Link to comment
ShaunR Posted November 2, 2009 Report Share Posted November 2, 2009 I'm going to go a step farther and say that it might even be a good idea. Naaah. I don't have those Factor of 6-10, depending on data properties. Now that IS worth a point. Quote Link to comment
Gary Rubin Posted November 2, 2009 Report Share Posted November 2, 2009 Factor of 6-10, depending on data properties. To be more precise: Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.