LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Breaking a data cluster

I am using Ni Vision Assistant where I am gathering position data for circles. The data gathered is in the form of cluster of two elements. I want to unbundle the data so that I could apply some logic to the data. The technique that I am trying to use is as shown in the attachment. This technique works fine if I detect only one circle but for the case when more than one circle are detected it saves the data only for the first circle. Can someone guide me a technique where I can access data for all circles?

0 Kudos
Message 1 of 3
(2,213 Views)

The attachment doesn't show much, but I think you are on the right track to handle the array in the for loop if you don't know how big the array will be.

0 Kudos
Message 2 of 3
(2,185 Views)

If the data in question is the two boolean outputs of the FOR loop then the issue is that the tunnel isn't set to index.  You are only outputing the data from the last loop iteration.  Right click on the output tunnel, select "tunnel mode", then select "indexing".  That will give you two arrays of the same size as the input array. 

0 Kudos
Message 3 of 3
(2,182 Views)