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....
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.
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.
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.