LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to create loop to add incrementally to variable?

Solved!
Go to solution

I want to create a for loop that will activate 1000 times. Initially I will set a variable at zero. When the VI has run 500 loops, it will begin to add 1 each time to the variable, so in the end the variable should have a value of 500.

I tried to make this VI but had a hard time with the variables; for example, setting it to an initial value. Is there an example in LabVIEW that can help me?

It seems like a fairly straight forward VI but I am having difficulties.

 

Any help would be greatly appreciated.

0 Kudos
Message 1 of 4
(2,768 Views)
this may help:
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
Message 2 of 4
(2,759 Views)
I couldn't open the VI, it said your version is later than my version. I'm using LabVIEW 8.5 at the moment.
0 Kudos
Message 3 of 4
(2,730 Views)
Solution
Accepted by topic author penguins88

Hi penguins,

 

here it is in LV8.5...

 

But that is pretty basic, so you should have a look at the free online courses on the NI website!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 4
(2,714 Views)