LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array Append

Solved!
Go to solution

Why?

Download All
0 Kudos
Message 1 of 7
(1,371 Views)

You are building an array in the first dimension.  So the length of that dimension increases by 1.  The length in the second dimension will grow to the largest of the lengths in that dimension.  The largest is still 0, so the length is 0.

 

There is an old thread somewhere on this board discussing this exact situation.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 7
(1,359 Views)

Thanks for your help! 

I'm going to look for this old thread.

0 Kudos
Message 3 of 7
(1,332 Views)

Hi Bay,

 


@MapleBay wrote:

Why?


You add a row to an empty array: you get an array with one row, but still 0 columns…

Pretty logical!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 7
(1,331 Views)

@MapleBay wrote:

Why?


What else would you expect?? The number of elements of a multidimensional array is the product of the sizes. Any particular size can be !=0 and that is perfectly valid and meaningful.

 

 

Please don't make us click on attachments. You can embed images directly in your post. Thanks!

 

altenbach_0-1659371378490.png

 

0 Kudos
Message 5 of 7
(1,302 Views)
Solution
Accepted by MapleBay

@MapleBay wrote:

Thanks for your help! 

I'm going to look for this old thread.


Start reading here. Further down you'll also find links to discussions from 2003 and 2010.

0 Kudos
Message 6 of 7
(1,296 Views)

1.png2.jpg

0 Kudos
Message 7 of 7
(1,267 Views)