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: 

Add Array Elements Function with INTEGERS

 

Is there an equivalent for the 'Add Array Elements Function '

that will work on INTEGER numbers?

 

CSK

 

Here is my code so far... I want to take 10 pixels of input array INT,

sum them, then place in new output array, reducing the array by a

factor of 10, repeat.

Message Edited by csk on 12-23-2008 04:03 PM
0 Kudos
Message 1 of 3
(2,584 Views)

Hi,

 

Here the problem looks like....Auto Indexing enabled for the input array given to the for loop where you are adding 10 adjacent elements.......disable that indexing would allow you to take array into the for loop , otherwise it takes an element instead of an array........in case of 1-D array......

 

U need to right click on the node connected from array and disable indexing.........

Message Edited by Anil Reddy on 12-23-2008 04:10 PM
Anil Punnam
CLD
LV 2012, TestStand 4.2..........
0 Kudos
Message 2 of 3
(2,578 Views)

"Add array elements" works with integer representations, the problem is that you don't have an array because you autoindex at the loop boundary.

 

Here's a simple way to decimate an array by summing 10 adjacent elements. (This assumes the input size is an integer multiple of 10)

 

Message Edited by altenbach on 12-23-2008 05:48 PM
Message 3 of 3
(2,553 Views)