Showing results for 
Search instead for 
Did you mean: 

Continously Averaging and shifting values in arrays (FIFO)

Thanks that helps. But I wish to add it with sample time. I want to see time in the saving file also as 1, 2, 3, on with data file.

0 Kudos
Message 11 of 13

See this thread here for discussion on using lossy enqueue element to keep a running average. If the number of points you want to average changes you can destroy the queue, take the elements remaining and queue them back up in a new queue which has a different size configured.


Specifically see the post by Jeff B.

0 Kudos
Message 12 of 13

Thx for sharing the info!

0 Kudos
Message 13 of 13