LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What I want to do is to get the co-ordinates of the elements of the third array which shows differences between 2 other arrays

Hello,
 
Ive have got a vi that compares two arrays by element and gives back the location of the elements that are not equal in a third array. What I want to do is to get the co-ordinates of the elements of the third array from the either the first or second array.
 
Many Thanks
 
(Labview 7.1)
 
Please find the vi attached below
0 Kudos
Message 1 of 3
(2,391 Views)


jihn wrote:
What I want to do is to get the co-ordinates of the elements of the third array from the either the first or second array.

Sorry, I don't understand what you mean. What are coordinates in this context?

If you for example want to get an array of all elements from the first array corresponding to the list of indices in the "locations" array, just add another FOR loop as shown.
 
Your VI has a major flaw! You need to reverse the order of "Add array elements" and "to I32". The "to I32" needs to come first! (see image). If you "add" first, you'll run into problems if you have more that 32k different elements because of overflow in the I16 integer.
 


Message Edited by altenbach on 02-21-2008 05:22 PM
Message 2 of 3
(2,381 Views)
Thanks very much that was exactly what i wanted.
0 Kudos
Message 3 of 3
(2,347 Views)