LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do i create new array combination from 2 same size array

Solved!
Go to solution

My question is :

An Array A and B is same 2D size .

Now, i want to take row 1,ra1 from array A, and row 1, rb1 from array B, into new array , Array C. then continue to next row and so on. So it will be

 

2D array consist of

 

 

Spoiler

ra1,

rb1,

ra2,

rb2,

...

...

ra(n)

rb(n)

 

 

 

I using for loop function, as below, but what happen is, it become 3D array, not 2 D array. so ra2,rb2 placed as page, not below rb2.

 Any idea how could i finish this?

 

0 Kudos
Message 1 of 5
(3,062 Views)
Solution
Accepted by topic author aimansolutions

You are not making sense. There is no 3D array on your image. Why the long loop delay? Why a WHILE loop instead of a FOR loop.

Since you are autoindexing AND indexing, you only retaining the diagonal elements.

 

Try this:

 

 

There are many other ways to do this...

0 Kudos
Message 2 of 5
(3,041 Views)

I am not sure this is what you want.Just let me know.

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 3 of 5
(3,034 Views)

actually i already edit to try troubleshoot. i give the real diagrams before i edit.

 

The wait time is only for troubleshoot using probe. Sorry about that.

 

Here a attach original diagram and front panel

 

🙂 again sorry for wrong attachment 

 

Download All
0 Kudos
Message 4 of 5
(3,027 Views)

thanks for super fast reply 🙂 .. i think i got the answer. i hope can make a moving stick figure using this array .. 🙂

0 Kudos
Message 5 of 5
(3,009 Views)