LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to convert 8 Rows by 2 Columns to 2 Rows by 8 Columns?

Solved!
Go to solution

I have tried but came to an stop...

 

How do I convert 8 Rows by 2 Columns to 2 Rows by 8 Columns?

as shown in the vi attached

 

Thank you very much...

Eight by Two.jpg

0 Kudos
Message 1 of 5
(3,856 Views)

Hi Diego2000,

 

Trying using the Transpose 2D array function found in the Array functions palette, think it is what you are asking for.

Regards,

John McLaughlin
Academic Account Manager
National Instruments UK & Ireland
0 Kudos
Message 2 of 5
(3,851 Views)
Solution
Accepted by Diego2000

@JohnMc19 wrote:

Hi Diego2000,

 

Trying using the Transpose 2D array function found in the Array functions palette, think it is what you are asking for.

Regards,


No, for the required transformation reshape array is required, not transpose.

 

Compare:

 

Screenshot.png

 

Andrey.

Message 3 of 5
(3,842 Views)

Thank you Andrey:

 

I believe that will work.

 

So, if my array is of a longer size, I'll just enclose it

in a while loop, right?

 

thanks again...

0 Kudos
Message 4 of 5
(3,780 Views)

@Diego2000 wrote:

 

So, if my array is of a longer size, I'll just enclose it in a while loop, right?

 

 


No, it doesn't matter which size you have (the only memory is your limit). Just get dimensions programmatically and reshape it:

 

Screenshot.png

Andrey.

 

Message 5 of 5
(3,774 Views)