Hello
I was wondering about implementing a basic accumulator in Labview :
<text code>
c=0;
d=1.2;
for i =1:n
c=c+d;
...
...
end
</text code>
Yes, I know I could do the above with a c=0+i*d, but I was curious about how to do it this way in G. Essentially, one would need to create a local variable that can be set self-referentially. The local variable definition available from the functions palette does not seem to fit the bill.