Davenj Posted March 22, 2017 Report Share Posted March 22, 2017 I am using a V130. Converted the Analog input to read pressure, once a second. I need to average a large number of input readings over a user selected time frame. Pressure reads XX.X and time frame can go up to 100 hours. Using it to warn if a rate change over the time frame exceeds a preset value from the first reading. Appreciate any help Dave Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted March 23, 2017 MVP 2022 Report Share Posted March 23, 2017 You might want to re-think that request. If you average all the samples over a time frame there will be no rate of change, just an average of the entire data set. You may want to average the samples over a smaller block and store each block average in several rows of a data table. You could then compare adjacent blocks for your change alarm. Joe T. Quote Link to comment Share on other sites More sharing options...
Davenj Posted March 23, 2017 Author Report Share Posted March 23, 2017 Good point, makes sense. I'm looking at differential pressure (1-2 PSID change). I store a reading after 2 min. so the reading can stabilize. After 2min is the rate window, which can be set from 3min. to 100hrs. Dave 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.