LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

insert into array

Hi all,

I got a problem inserting data into an existing array. Pls refer to the jpg file, how could I insert an array into the 'red color' cell as Insert Into Array function only allow me to specify either row or column at one time. Pls help.. thanks

0 Kudos
Message 1 of 4
(2,567 Views)
For an existing 2D array, you would need to use the Replace Array Subset function to replace the contents of the array at that row/index.  Insert Into Array will only insert rows or columns at a time when using with a 2D array (as you already figured out).
 
-D
Message 2 of 4
(2,561 Views)
Hi Darren

I've tried the Replace Array Subset but with no success... Could you pls show me an example..? Let's say I have 2 1D of array. How can I place both of it according to my specified location. ?
0 Kudos
Message 3 of 4
(2,561 Views)

Hello,

Sorry, I skimmed the first post too fast and didn't realize you were trying to insert an array at that point.  I did a search on the forums and found a thread that I contributed to a while back that talks about this subject (and includes a sample VI):

http://forums.ni.com/ni/board/message?board.id=170&message.id=174709

Hope this helps,
-D

0 Kudos
Message 4 of 4
(2,513 Views)