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: 

taking mean at runtime

hey!!
how can i take the mean of values coming at runtime ,should i have to save them and read from the file at runtime again and again?
plz help tnx

0 Kudos
Message 1 of 14
(7,832 Views)
Could you please explain more in detail what you are trying to do ?
0 Kudos
Message 2 of 14
(7,821 Views)
Well, if you have an array of values, simply use te built-in mean function, If the data is coming in one point at a time, there is a "point-by-point" version of the mean that calculates a running average over time - in fact building such a thing used to be an exercise in the LV Basics course.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 3 of 14
(7,814 Views)
can u guys pls tell me where i can find this point by point mean function .
I am new to LV
tnx.
0 Kudos
Message 4 of 14
(7,796 Views)
Right click on open space in the block diagram and select the following series of menus:

Functions / Analysis / Point By Point / Probability and Statistics PtByPt

They are all in there...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 5 of 14
(7,785 Views)

I would highly recommend you to take LabVIEW courses. More information about the courses can be found at LabVIEW Courses.

 
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 6 of 14
(7,774 Views)
Absolutely! Plus, but if I remember right from the last time I looked at the LV Basics class materials a point-by-point average VI is one of the first things that they have you build.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 7 of 14
(7,767 Views)
Hi ssddii
:

In case you can´t take the course right now and you need to solve your problem now, I've attached an example on how to average values coming at runtime. I hope this helps you.



Robst.

Message Edited by Robst on 05-11-2007 10:44 AM



Robst - CLD

Using LabVIEW since version 7.0


0 Kudos
Message 8 of 14
(7,751 Views)
If you just want the mean of all values acquired so far, just keep the sum in a shift register and divide by the count. 🙂
 
Here is a simple example:

Message Edited by altenbach on 05-11-2007 08:48 AM

Message 9 of 14
(7,748 Views)
Hello:

Actually altenbach's example is simpler, I just complicated myself doing all that logic with the iterations counter and the other stuff Smiley Tongue

Sorry, I made it quickly, but the idea is the same Smiley Wink



Robst - CLD

Using LabVIEW since version 7.0


Message 10 of 14
(7,736 Views)