03-03-2016 04:07 PM
03-03-2016 04:22 PM
Since you know how long the waveform is, use the Get Waveform Subset VI in the Waveform palette. Then use the Waveform Min Max VI in the Waveform >> Analog Wfm palette
03-03-2016 07:39 PM
when you want to find picks there is problem
sometimes some pick are not picks that you want
picks vi work base on mathematic differential equation and some times it could find the pick that is just pick of noise
in this vi the pick that are in range up to 60 % of max pick selected
03-04-2016 11:05 AM
Sounds like you have most of the logic down in your head. This will get you most of the way there, but you have to put in your own data and zero crossings. It will give you the peak between each zero crossing. So if you put in 10 crossings, you'll get 9 peaks back, I hope this is what you expect.
03-04-2016 01:16 PM
@Gregory wrote:Sounds like you have most of the logic down in your head. This will get you most of the way there, but you have to put in your own data and zero crossings. It will give you the peak between each zero crossing. So if you put in 10 crossings, you'll get 9 peaks back, I hope this is what you expect.
Just a bit off there Gregory
Try a bit simpler solution since the number of "Crossings" is discoverable
03-04-2016 02:35 PM
Nice Jeff, I like the For loop. When you say "off" do you mean "more complex than it needed to be" or "not giving a correct result"?
03-04-2016 02:54 PM
@JÞB wrote:Try a bit simpler solution since the number of "Crossings" is discoverable
Jeff, I think you are missing a Subtract right before the Array Subset since the bottom input is supposed to be a Length and not and final index.
03-04-2016 03:44 PM
Jeff, I think you are missing a Subtract right before the Array Subset since the bottom input is supposed to be a Length and not and final index.
Yes Tim, Thanks. I rushed.
@ Gregory that "off" was looking at two issues. 1 if no zero crossings are seen the while loop is a poor choice (You get a array of[0] out vice the correct empty array) a for loop is the only way to solve that. 2 the abs val serves no purpose there (but probably does for the case where there are zero crossings in the data) better to abs val the array once outside the loop rather than abs val each chunk.
03-04-2016 03:53 PM
I see, both good points, thanks 🙂