LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

adding dimension to 2d array

It's not a matter of it being a "bad idea". It's a perfectly fine idea, if the indexing of the array matches your card numbers. With a 3D array the first index refers to the page, and the indexing starts at 0. You can't change this, and you can't skip index numbers. Thus, if you collect each 2D array as "pages", then "page0" would correspond to the first card's data, "page1" corresponds to the second card's data, and so on. The index number may not correspond to your card number. If they don't, then a 1D array of clusters may be of more benefit to you. Each element of this cluster refers to a card, and the 1D array of clusters is the array of cards. The cluster would consist of 2 elements: a numeric that refers to the card number, and a 2D array that corresponds to the data:
0 Kudos
Message 11 of 14
(921 Views)
Thank you for the valued insight guys.
It is not working 3D as wished using an additional FOR loop to append the completed 2D array with the card number.
The BUILD ARRAY, SIZE ARRAY, BUILD ARRAY, INSERT INTO ARRAY, as well as a shift register on the outside FOR loop to append the 3D array with the data for each card.
0 Kudos
Message 12 of 14
(919 Views)
Typo.

It is NOW working.


Thanks.
0 Kudos
Message 13 of 14
(914 Views)
I'm not sure what you're doing, but a for-loop can easily build a 3D array:
0 Kudos
Message 14 of 14
(908 Views)