Two things about your code. First, the inner for loop doesn't have any real function because it will only execute 1 time. Remove the inner loop move the shift register to the outer loop, initialize it to 0 and you should be good to go.
Second, never pass reference numbers through a for loop the way you are doing. The problem is that a for loop can execute zero times (in this case if the array you are auto indexing on is empty). Because of this feature, the reference on the right side will be invalid because the loop hasn't executed and LV doesn't know what its value should be. The result will be errors arising in any VIs after the loop that depend on the reference. For this reason, always pass reference numbers through for loops using shift registers. The
n even if the loop executes zero times, the reference on the right side will always be valid
Mike...
PS: Oh yes, third, errors arising in this routine are not being sent anywhere or displayed.