09-30-2008 01:32 PM
05-07-2009 10:38 PM
hey all,
i've been fighting this beast for a day now, and just came across this post... i'm in a similar situation with reading data from a file and trying to have a 2d array of variable length string arrays. i didn't see that u addressed it directly but i'm coming to the conclusion that labview will truncate the string arrays to form a nice clean rectangle .
Is that why your using the 2d array of clusters?
Just when i think i'm gettin the hang of this.... i hit a snag like this... bleh!
05-08-2009 09:45 AM
joshuatree wrote:hey all,
i'm coming to the conclusion that labview will truncate the string arrays to form a nice clean rectangle .
True. In LabVIEW 2D arrays must be rectangular.
05-08-2009 11:30 AM
The size of a 2D array is fully described by exactly two numbers: (1) the number of rows and (2) the number of columns. (rectangular!). The size of each column is the number of rows and vice versa.
(Of course the string in each element can be any lenght.)
For non-rectangular array structures, this would not be enough of course, so it cannot be done! You would need more complicated structures, e.g. an array where each element is a cluster containing a 1D array.