LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

distance between all points

Solved!
Go to solution

Hi all, I am trying to find the distance between all points in an array. I was able to get the all possible combinations but i am not getting the expected ouput.

For eg, if i have four points, total number combinations are going to be 6 and i want to find distance in all six combinations.

Please help me where i did mistake. Please find the attached vi.

Thanks
uday
0 Kudos
Message 1 of 5
(2,993 Views)
Solution
Accepted by topic author udka

Try something like this.

 

Since I don't have the IMAQ function, I am using complex data for each point, but it would be trivial to adapt it to your data structures instead.

 

Message 2 of 5
(2,988 Views)

Thaks Altenbach, i was not using the shift register. Now it solves the problem.

Thanks
uday
0 Kudos
Message 3 of 5
(2,981 Views)

hi altenbach, i've got one more problem here. I want to get the points combination along with the distances. Becuase based on the distances i want to filter some combinations. can you help me to do that??

Thanks
uday
0 Kudos
Message 4 of 5
(2,974 Views)

My code already shows the combination, just adapt it.

0 Kudos
Message 5 of 5
(2,967 Views)