LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

case strucuture autoindexing loop question

Hi,

I am building up an 2d array by autoindexing an array generated in a for loop. In the true condition of this case structure, a random 1d array is generated. In the false condition of the case structure no 1d array is generated, but I still wire an empty array out of the case structure. The resulting 2d array has rows of zeroes in it where I placed an empty array. What I would like to have instead is the resulting array with none of the rows containing zeroes. I would basically like to have the a 2d array composed of the 1d arrays created when the case structure is true.
0 Kudos
Message 1 of 2
(2,516 Views)
A 2D array must have all rows of equal lenght, and autoindexing will give you one row per iteration. Your result is normal.
 
If you don't want to add rows at certain iterations, you need to built your array in a shift register as in the attached image (in the other case, just wire the 2D array across).
 

 

Message Edited by altenbach on 02-05-2007 11:07 AM

0 Kudos
Message 2 of 2
(2,512 Views)