LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I write a sum formula in LabView? Help!!

I need to implement this formula in Labview.

but not on the formula node.

Could you help me please?

0 Kudos
Message 1 of 24
(5,121 Views)

You need array index and for loop

0 Kudos
Message 2 of 24
(5,106 Views)

Hi Anni,

 

for those sums in nominator and denominator you need an ArraySubset followed by SumArray function. No loops needed!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 3 of 24
(5,103 Views)

Thank you for your reply, but how? The formula is pretty easy, but for Labview it's hard for me. Could you show me? For example how can i write sum with index array in for loop

0 Kudos
Message 4 of 24
(5,102 Views)

Hi GerdW,

 

I didnt find sum array. I need some exercise about math implementation. if you have a little bit time could you show me?

 

kind regards

0 Kudos
Message 5 of 24
(5,088 Views)

summ.png

Message 6 of 24
(5,077 Views)

Hi Anni,

 

did you ever tried to use Quickdrop? Ctrl-Space?

 

See this:

check.png

Please check the calculation, especially the inputs of those ArraySubset functions.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 7 of 24
(5,071 Views)

Gerd, you need ("end"-"start"+1) for length.

0 Kudos
Message 8 of 24
(5,064 Views)

Hi Artem,

 

that's why I asked Anni to check the ArraySubsets… 😄

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 9 of 24
(5,061 Views)

GerdW,
thanks for your helps, its very helpfull.

i tried , n_kl, n_kr and n are given always 0.

0 Kudos
Message 10 of 24
(5,048 Views)