11-25-2017 09:52 PM
I am new to LabView and was hoping someone could help me to make a tank so that it fills at a constant rate until the tank reaches a set level, at which the tank will stop filling.
11-26-2017 01:43 AM
Are you talking about a real tank controlled by LabVIEW or just a simulation using a tank indicator?
If you are new to LabVIEW, the first thing would be to go over the tutorials. Have you done that?
11-26-2017 05:03 PM - edited 11-26-2017 05:03 PM
I am just talking about a simulation.
11-26-2017 06:09 PM
You should have no problem doing that after completing the tutorials. What did you try and where did you get stuck?
11-27-2017 01:21 PM
In summary, you need a state machine, keeping the tank level in a shift register. One state would be "filling" and one would be "not filling" Do a comparison operation on the current level with the full mark and switch states accordingly. Increment the level in the filling state, but wire across unchanged in the other case. You might also account for tank leaks, and slowly drop the level at regular intervals if nothing happens otherwise. See how far you get.