10-03-2019 07:36 AM
How to make program like this?(on photo) I cant fint sum of series in math options
Solved! Go to Solution.
10-03-2019 08:11 AM
A Loop with shift registers where the shift register holds the running sum.
Of course you can't run a For Loop an infinite number of times.
10-03-2019 09:03 AM
Full task: program will stop when stop button will pushed, calculating begins with start button, after calculating program will wait 2sec, and after this LED light will blink 4 times on front panel and will show result of calculations. P.S calculating of series sum inaccuracy[0; 0.1] must be entered on front panel
sry for for the stupid question and bad language 😄
10-03-2019 09:07 AM
So in that case use a while loop. Then stop the while loop when the new sum minus the old sum is less than the defined error value.
10-03-2019 04:52 PM
LabVIEW does not do symbolic math, but you can use wolfram alpha to do it for you. After that, you can tell that if N=inf, 1/N=0 and the sum is exactly 1.
The following two code fragments give identical result for all integer N >0. Study it! (I am not using the iteration terminal because it will overflow at one point due to I32 limitations)