03-17-2014 11:54 AM
Hello. Trying to build a two tank level control in LabView. if someone could help me with this i would be forever thankful. attaching a principial drawing of how it should work like. between the two tanks is a pump, so the water can go both ways in this pipe.
03-17-2014 03:41 PM
The chances of getting someone to write the whole thing for you are minimal. If you make a stab at it and get stuck, people will be much more likely to help with specific questions.
03-17-2014 03:53 PM
@ToeCutter wrote:
The chances of getting someone to write the whole thing for you are minimal. If you make a stab at it and get stuck, people will be much more likely to help with specific questions.
True. Also, WHAT do you want??? Are you actually needing a CONTROL? Usually a tank would be an indicator. A pump control makes more sense. Or do you need a VI that runs a simulation with a pump and two tanks? If so, what are the parameters for the simulation? What happens when a tank is full? How do you control the pump? Etc...
03-18-2014 05:20 AM - edited 03-18-2014 05:32 AM
Ok. sorry for not beeing specific. the two tanks is supposed to represent two water reservoirs and the water supply for each reservoir is rain water + water from the upper reservoir to the lower reservoir. this simulation is a part of a bigger project that we are doing, and the truth is, we have no experience with LabView. so my intention was really to ask if someone had a model lying around that is similar to the one I am after, where I could just change the parameters. do you need some special toolkit for this model? I have installed LabView 2012
Upper tank:
Water outlet: 3 [m3/s] (adjustable 0-100%)
Area: 1 000 000 [m2]
Rain water: 0,75 [m3/s] (adjustable 0-100%)
Max regulation height: 8 [m] (alarm goes of at max)
Lower tank:
Water outlet: 6 [m3/s] (adjustable 0-100%)
Area: 11250 [m2]
Rain water: 1 [m3/s] (adjustable 0-100%)
Water supply for upper tank: 3 [m3/s] (adjustable 0-100%)
Max regulation height: 4 [m] (alarm goes of at max)
the pump should then of course be able to pump 6 [m3/s] (on/off switch)
03-18-2014 06:10 AM
Forget LabVIEW for a moment. Start by writing some equations relating the flow rates in your pipes and the liquid levels in your tanks. Then post it back here. Meanwhile start reading up and doing some basic tutorials on LabVIEW so you will understand the next steps.
03-18-2014 06:38 AM
Upper tank:
dV1/dt = Qrain1-Qout1
dh1/dt = 1/A1(Qrain1-Qout1)
Lower tank:
dV2/dt = Qrain2+Qout1-Qout2
dh2/dt = 1/A2(Qrain2+Qout1-Qout2)