02-08-2012 05:20 AM
I am using the Circle Distance example.vi (attached) and I want to improve the code. Imagine a picture with 4 circles. So instead of measuring the distance between one circle and 2 circles (VI example), I want to measure the distance between 1 circle and 3 circles ( see the picture attached).
How I can do that?
04-03-2012 12:57 AM - edited 04-03-2012 01:05 AM
If you look through the code it uses the IMAQ point distances VI to "[Compute] the distance between consecutive pairs of points."
What you want to do is essentially the same thing, but with a different set of inputs.
You just need to repeat some of your points to get the full combination.
Instead of just which is what I think the given example does1-2 2-3 1-3 (if you decrease the accuracy so it catches you squares you'll obviously go higher than 3)
You could do 1-2,1-3,1-4 , 2-3, 2-4, 3-4
I don't have time right now to confirm this is how it works, or a way to do this however.
04-03-2012 02:35 AM
Thanks!! I already solved that problem. I did the same thing but using diferent points.
Ana
04-03-2012 10:16 PM
Whoops. When I replied I didn't notice the thread was nearly 2 months old 😛
05-07-2016 02:58 PM
hello asrm
i have the same problem . can you give your solution ?
thanks