取消
显示结果 
搜索替代 
您的意思是: 

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

已解决!
转到解答

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 项奖励
11 条消息(共 14 条)
751 次查看

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 项奖励
12 条消息(共 14 条)
748 次查看

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 项奖励
13 条消息(共 14 条)
742 次查看

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

0 项奖励
14 条消息(共 14 条)
723 次查看