Quantcast
Channel: Counter/Timer topics
Viewing all articles
Browse latest Browse all 1271

Mean of 5 data at a time

$
0
0

Hi, 

 

I have a while loop where I collect data each seconds from a data acquisition system who is connected to my instrument. 

 

I would like to show in the front panel a means of 5 data which is the rate of shearing.

 

Each time 5 more data are collected, I would like it to discard the 5 previous data and do a new means with those 5 new data. 

 

I thought about wait function but I already have one in the while loop so I am able to acquire data each second. 

 

Thanks!

 


Viewing all articles
Browse latest Browse all 1271

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>