LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

analyze x and y coord independently

hello,

I used the IMAQ image to array in order to compile the x and y coordinates for a variety of points, but now I want to analyze the change in each coordinate as compared to the previous iteration. I would like to be able to determine whether or not the value of each x and y coordinates is less than, greater than or equal to the previous value (the results of this comparison will lead into a case structure). I namely need help with how to unbundle the final coordinate output and how to define the two different values (do I need to store data in a second array?). I have attached the *.vi below and have tried the unbundle structure with no success.

thanks,
mgg

0 Kudos
Message 1 of 2
(2,379 Views)
Good morning mgg,
 
The datatype of the wire in question is an array of a bundle of 2 elements.  In order to access the indvidual elements, you will need to index through the array and then unbundle the cluster.  I have attached a screenshot to better illustrate the point!
 
I hope that this information is helpful.  Please post back if you have any further questions!
 
Respectfully,
0 Kudos
Message 2 of 2
(2,363 Views)