LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

count analog peaks

I am trying to count analog peaks above a certain value and am having trouble with the count because apparently the loop that is receiving the signal is only looking at the last value in the sample. I see there is a vi for Peak Threshold Detection that would (I think) accomplish what i need, but it is not available in the Base package of Labview. My vi does everything I wish right now, except for correctly counting the sample, and I would like to avoid upgrading at this time if it is possible. Can anyone tell me how I can evaluate all the data points in the sample? I am fairly new to Labview and appreciate any help I get.

Thanks,
Peter
0 Kudos
Message 1 of 4
(2,884 Views)
Without a look at your vi, I'm afraid we will not do much for you
Chilly Charly    (aka CC)
0 Kudos
Message 2 of 4
(2,865 Views)
Thanks for responding, I figured out a way to do it myself. I put the sample into an array, sort it, then find the index of the first array item that exceeds my threshold and add this to the previous cycle's total. I have attached my vi if anyone cares to give me any feedback, this is my first non-trivial project in Labview.

Message 3 of 4
(2,859 Views)

Glad you did it !

Congratulation !

If you want to share your successes, don't forget to join the subvis !

Chilly Charly    (aka CC)
Message 4 of 4
(2,846 Views)