02-09-2007 10:08 AM
02-09-2007 10:22 AM
02-09-2007 10:25 AM - edited 02-09-2007 10:25 AM
Message Edited by Azazel on 02-09-2007 10:26 AM
02-09-2007 10:33 AM - edited 02-09-2007 10:33 AM
Message Edited by altenbach on 02-09-2007 08:35 AM
02-09-2007 10:40 AM
02-09-2007 11:16 AM
One little FYI to consider either now or for future reference: The way the elements of a 2D array are stored in physical memory is like this:
| Elements 0-n of Row 0 | Elements 0-n of Row 1 | Elements 0-n of Row 2...
Individual rows already represent contiguous chunks of memory, which allows LabVIEW the opportunity to optimize row-wise operations in many cases. Column-wise processing will require that element values get copied over into an independent chunk of memory, which can become dramatically less optimal.
Personally, I've sometimes found it better to transpose the 2D array first so that subsequent processing can be performed in the more efficient row-wise fashion, including the ability to auto-index 1 row at a time with a For loop. The transpose operation is performed in-place without requiring a new memory buffer.
-Kevin P.
03-20-2008 02:02 PM