LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

math in labview

Solved!
Go to solution

How to make program like this?(on photo) I cant fint sum of series in math options

0 Kudos
Message 1 of 5
(2,152 Views)

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.

Message 2 of 5
(2,136 Views)

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 😄

0 Kudos
Message 3 of 5
(2,086 Views)

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.

Message 4 of 5
(2,081 Views)
Solution
Accepted by topic author devil_w

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)

 

series.png

Message 5 of 5
(2,021 Views)