LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

sum array of clusters column

Solved!
Go to solution
Highlighted

How can i sum an array of clusters anyone column? Like attachmend array of clusters  example.

0 Kudos
Message 1 of 5
(974 Views)
Highlighted
Solution
Accepted by topic author keremgeliz

Use a shift register on your FOR loop to hold the sum.  You add the current sum with the current cluster's value and put the value in the shift register.  You will need one for each sum you want to take.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
Message 2 of 5
(970 Views)
Highlighted

Thank for your help now its working perfectly.

0 Kudos
Message 3 of 5
(963 Views)
Highlighted
Solution
Accepted by topic author keremgeliz

Try this:

 

 


LabVIEW Champion. It all comes together in GCentral GCentral
What does "Engineering Redefined" mean??
Download All
Message 4 of 5
(958 Views)
Highlighted

@keremgeliz wrote:

Thank for your help now its working perfectly.


No, that's not good:

 

  • You are creating extra array allocations, just to take the sum later and reduce it back to a single number.
  • Your shift registers has absolutely no purpose because you never use their value and never initialize them.

Compare with my solution above.


LabVIEW Champion. It all comes together in GCentral GCentral
What does "Engineering Redefined" mean??
0 Kudos
Message 5 of 5
(954 Views)