From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, 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: 

The sum of arrays of different size

Solved!
Go to solution

Hi,
how i can to sum multi arrays of different size.
sum.png
hank you .

0 Kudos
Message 1 of 2
(3,108 Views)
Solution
Accepted by topic author Sarah_LAB

Hi Sarah,

 

simple solution: make them the same length…

 

Other solution:

Determine the largest array size.

Use a (FOR) loop running for this number of iterations.

Index the arrays inside the loop and add the element values…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 2
(3,107 Views)