LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to insert 1D array elements into specific place in 2D array

Solved!
Go to solution

Hello,

 

I have 2D array of color boxes [10x10], and i would like to replace elements with elements from 1D array [4 elements] at specific place.

 

 

When i trying to use ,,Replace array subset" i can only specify ROW INDEX or COLUMN INDEX where to start putting new elements. But i need to select both column/row index.

 

Any ideas? 

 

 

0 Kudos
Message 1 of 3
(3,069 Views)
Solution
Accepted by topic author kamill

Hi kamill,

 

when replacing a 1D array in a 2D array LabVIEW can only replace row- or columnwise.

When you want to replace specific, but independent elements you need to use an autoindexing FOR loop to iterate over the elements of your1D array(s)!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(3,058 Views)

Thanks, everything works now 🙂

0 Kudos
Message 3 of 3
(3,037 Views)