LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Indexing an array

Hi,

I have a VI that scans a file and builds an array from it. I have the file to be scanned and the VI attached here.

Once I scan this file and have the array, now I need to build a new array. The first 60 elements of the fifth column of the first built array should be the first column of the new array that I want to be built and the next 60 elements should be the second column and so on...

Any help in this regard would be highly appreciated.

Thanks,
Ajit
Download All
0 Kudos
Message 1 of 4
(3,236 Views)
Do you just want the last two columns of 60 rows and discard the rest? If yes, then all you have to use is the array subset function. I'm attaching a modified version of your VI. Please note that when you say "60 elements", because array indexes are 0 based, when your row control is set for 60, it is displaying the 61st element in the array.
0 Kudos
Message 2 of 4
(3,236 Views)
I am attaching a diagram which shows this.

Hope this helps.

Khalid
0 Kudos
Message 3 of 4
(3,236 Views)
I'm going to take a shot at this one too. Attached is a pic of my solution. I hope this helps.
0 Kudos
Message 4 of 4
(3,236 Views)