BrianC Posted December 8, 2020 Report Share Posted December 8, 2020 I am taking pressure values from a pump. I need to store the value every time I call a function (.7 seconds) and take the average of the last 7 values. I only care about getting a ~5 second average, then I can forget the numbers. I need to do this for several values, so something reusable would be great. I cannot seem to figure out an easy way to accomplish this. Any help is appreciated. Quote Link to comment Share on other sites More sharing options...
Ness Posted December 8, 2020 Report Share Posted December 8, 2020 Here's one way to get a running average. running average.ulpr Quote Link to comment Share on other sites More sharing options...
ssomin Posted September 14, 2021 Report Share Posted September 14, 2021 Hey can you please send the code one more, i would like to understand this for my university project. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.