rscott9399
Member
Working on a totalizer
Seem to be over flowing my int very badly and very quickly
Wanted to check my logic atleast verbally with you all.
Say i have flow in Gallons / hour
I can convert that to gallons per second easy enough.
GPM * 1/60 = gallons / second
Now if i examine this quanity at a 1 second pulse interval and simply keep a running total
running total = running total + amount seen at one second pulse
That should give me a total right?
Thanks in advance
Seem to be over flowing my int very badly and very quickly
Wanted to check my logic atleast verbally with you all.
Say i have flow in Gallons / hour
I can convert that to gallons per second easy enough.
GPM * 1/60 = gallons / second
Now if i examine this quanity at a 1 second pulse interval and simply keep a running total
running total = running total + amount seen at one second pulse
That should give me a total right?
Thanks in advance