LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help with Delete Array

Solved!
Go to solution

I have a simple question. I have a 2D array, and I use the delete array to get a 1D array. First column only.

 

22274iABC9BDE856F7077D

 

I expect the deleted portion to be a 1D array, and not two, even though it correctly puts zeros to the other column.

 

because the problem is I need to use 1D array as input to other functions, but the delete array output is giving a 2D array out.

0 Kudos
Message 1 of 3
(2,669 Views)
Solution
Accepted by topic author ade77

Use Index Array to get the column.  The output will be a 1D array.

 

22276i6B6ACF45E842FD93

- tbob

Inventor of the WORM Global
Message 2 of 3
(2,665 Views)

Read the detailed help for the Delete From Array function.  If you wire the length input you get a 2D array.  If you do not wire the length input the deleted portion has one dimension less.

 

Unless you really need to delete something, tbob's approach is probably better.

 

Lynn

Message 3 of 3
(2,647 Views)