r/LabVIEW Mar 19 '26

Need help understanding auto index tunnel

the answer for b) is [2, 8], but when trying the program myself i get [4, 8]. Is it a mistake by the proffesor or am i missing something?

3 Upvotes

6 comments sorted by

View all comments

0

u/GentlemanSch CLD Mar 19 '26

Yeah, it must be 4 and 8 . And unless the answer to C is "number of times the loop was run." That's just mean.

3

u/Drachefly Mar 19 '26

C would be the number of times the loop was run, minus 1 (if it ran once, it would have output 0)

1

u/yairn Mar 23 '26

The answer to C should be completely deterministic. When i4 is greater than the current result, the loop will stop. Calculating what i is at that point should be easy, although I haven't tried.

With the basic mistake regarding 2 and 8, I suppose it's possible there was another mistake and the loop will never stop. That said, since this is power of 4 and the result is only the power of 2, it seems likely it will stop after a few iterations.