LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Create a bundle from a 2D array

Hello guys.

 

I have a 2D array which contains a lot of data. For example on the first line I have all First names, on the second Last names and so on. I am trying to save this data in an container which to contain 1D arrays of all lines. For example a first array name FirstName which contains the rest of the line. I am struggling to automatically name this arrays by the first column elements. I created a cluster of 1D array of strings, which works well but I want to automatically name every of these arrays with the data from first column and to access the elements using for example FirstName[1] or LastName[3] and so on.

Any suggestions how I can do this? 

0 Kudos
Message 1 of 3
(1,674 Views)

I don't know.

 

It is hard to know what you want from a paragraph of words.

 

If you attach a VI containing the 2-D array data, and an example of what you want the end result to be, then I'm sure we can help you.

0 Kudos
Message 2 of 3
(1,654 Views)
  • What is the datatype? I guess a 2D array of strings. How big?
  • Are the entries case sensitive?
  • What is a "line" (Row or column)?
  • How many entries per "line"?
  • I don't understand your cluster transform.
  • Is the array static or do you need a mechanism to add/remove entries?
  • Are there performance constraints on e.g. lookup speed?
  • ...

Please attach a VI containing a typical small array, then tell us what you want to do with it.

0 Kudos
Message 3 of 3
(1,637 Views)