09-02-2005 02:14 PM
09-02-2005 02:36 PM - edited 09-02-2005 02:36 PM
Message Edited by tuned99 on 09-02-2005 02:38 PM
09-02-2005 02:36 PM - edited 09-02-2005 02:36 PM
Sorry, I no longer have LabVIEW 6.1 installed, but your program does exactly what you tell it to do. 😉
Here's how to fix it so it does what you want:
RIght-click on the input tunnel of the 2D array and "disable indexing".
Replace the "array subset" node with "Index array". Connect the blue wire to the upper index.
(Of course, if the three indices are consecutive, you could just use array subset on the 2D array directly, skipping the second loop.)
Message Edited by altenbach on 09-02-2005 12:38 PM
09-02-2005 02:51 PM
Here's what is happening in your example inside the second loop:
The 2D (orange) and the 1D array (blue) are set to autoindex. The 1D array is shorter and thus determines that the loop will run 3 times.
The output tunnel forms again a 2D array. Since some of the 2D arrays are short, they get padded with zeroes. The final 3x9 array will look as follows:
row #0: elements 1-9 of original row 0
row #1: elements 2-9 of original array, padded with one zero at the end.
row #2: elelments 3-9 of original array, padded with two zeroes at the end.
All clear? 😉
09-02-2005 02:51 PM
09-02-2005 03:24 PM