LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

insert into array

Hi,
 
I'd like to insert into empty 2-D array element, i don't know indexes and the size of this element. I'd like to insert it at the bottom of the 2-D array. The function "insert into array doesn`t work, how can i do that ?

0 Kudos
Message 1 of 6
(3,386 Views)
Use Build Array instead. You will need to right-click on the Build Array function and select Concatentate Inputs
 
David
Message 2 of 6
(3,376 Views)
Thank you for the solution.
But what should I do if I'd like to insert the elements into the next column ( on the right side of the array)?
0 Kudos
Message 3 of 6
(3,366 Views)
Transpose Array, Build Array (Concatenate), Transpose Array
Message 4 of 6
(3,362 Views)
Build array seems fine for this use, but why doesn't Insert Into Array work? And what to do if you would like to arrange a set of 1D arrays into a 2D array, at specific locations? (dependant on an index coming with each array, so the sequence cannot be hardwired)
0 Kudos
Message 5 of 6
(3,227 Views)
Insert does not create new elements (or rows or columns) at the end of the array. Often it is better to initialize an array with a value which will never be used by your data (if possible) or a default value which will have minimal impact on the use of the data and then use Replace Array Subset.

Lynn
0 Kudos
Message 6 of 6
(3,209 Views)