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 Link to comment Share on other sites More sharing options...
MVP 2023 Joe Tauser Posted March 23, 2017 MVP 2023 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. 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now