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
Attachments:
ArrayDiff701.vi ‏25 KB

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
LabVIEW Champion . Do more with less code and in less time .
Attachments:
Different.png ‏9 KB

Similar Messages

Maybe you are looking for