LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

deleting duplicate elements in an array

Hello All,
I am trying to delete duplicate elements in an array. Let me explain: there are 4 column in an array. Sometimes the value of the element in the first column repeats. When this happens I want to delete that entire row. I have attached a picture explaining what I want to do.
Is there any way I can do this. Thanks,
KB
0 Kudos
Message 1 of 2
(3,048 Views)
Fortunately, you have the advantage that column 1 is already sorted, so you just need to test if consecutive elements are duplicate.

The attached example (LabVIEW 7.0) shows an easy way to do this. Let me know if the code is not clear to you.

If the first row is not sorted, it would get a bit more complicated.
Message 2 of 2
(3,048 Views)