ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

average value

Hi,

I need to determine the average value of an input signal. I'm not able to use the built-in block of LabView 7.1 because it needs the file mean.vi, which I don't have.

I've also tried to calculate the average value by the definition: X_average=integral(X)/time
but I can't find a way to use the required "time".

Is there any simpler way of doing this?

Thank you!
0 Kudos
Message 1 of 5
(3,088 Views)

I'm not sure why you wouldn't have the Mean function. I thought it was included in all versions of LabVIEW. Have you tried to do a seach for it?

In any case, you can also use the Add Array Elements function. Take the result and divide by the number of elements.

0 Kudos
Message 2 of 5
(3,078 Views)
Hi,

Thank you for your message.
In fact, that file doesn't exist on my computer. Where could I download it?
I will also try your suggestion.

Thank you.
0 Kudos
Message 3 of 5
(3,075 Views)

On my computer, the Mean.vi resides in the functions palette -  Analyze - Mathematics - Probablilty & Statisctics.  It can also be found in your Labview folder/vi.lib/analysis/baseanly.llb.  Here it is in the attached file.

 

- tbob

Inventor of the WORM Global
0 Kudos
Message 4 of 5
(3,069 Views)
Thank you for the file!
0 Kudos
Message 5 of 5
(3,065 Views)