03-06-2014 01:57 AM
Hello,
how to simply add columns in a 2D table (in a 2D table of different size : smaller)?
e.g : same as output array 1 , but with result output array 2 :
Thanks.
Ludovic
03-06-2014 02:04 AM
Labview does not support ragged arrays. All rows or columns have to be the same length.
If course you could simply format it into a table and use empty strings in places where you don't want to see anything.
03-06-2014 02:26 AM
Is a lot of code for a small function ..... right? (output array 3 excepted)
Ludovic
03-06-2014 02:29 AM
That seems really convoluted. I would just initialize a 2D array of strings at the final rectangular size, then use "replace array subset" to place the two arrays.
03-06-2014 02:58 AM
This is another work around.
Good luck.
03-06-2014 09:27 AM - edited 03-06-2014 09:29 AM
@altenbach wrote:
That seems really convoluted. I would just initialize a 2D array of strings at the final rectangular size, then use "replace array subset" to place the two arrays.
Here's what I had in mind.

03-06-2014 09:34 AM - edited 03-06-2014 09:35 AM
03-06-2014 09:45 AM - edited 03-06-2014 09:57 AM
P@Anand wrote:
This is another work around.
That first "reshape array" is actually not needed. The following is equivalent. Try it!

My earlier version has significantly fewer buffer allocations, so it might be more efficient for large arrays (not tested).
03-06-2014 10:00 AM
Hello,
Thanks for replyes,
I like last solution (little function & fewer buffer) , but if i build 2x2D array, you have 3D table ??? (how do you do ?)
Thanks
Ludovic
03-06-2014 10:04 AM