LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Averaging individual elements within a 2D array

Hi Krivan,

 

I actually meant on the vi you improved. The first one you never used as shift register but on the second you use a shift register but initialise it with an empty array. This will cause nothing to happen.

 

Rgs,

 

Lucither.

------------------------------------------------------------------------------------------------------
"Everything should be made as simple as possible but no simpler"
0 Kudos
Message 11 of 15
(439 Views)

So the constant should be replaced by an initialize array, is it correct?

0 Kudos
Message 12 of 15
(434 Views)

Correct. Smiley Wink

------------------------------------------------------------------------------------------------------
"Everything should be made as simple as possible but no simpler"
0 Kudos
Message 13 of 15
(430 Views)

anything from the mdnb2?

0 Kudos
Message 14 of 15
(411 Views)

To average successive 2D arrays of the same dimension, you would do something like this:

 

Initialize a shift register with a 2D array of the same size. Inside the loop, add the new 2D array and accumulate successive 2D arrays in the shift register. At any time divide by the number of additions and you get a 2D array that contains the average.

 

Here's a draft. Modify as needed:

 

 

Message 15 of 15
(398 Views)