The array entries show up as NaN. When I change that to 0 in the initialize array for the logic loop the three entries are 0, so it looks like it isn't updating. It shows the same thing when I switch the 3 and 40 for both NaN and 0.
Also, when the vi runs it seems like it is taking about 10000 samples a second. It looks like the sample clock isn't regulating anything.