07-13-2015 08:58 AM
2015/07/13
Can any one help with this?
07-14-2015 05:03 PM
What type of flow meter is it, and what is the counter output actually representing flow or flow rate ? If the counter is counting pulses per until flow, then it will be accumulating the flow through the meter over time, when the flow stops, the counter will stay fixed and not reduce to zero. If you want the flow rate instead (which will drop to zero when flow stops) you will need to substract the current counter output from the one at the previous time step.
Since you are trying a quadrature encoder input, the point above maybe completely wrong and your flow meter works very different to the simple flow meters I assumed above.
07-15-2015 01:44 AM
The unit produces a pulse per unit flow. the reading that i get using the NI 9402 was set to give me the frequency of pulses. When the gas meter is stopped there is a delay between the gas meter stopping and the reading of frequency shown returning to zero (1 to 2 seconds). i assume this is due to the duration that the frequency is measured over, say if the meter stops part way through the sample period. This adds extra input to the integrator.
07-15-2015 05:54 AM
Some ideas:
Hope this helps (and is understandable!)