‎06-04-2009 09:25 PM
I'm trying to use a use a flow meter to measure the usage of oil in a home heating system. I've set up a VI to measure the frequency of the flow meter and convert it into l/hr. The problem I have is how can I use this data to show the liquid level in the tank disipating as the flow meter runs?
See diagram below....
Chris
‎06-04-2009 10:44 PM
Shift register.
The volume in the tank would be stored in a shift register. Each iteration of the loop you subtract an amount from that value and store it back in the shift register. You will need to use some timing in your loop so it runs a consistent rate. Also, you will need to use appropriate scale factors in your calculations. If your tank holds 500 gallons and you are using 1 gallon/hour and your loop runs 1 iteration per second. You would want to subtract 1/3600 gallons from the shift register every loop iteration from the shift register which would have been initialized at 500.
‎06-05-2009 11:04 AM
‎06-05-2009 11:07 AM - edited ‎06-05-2009 11:07 AM
You should also do something with that dynamic data.
There is a function 'convert from dynamic data' that will turn your signal into type DBL.
This way you wont have data coersion at EVERY single native function.
‎06-10-2009 03:55 AM
Hi Chris,
I hope you are well. I was wondering if this information as helped you solve your issue. Please let us know how your getting on.