LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

insert 1d array into 1d array

Solved!
Go to solution
Highlighted

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
(726 Views)
Highlighted

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
(722 Views)
Highlighted
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

View Cyril Gambini's profile on LinkedIn
0 Kudos
Message 3 of 4
(720 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 LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO
0 Kudos
Message 4 of 4
(713 Views)