I am new to labview and I am trying to sum results that are output from a certain math function. This is what I am trying to do in detail:
I have a while loop that divides a number by two, then checks the remainder to see if it zero. If it is not, it will continue to divide the remainder resutling from the first, second...division by two until the a zero is detected. If a zero is detected, the loop will be stopped. During this whole process The quotient resulting from each division is multiplied by 2^(i), where (i) is each loop iteration. Here is where I am confused- the result of the multiplication is then fed into a build array and the array is added by the add array element function. However, this doesn't work.
I would like to sum each value resulting from the multiplication for each loop iteration. I have attached the labview file here. Please let me know what I'm doing wrong.
Thanks.
[]~.~[]