LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to use 'build array' (concatenate) to create a array horizontally?????HELP

Solved!
Go to solution

I want to link nine arrays whose dimension is 2*2 horizontally,but the function 'build array' (concatenated way) made them vertically.........help me please..........maybe this is too simple.........since I am only a students who learnd labview only few months..

0 Kudos
Message 1 of 11
(9,861 Views)

One way could be to transpose all arrays, concatenate them and again transpose the concatenated array.

 

Cheers

Edgar

0 Kudos
Message 2 of 11
(9,855 Views)

Transpose array on the result. 🙂

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 3 of 11
(9,854 Views)

All you need to do is to add Transpose 2D array after Build Array(concatenate) .Smiley Wink

 

0 Kudos
Message 4 of 11
(9,818 Views)

A transpose operation only solves certain scenarios, but you don't give enough information on what you actually want.

 

For example, of you have 3 2x2 arrays:

 

a1 a2     b1 b2     c1 c2

a3 a4     b3 b4     c3 c4

 

What should the final vertical result be?

 

a1 a2

a3 a4

b1 b2

b3 b4

c1 c2

c3 c4

 

 

or

 

a1 a3

a2 a4

b1 b3

b2 b4

c1 c3

c2 c4

 

Or something else?

 

Please be much more specific. Maybe even attach a small VI containing typical default data.

0 Kudos
Message 5 of 11
(9,813 Views)

I have considered it before,but this method will destroy  the original arrangement of each 2*2 array which can't be changed when transition.......

 

a1 a2

a3 a4

b1 b2

b3 b4

 

become 

 

a1 a3 b1 b3

a2 a4 b2 b4          .................Smiley Frustrated

0 Kudos
Message 6 of 11
(9,787 Views)

If there are two arrays  A1= a1 a2            and          B1=b1 b2

                                        a3 a4                                 b3  b4

 

I want to link them like this way..........................a1 a2 b1 b2

                                                                       a3 a4 b3 b4

 

 

but the 'build array'(concatenate) made them like :            a1 a2 

                                                                                    a3 a4

                                                                                    b1 b2

                                                                                    b3 b4

 

 

0 Kudos
Message 7 of 11
(9,786 Views)
Solution
Accepted by topic author popandroid

All you have to do is follow Edgar's instructions he gave in message #2.

 

 

 

0 Kudos
Message 8 of 11
(9,781 Views)

@RavensFan wrote:

All you have to do is follow Edgar's instructions he gave in message #2.


.. and if you don't like all these transpositions, simply wrap a FOR loop around it instead. Same difference 😄

 

 

0 Kudos
Message 9 of 11
(9,773 Views)

Build Matrix:

 

BuildMatrix2.png

 

Default behavior is to append columns, selectable by Right-click menu. Also expandable by pulling down. 

0 Kudos
Message 10 of 11
(9,764 Views)