Hello all.
I have a flom meter wich measures in the range from 0 to 300 m3/h. I have to calculate how much gas was produced in an hour and throught the day.
I've made the program like so:
I add the curent value form the analog input, every second and increment a counter at the same time...
Then when the hour passes I divide, the value of the adding with the counter value and get the how much gas was made...
But my resoults are different from a Data logger that prints out data every hour and every 24 hours.
Is this the correct method that I have taken or do you guys do this differently?
I've read some specifications of these data loggers, that they take a reading every 125ms..., so basicly I'm takeing readings almoast 10 times slower, so I guess this could be the reason for the difference of the value that I get from the data logger. Correct?
I have a flom meter wich measures in the range from 0 to 300 m3/h. I have to calculate how much gas was produced in an hour and throught the day.
I've made the program like so:
I add the curent value form the analog input, every second and increment a counter at the same time...
Then when the hour passes I divide, the value of the adding with the counter value and get the how much gas was made...
But my resoults are different from a Data logger that prints out data every hour and every 24 hours.
Is this the correct method that I have taken or do you guys do this differently?
I've read some specifications of these data loggers, that they take a reading every 125ms..., so basicly I'm takeing readings almoast 10 times slower, so I guess this could be the reason for the difference of the value that I get from the data logger. Correct?