LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array dimensions when converting from a cluster

Hello,
I am a beginner Labview programmer. Right now I am working on a VI
that converts a portion of cluster data to an array of tables. The
cluster is loop tunneled into a for loop then unbundled. I then build
it into a 2D array. When I hand the data back out of the for loop the
array dimensions are the same size. i.e. If the 2D arrays were 2x7 and
2x6 going in then going out I have both as 2x7's. This happens right
at the exiting loop tunnel (I suppose when it initializes the 3D
array). This places zeros in the last row of my 2x6 array. Can anyone
suggest a fix. Thanks a bunch.

Peter.

0 Kudos
Message 1 of 2
(2,583 Views)
Hi, Peter:

I think you want to have an array of different row sizes. I think it's impossible in LabView. At least using only arrays and without clusters.

And as all rows have the same number of elements, undefined elements get default value. In case of numerics, zeros.

You could create an array of cluster elements, and each element be an array 2D. Then each element can be an array of different sizes.

But that's just what you had at start.

Aitortxo.
Aitortxo.
0 Kudos
Message 2 of 2
(2,569 Views)