From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

insert 1d array into 1d array

Solved!
Go to solution

Hi :

 

I have two indicators if 1d array

 

I want to marge between these two array and get in the final 1D array result

 

array 1

5

6

 

array 2

7

8

9

 

I want to get final 1D array result

 

5

6

7

8

9

 

can any one help

 

Thanks

 

 

0 Kudos
Message 1 of 4
(2,475 Views)

the build array primitive (fron the array palette) will let you do this, be carefull it can be used to concatenate arrays or to build a 2D array from 2 1D arrays, in your case you want to "concatenate 2 1D array into a 1D array, you can chose the option you want by right clicking on the build array primitive on the front panel and enable/disable the "concatenate" option.

also, you van pull/drag the build array function to increase the number of input (2 in you case).

 

hope this helps


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 2 of 4
(2,471 Views)
Solution
Accepted by Elyan_wisam

Hi,

 

You can use the 'buid array' function.

Wire your two arrays on the 'build array', then right-click on the 'build array' function and select 'concatenate'.

 

It'll work like a charm !

CLA, CTA, LV Champion
View Cyril Gambini's profile on LinkedIn
This post is made under CC BY 4.0 DEED licensing
0 Kudos
Message 3 of 4
(2,469 Views)

Hi Elyam,

 

next time rethink your wording: You don't want to insert data into an array, but you want to append data to an array!

Best regards,
GerdW


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