LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Best Way to do this array manipulation

I have an array as follows:

61 3 51 5 61.2 3.4 51.3 4.3 61 7 51 4

where the data is in sets of two so array[0] and array[1] make up one data set (61,3) and the next data set is (51,5) then (61.2,3.4) ect. What I want to do is to clean this array up so that any data set where the X values are within some set value, say 1 then they are seen as duplicates and removed, unless the y values differ by more than 1. So for example this set would clean up to


61 3 51 5 61 7


Is there any nice way to do this in labview?

Thanks.
Intern NSWCCD Carderock.
0 Kudos
Message 1 of 4
(2,718 Views)
Look at Decimate 1D Array. I think it will do what you want.

Lynn
0 Kudos
Message 2 of 4
(2,708 Views)
I tried to use the following VI but it doesnt seem to work, any suggestions? Thanks.
Intern NSWCCD Carderock.
0 Kudos
Message 3 of 4
(2,691 Views)
Is this what you wanted?
0 Kudos
Message 4 of 4
(2,674 Views)