LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How does one use averaging with a for-loop?

Do you want to see the data as it is collected, or can the device store all of the data and you acquire it at end of test??
0 Kudos
Message 11 of 18
(807 Views)
I would like to see it as it's collected but if i have to do it the other way, i could do that also, whatever way is easier for me to get the averaging into the application.
0 Kudos
Message 12 of 18
(801 Views)
Sorry, i accidently posted twice in a row.

Message Edited by Nick44448 on 06-29-2005 03:41 PM

0 Kudos
Message 13 of 18
(802 Views)
I have modified your vi by adding a for loop to your Analog Input section and averaging these values. I don't have the DAQ installed at this machine so I did a conversion of the data type to get to the DBL needed by the mean vi.

I added the following after seeing your additional post.

This does not change your ability to see the averaged value for each data point "on the fly."

Message Edited by John Rich on 06-29-2005 03:49 PM

0 Kudos
Message 14 of 18
(801 Views)
Can you attach this modification to a thread so i can see?
0 Kudos
Message 15 of 18
(795 Views)
Here is an example that shows how to decimate the array if you have all of the data at one time. Set the average input to true and takes the average of the values when it reduces the array. Set the average input to false and it uses just one of the points. 7.0 format
0 Kudos
Message 16 of 18
(785 Views)
I'm sorry. Here it is.

Message Edited by John Rich on 06-30-2005 09:00 AM

0 Kudos
Message 17 of 18
(777 Views)
Thanks, that example helped a lot, this forum really is great!!!!  :manhappy:
0 Kudos
Message 18 of 18
(741 Views)