LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Create 2D array of 1D aray of String

LOLS.

 So, is it right to say that my algortihm is much eficient than the expert coder at optimizing algorithms ??  :smileywink:

 

 

Ritesh

0 Kudos
Message 31 of 34
(989 Views)

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! 

0 Kudos
Message 32 of 34
(905 Views)

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. 

0 Kudos
Message 33 of 34
(892 Views)

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.

 

 

0 Kudos
Message 34 of 34
(882 Views)