LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Compare table

Solved!
Go to solution

Hi :

 

i need to compare two index table , attach see file please ,, and if there is any change in specific row or column then indecate about row and colunm number

 

how can i do that in labview

 

thanks

wisam

0 Kudos
Message 1 of 4
(3,304 Views)

Use an = comparison between the two tables.  You will get a 2-D array of booleans.

 

Then just search for the False elements in that array.

0 Kudos
Message 2 of 4
(3,291 Views)

Since the Test name list is different, you will get mismatches (false match) because the names are not the same for the same element index.

 

Did you want to first lookup the name and adjust the index before comparing the rest of the columns?  In other words, did you want to offset the row index to match the Test name?

0 Kudos
Message 3 of 4
(3,283 Views)
Solution
Accepted by topic author Elyan_wisam

I've creates 2 examples in the attached VI.

The top loop searches for any row that has a mismatch and tells the index of the first mismatch.

The bottom loop searches for all mismatched row/column, regardless of having previously found a mismatch in that row.  This one gives you a full list.

 

The example(s) should give you an idea of how to implement your solution.

 

0 Kudos
Message 4 of 4
(3,278 Views)