LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Distance between objects

I am using the Circle Distance example.vi (attached) and I want to improve the code. Imagine 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?

Download All
0 Kudos
Message 1 of 5
(3,343 Views)

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.

 

 

0 Kudos
Message 2 of 5
(3,206 Views)

Thanks!! I already solved that problem. I did the same thing but using diferent points. 

 

Ana

0 Kudos
Message 3 of 5
(3,195 Views)

Whoops. When I replied I didn't notice the thread was nearly 2 months old 😛

0 Kudos
Message 4 of 5
(3,176 Views)

hello asrm 

 

i have the same problem . can you give your solution ? 

 

thanks

0 Kudos
Message 5 of 5
(3,004 Views)