01-12-2007 04:45 PM
01-12-2007 05:40 PM
01-12-2007 05:40 PM
01-13-2007 05:38 AM
01-13-2007 06:05 AM
Sorry Kevin.
I have just looked over you post and vi and I am not on the right track. I think you are looking for several peaks in the data.
Mmm, I shall meditate on this, I will.
David
01-13-2007 02:47 PM
01-14-2007 06:02 AM
01-14-2007 08:44 AM
Thanks David. That is right the VI does give the right answer, but it just takes too long for my application. Yes I am just looking for one answer, but I output more than I need in the VI for inspection. The While loop stops when a peak is found that is not directly next to the higher peaks. When I say "not directly next to the higher peaks" I mean that the peak value I am looking for is more than +-1 index value away along both directions from the other peaks in the 2D array. Sorry for the confusion, it is difficult to describe. I only require the value of this peak. It just seems that I should be able to use a Labview VI, or clean up the VI that I attached to make it go faster. Maybe not..., then I will have to just deal with this VI. Thanks again.
Kevin Baker
01-14-2007 12:01 PM
01-14-2007 01:03 PM - edited 01-14-2007 01:03 PM
Well, I still don't get the problem. It would clarify what you mean by "peak". Your original data shows a single spherical feature (see attached picture of your data shown in a zoomed intensity graph). So... what do you want to find?

David, since the array is I16, you should replace with -32768 else the program will start failing if the data has a large negative offset (e.g. if the background plane is at -1000 an the peak or array max is -10).
Message Edited by altenbach on 01-14-2007 11:04 AM