05-29-2019 01:14 AM - edited 05-29-2019 01:15 AM
Can anyone explain this behavior:
If I compare two empty (equal) arrays, the equal function says they are equal if I select "Compare Aggregates" but not equal if I select "Compare Elements"
Why does the "Compare Elements" function says they are not equal when they are?
(I know they are empty, -but they are BOTH empty)
Please see attached .vi
Br Per
05-29-2019 01:40 AM
The compare elements setting is returning an empty array of Boolean values, so there's no result (ie neither true or false).
05-29-2019 01:41 AM
05-29-2019 01:44 AM
05-29-2019 01:47 AM
Compare aggregate will expect data/value of inputs(inside of array), If it's an empty array inputs it won't aggregate the inputs. But compare elements won't
Both inputs are should be equal size/length of an aggregate, while the output also would be same size. If both inputs are different sizes while the output would be considered as which input have minimum size of input length