11-07-2012 11:22 PM
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.
Solved! Go to Solution.
11-07-2012 11:52 PM - edited 11-07-2012 11:53 PM
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.
11-08-2012 12:08 AM
Thaks Altenbach, i was not using the shift register. Now it solves the problem.
11-08-2012 12:33 AM
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??
11-08-2012 12:57 AM
My code already shows the combination, just adapt it.