02-14-2008 03:06 PM
02-14-2008 03:17 PM
Ok I will try to re-attach the file.
02-15-2008 03:11 PM
02-18-2008 01:32 PM
Hi,
Thanks for the help. I am using Labview 8.2 but I think what I want to do is a little more complicated. I want to find all the max's and all the min's then average them, not just the one max and min of the array. I had one suggestion from a co-worker that is a less sofisticated way to do this and that is to read in the array, sort it, then if I know how many peaks and valleys there are in the line profile, I can just use the top and bottom of the sorted array to grab the max's and min's. Then get the average of that. I can do this, but was looking for a more elegant soltution that didn't require you to know the number of max's or min's in the array, but would just pick them all out and then allow you to calculate an average from that point on.
Any help you could give would be greatly apprecited.
Thanks,
BlueEyes76
02-18-2008 02:35 PM - edited 02-18-2008 02:41 PM
Hi BlueEyes76,
i think a solution could be to create a histogram over all your data. If you do it you have maybe to spheres. One with the big values and one with the small ones. Then you have to fix your ranges for min and max and then you can go through the array and search for the values over the defined max, and under the defined min. From this you can create your average.
Hope it helps.
Mike