09-08-2010 07:23 PM
Hello,
Array Size function returns a non zero values for an empty 2-D array. Please see attached VI (LV2009).
Can any one explain this?
09-08-2010 07:36 PM
I can confirm this bug also exists in LV2010. The reported dimensions are 51x0. Bizarre.
If you change that control to an indicator and create an "empty" constant, the constant also contains the errant data... creating a new indicator from this constant yields the same bum data and the 51x0 dimension. So, the source of the bug must be within the underlying data.
09-08-2010 07:43 PM
09-08-2010 07:51 PM
Ravens, from that link Snamprogetti's comment on 4-28-2010 "If you create a constant from one of these weird arrays, the constant will not have the non-zero size." contradicts my findings "If you change that control to an indicator and create an "empty" constant, the constant also contains the errant data."
09-08-2010 08:28 PM - edited 09-08-2010 08:29 PM
It does seem to contradict, but I'm not so sure his description there accurately describes what he was doing. He just says creates a constant from the "weird arrays", but really doesn't say where he was sourcing the constant from.
I found that if I create a constant from the indicator like you did, I get the 2x0 array.
If I create a constant from the wire going to the indicator, I get the 0x0 array (which sounds like what he got.)
(I told you that you'd find it worth reading. )