LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Merging different arrays as one long array

Solved!
Go to solution

Hi there, I have some problem with merging of array.

 

 

Because of the natural of my VI, I will need to merge arrays together to form a single long array.

 

 

I have designed a VI using For loop and case-switching but the current array keep over-writing the previous array. I had enable auto-indexing on the For loop but it couldnt work.

 

 

I have attached two VI for further illustration.

 

 

Trying to merge arrays togther.vi  is the program i am working on.

 

Desired output of program.vi  is the actual thing i would like to obtain at the output.

 

 

Thanks for all the help.

Keith Tan

 

 

 

 

Download All
0 Kudos
Message 1 of 4
(2,774 Views)

Disable auto-indexing and replace the output tunnel by a shift register.

Use the "Build Array" primitive with "Concatenate" enabled to append your data.

0 Kudos
Message 2 of 4
(2,769 Views)
Solution
Accepted by Keith Tan

Hi Keith,

 

it's the magic of shift registers Smiley Wink

 

You should always note which LV version you're using!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Download All
Message 3 of 4
(2,767 Views)

Hi all, thanks for the fast response. Finally, i am able to process on to the next part of my program. Thanks for the help to you two.

 

I do have another problem but since it is different from this thread, I have decided to open a new thread, so that other can learn too!

 

Here's a Kudo for you, GerdW!

 

Thanks!

Keith Tan

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