LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

adding values to a variable/array after each cycle

Hi,
 
I have attached a sample VI in this message.
 
I have a FOR loop.  If I use a numeric say 5, for each cycle, I would like to multiply 5 to each cycle count and I want to have the products of all the cycles added up in real time and store it in a variable/array.
 
for example:
 
cycle count     product      current sum
0                       5x0               0
1                       5x1               5
2                       5x2              10+5 = 15
3                       5x3              15+15 = 30
 
and so on.
 
And I have to apologize for pressing the wrong button on the keyboard and I submitted the post before I even finished writing. 
 

Message Edited by qiora on 10-03-2005 10:42 AM

0 Kudos
Message 1 of 4
(2,680 Views)
Very close.  You also need a shift register to save the most recent value to the next iteration of each loop and add them together...
See example attached
0 Kudos
Message 2 of 4
(2,668 Views)
Thanks for the reply.  I am using LabView 6.1 here.  Can you do a printscreen and let me take a look at what you have that way?  Thanks. 
0 Kudos
Message 3 of 4
(2,665 Views)


@qiora wrote:
 I am using LabView 6.1 here.

Here's something in v6.1
=====================================================
Fading out. " ... J. Arthur Rank on gong."
0 Kudos
Message 4 of 4
(2,650 Views)