crelf Posted May 4, 2006 Report Share Posted May 4, 2006 run the attached VI - what's the difference between the two arrays? Download File:post-181-1146771059.vi Quote Link to comment
Darren Posted May 4, 2006 Report Share Posted May 4, 2006 It is possible to have a 0xn or an nx0 array in LabVIEW, where n is a non-zero number. It has to do with the way the dimension data is stored. The easiest way I know to reproduce this is to take three empty 1D arrays, wire them all into a Build Array, and the size of the resulting 2D array is 3x0. If any of the dimensions of an array are zero, you have an empty array. In LabVIEW 7.x and previous, the best way to determine if an array is empty is to do an Array Size, and wire the resulting array of dimensions to Multiply Array Elements to see if you get zero. In LabVIEW 8.0 and later, you can simply wire your array into the Empty Array? function in the comparison palette. -D P.S. - This is not a bug. Quote Link to comment
crelf Posted May 4, 2006 Author Report Share Posted May 4, 2006 It is possible to have a 0xn or an nx0 array in LabVIEW, where n is a non-zero number. Awww man - you answered too quickly! Quote Link to comment
Darren Posted May 4, 2006 Report Share Posted May 4, 2006 Sorry, was I supposed to wait a while for people to be shocked and amazed before answering? -D Quote Link to comment
crelf Posted May 4, 2006 Author Report Share Posted May 4, 2006 Sorry, was I supposed to wait a while for people to be shocked and amazed before answering? Yes - yes you were Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.