LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Delete blank rows in array

Hello dears 🙂

 

An easy question....i have created a 2-D array, but some rows are empty

 

in which way can i remove the entire empty lines? 

 

I have tried the solution in the attachment but it doesn't work 😞

 

thanks 🙂

 

PS: i use Labview 2009

0 Kudos
Message 1 of 4
(5,561 Views)

Hi Gianluca,

 

you check single elements of your 2D array, then you try to delete those elements from your array.

 

This way will not work as your array needs to be "rectangular": all rows need to have the same number of columns (and vice versa)!

You can either delete full rows or full columns…

 

You should also keep track of the row/column you want to delete, using the loop iterator seems wrong here!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 4
(5,537 Views)

original.png

 

 

Also some OpenG tools might be helpful, or when making the array in the first place, some conditional auto indexing out of For and While loops might help eliminate making those empty rows in the first place.

0 Kudos
Message 3 of 4
(5,518 Views)

Hi Hooovahh,

 

some conditional auto indexing out of For and While loops might help

The OP is using LV2009!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 4
(5,494 Views)