LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

collecting 5 second averages

How do I write 5 second averages of an analog channel to a file every 5 seconds? Is there a way around using a while loop?
0 Kudos
Message 1 of 3
(2,577 Views)
Use a case structure inside your aquisition loop.
Have a look at the attached jpeg example. Hope it helps.
0 Kudos
Message 2 of 3
(2,577 Views)
Another way to do it is to use the Sample Compression Express VI. It can return the mean of a certain number of points. If your data points are coming in a regural manner, you will be able to use this. Attached is an image of the diagam that will do what you are looking for.
0 Kudos
Message 3 of 3
(2,577 Views)