Ali - the loop sum is just to validate that no loop iteration is being skipped, as it can be with the global variable in the previous video. If this code was really being used, the code that calculates loop sum would probably just be removed. However, if you still wanted to test it out with a different initial value, you would just have to add the initial value to user defines to the current loop sum, and call the new value the loop sum.
@Sixclear9 жыл бұрын
Chim20 Totally correct, thanks for jumping in and answering that one :)
@paeb8011 жыл бұрын
Thanks for the video but this works only if you run the VI with the initial value of zero. How would you modify the VI to take any value and still give the same result for the loop sum and the final position?
@55elancheran6 жыл бұрын
No it can take any value because the first case read sets the user given value to the shift register. Edit : Oops I just saw its been 5 years since this comment was posted