LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Insert into array function

Hello,

How can I add an element to a specific location of an array (row 3 and column 4 for example)?  I can only wire one index input into Insert Into Array function.  

 

Thanks 

0 Kudos
Message 1 of 2
(3,027 Views)

If you're trying to replace an existing element, then you should use Replace Array Subset, not Insert Into Array.

 

You cannot insert a single element into a 2-D array, because LabVIEW doesn't know how to shift the rest of the array to account for the gap that would appear if you were to do that. If you actually want to insert (and not replace), into a 2D array, then you need to insert an entire row or column, not a single element.

0 Kudos
Message 2 of 2
(3,024 Views)