11-14-2007 06:15 AM
11-14-2007 06:26 AM
Actually, there are no set limits to the quantity of rows and colums with 2-D arrays... Although there is a finite limit to the length due to memory / addressing. I can't remember what that value is.
However, it is better to pre-allocate the size of the array in order to have better code performance. Otherwise, everytime you grow the array, it will need to re-allocate memory and as the size increases, so does the time to do this.
Concerning the 3 rows, it is simply a matter of indexing. Make sure you index where you want the values properly and you should hav a 2D array of 3 by n, where n is the length of you column. A good place to look for info on indexing is to use the Context Help (under Help Menu or click on question mark at top right of block diagram)
RayR
11-14-2007 06:27 AM
11-14-2007 06:37 AM
11-14-2007 06:42 AM
11-14-2007 06:44 AM
11-14-2007 06:47 AM
11-14-2007 06:56 AM - edited 11-14-2007 06:56 AM
11-14-2007 06:58 AM - edited 11-14-2007 07:00 AM
I purposely showed the greyout elements in the top array to demonstrate that the array has 3 rows. In the example, it has 10 columns. The surrounded grey-out values are uninitialized, so the array is 3 by 10.
I couldn't open your code either because I do not have LV8.5 installed on this machine..
I'll add a graph to my code and show the image of it. Back in a couple of minutes. 😉
11-14-2007 07:01 AM