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!