LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to build an Array

I'm trying to build a 2-D array with 16 rows and 16 columns. I have 256 sequentially input data and I want to put these data into the 16 by 16 array. How to realize this? The functions in the Array category seem useless and none of them works for this purpose. 
Message Edited by jerryguo on 11-06-2008 09:01 PM
0 Kudos
Message 1 of 6
(2,996 Views)

How are the 256 sequential values coming in? Are they in the form of a 1D array, or what. Nested FOR loops come to mind. The functions in the array pallette can be used, but we have to understand

how your data values are coming in.

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 2 of 6
(2,992 Views)

If it's the way you are getting data in this post, you just have to wire out through the loops. 

 

 

 

Again, you seem to not understand how for loops in LabVIEW operate. You might want to review some of the options for learning the  basics of LabVIEW.

Message Edited by Dennis Knutson on 11-06-2008 08:49 PM
0 Kudos
Message 3 of 6
(2,987 Views)

It is typically easiest to form (or start with) a 1D array of 256 elements, which you then can reshape into a 16x16 2D array.

 

The reshape function is in the array palette.

 

Can you attach a simplified version of your VI that show how the 256 data points initially arrive?

0 Kudos
Message 4 of 6
(2,980 Views)

hi,

try this i think this will help u. 

Regards,
Santhosh M
0 Kudos
Message 5 of 6
(2,960 Views)

Santhosh M wrote:

try this i think this will help u. 


 

 NO!!! This is just a Rube Goldberg Version of the atomic operation "reshape array". Why jump through all these hoops???

 

Message Edited by altenbach on 11-06-2008 09:51 PM
Message 6 of 6
(2,943 Views)