LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

For Loop - how to extract sets of data

Hi,
 
I have a 'for loop' which allows 32 data sets to be extracted starting at row 0 and ending at row 63 with the total number of rows being 2048 and the number of columns 1078. However, my for loop saves the same data in all 32 files instead of saving the first 64 rows then the next 64 and so forth. I know that an algorithm which selects 63(N+1) is required but I am not sure how this can be incorporated into the for loop (attached).
 
Any help will be much appreciated.
 
0 Kudos
Message 1 of 6
(2,489 Views)
Wire i*64 to the first index input to the Array Subset function and 64 to the corresponding size.
You don't need to wire anything to the other inputs because you want to extract all columns.
The code you wrote does not depend on the iteration index i, so for each iteration it does the same thing.

Paolo
Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 2 of 6
(2,476 Views)
I tried to incorporate your suggestions, but the 'for loop' now returns only the first two rows of the first column and now all 32 files contain the same information as before.
0 Kudos
Message 3 of 6
(2,470 Views)
This VI should help you.
i am using shift register to increment row number by 64 in each iteration
 
any doubts, do get back
0 Kudos
Message 4 of 6
(2,464 Views)
Sorry for the confusion, I meant you should wire 64 multiplied by the value of the iteration index, like in the example I attached.
Furthermore, you forgot to wire 64 to the 2nd input.

Paolo
Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 5 of 6
(2,463 Views)
Thank you very much Smiley Surprised
0 Kudos
Message 6 of 6
(2,460 Views)