LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to add all the previous values of an array till the index value

Solved!
Go to solution

Hi,

 

     I don't think both will work out since my need is different. If I enter the 7th year, the algorithm should calculate 1st year's cost with the respective values, then the 2nd year's value alone and add that with the first one and so on. Please give me a solution for that.

0 Kudos
Message 11 of 14
(707 Views)

Hi niks,

 

Please give me a solution for that.

You already got two possible solutions. How much more do you need?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 12 of 14
(704 Views)

Then use a loop!

 

Please don't describe a problem, get solutions, then say they won't work because there is more to your problem that  you didn't bother to describe up until now.

0 Kudos
Message 13 of 14
(698 Views)

Thanks. I made some more changes and got the solution. Thanks for all your suggestions and helps.

0 Kudos
Message 14 of 14
(679 Views)