LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Average of 2d array

i have attached a image of 2d array. i have to make average of this aaray's saperate parameter in every 1minuts

Prashant Soni
LabVIEW Engineer
0 Kudos
Message 1 of 7
(4,516 Views)

Hi Prashant S,

which separate array do you mean? How often do you get new values per minute?

The "mean.vi", i think it's in the mathematics lib, could help you with it.

 

Mike

0 Kudos
Message 2 of 7
(4,507 Views)
0 Kudos
Message 3 of 7
(4,501 Views)

 


@MikeS81 wrote:

could be dublicate from here


 

I'd say it's a definite duplicate.

 

To OP: Please keep the discussion in one place. If the suggestions in your original thread did not help, then indicate so in the original thread rather than create a new thread, making people rehash the same points (wasting our time as well as yours).

0 Kudos
Message 4 of 7
(4,469 Views)

(Not quite a duplicate, because now we have a generic 2D array.)

 

The number of elements in a multidimensional array is the product of all dimensions.

 

So, to get the average of a multidimensional array, you take the array sum and divide by the number of elements as follows:

 

(same for 2D, 3D, 4D, etc.)

Message 5 of 7
(4,433 Views)

 


@altenbach wrote:

(Not quite a duplicate, because now we have a generic 2D array.)


 

Where did you see it was generic? I think the picture he posted was just for demonstration.

 

I think it's the same question.Smiley Wink

0 Kudos
Message 6 of 7
(4,411 Views)

 


smercurio_fc wrote:

I think it's the same question.Smiley Wink


 

In think the problems are probably related, but this question here is much more concise: average a 2D array.

 

(The other thread is a mess, drifting wildly while talking about "VISA", "elapsed time", and all the that other non-array stuff. :D)

 

 

0 Kudos
Message 7 of 7
(4,378 Views)