From Friday, January 17th 11 PM CDT (January 18th 5 AM UTC) through Saturday, January 18th 11:30 AM CDT (January 18th 5:30 PM UTC), ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,264 Views)

You need array index and for loop

0 Kudos
Message 2 of 24
(5,249 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,246 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,245 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,231 Views)

summ.png

Message 6 of 24
(5,220 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,214 Views)

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

0 Kudos
Message 8 of 24
(5,207 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,204 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,191 Views)