LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview passing incorrect data array between 2-d and 3-d array

When I pass 16 2-d arrays of data into a 3-d array, I incorrectly get zeros where there should be no data. These zeros correspond to the final size of the array in the previous test ran. Seems like an initialization problem but I have checked all of that. I can probe before and after the build array. The 2-D array side will have say a 120 X 4 matrix while the 3-D side will have a 120x120 matrix with zeros from columns 5 - 120 instead of being blank. Any ideas?
0 Kudos
Message 1 of 4
(2,701 Views)
Posting an example or image of how your building the array would help.  It builds fine for me.  It appears to me that you have an array transposed somewhere (you are actually combining a 120 x 4 with a 4 x 120).  That would explain how you get a 120x120.
0 Kudos
Message 2 of 4
(2,697 Views)
You are misunderstanding how arrays function. If you append arrays of unequal sizes, you do not get 'blank' elements. The final array will expand to the largest row/column/page/etc. and will be padded with zeroes.
Message 3 of 4
(2,681 Views)
Well, I found it. Just needed the weekend to clear the mind. One of the channels was not initialized therefore it retained the data from previous runs. Thanks for looking.
0 Kudos
Message 4 of 4
(2,640 Views)