ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Concatenate array?

Hi,
I have two arrays and I want to connect them into one. The problem is that I want to concatenate them ( meaning to add the columns of array 2 in to array 1 and not the lines in array 2 into array 1 like "Bulid array" does) - ( I have pressed the " concatenate array" in the options of " Build array" but still it doesn't work)
Does any one have an idea how to do this?
 
Expamle : array 1 ( {1 2 3}, {1 2 3}) array 2: ({4 5 6}, {4 5 6 }) -> result ({1 2 3 4 5 6}, {1 2 3 4 5 6}).
0 Kudos
Message 1 of 9
(5,512 Views)
Just use built array with the concatenate option. BUT now place a FOR loop around the built array node. (I think this is what you want).
 
 

Message Edited by altenbach on 07-18-2005 12:19 AM

Download All
0 Kudos
Message 2 of 9
(5,517 Views)
Hello Eran,

you can use this one too...


Message Edited by GerdW on 07-18-2005 09:23 AM

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 9
(5,503 Views)
Thanky you very much Smiley Very Happy
0 Kudos
Message 4 of 9
(5,495 Views)
Thanks,
0 Kudos
Message 5 of 9
(5,483 Views)

How can we concatenate two different size of arrays?

 

Array1 ( {1 2 3}, {1 2 3}) Array 2: ({4 5 }, {4 5 }) -> result ({1 2 3 4 5 }, {1 2 3 4 5 }).

 

Thanks

0 Kudos
Message 6 of 9
(4,961 Views)
same code (try it).  Different number of rows would be different (and ill-defined).
0 Kudos
Message 7 of 9
(4,948 Views)

dukeA wrote:

How can we concatenate two different size of arrays?

 

Array1 ( {1 2 3}, {1 2 3}) Array 2: ({4 5 }, {4 5 }) -> result ({1 2 3 4 5 }, {1 2 3 4 5 }).

 

Thanks


Cocantenate.JPG

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 8 of 9
(4,947 Views)

Thanks.

I got problem because I forgot to check on concatenate input.

0 Kudos
Message 9 of 9
(4,938 Views)