I'm trying to write a probe routine that will check a diameter. I don't have a problem, getting the x & y values. I don't know the mathmatical formula to get the diameter. The routine will measure 4 or more equally spaced points on the diameter, up to say 30 points. I want to be able to calculate the average diameter, and the maximum and minimum diameter. Any suggestions?