LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

pressure simulation with water tank

Hi everyone, 

I have a problem with my simulation.
What I want to make is a simulation of three water tanks with 1 pressure gauge. the working principle of the simulation is that 3 tanks when filling or decreasing will be detected with 1 pressure gauge.

I can only make one of the three tanks that the pressure gauge is detected, when two or three tanks are filled simultaneously the pressure gauge is not detected. I'm having a hard time figuring out how. Is there any solution to solve the simulation I made. Thank you to all of you.

0 Kudos
Message 1 of 4
(887 Views)

You didn't specify what the pressure gauge measures. The sum of three levels? Their average? You are adding the values 1 2 3 values, which results in possible values from 0 to 6, and you get e.g. value 3 in two cases (tank 1 and 2 or tank 3).

 

I edited it for you. I changed the the span of Pressure Indicator, simply double clicking the max value and rewriting it with 100). I built an array of value and used Mean.vi, but you might want to have max value there, so use array max instead. I simplified it all for you.

0 Kudos
Message 2 of 4
(881 Views)

Thank you for the response and advice sir.
Actually I want to try to make a simulation based on real conditions, where there are 3 tanks and 1 pressure gauge (the upper limit of the pressure gauge is 4 and the lower limit is 0).

 

There are several conditions as follows:

1. when the condition of 3 tanks is filling water then the pressure gauge works, when the tank is full -> pressure is 4 bar.

 

2. When the condition of 2 tanks is filling water then the pressure gauge works, when the second level of the tank is full -> pressure is 4 bar.

 

3. When the condition of 1 tank is filling water then the pressure gauge works, when the tank is full -> pressure is 4 bar.

 

Note for conditions 2 and 3: when one of the tanks is empty, the pressure detected is 0.

 

I am very sorry if my writing or explanation is confusing.

0 Kudos
Message 3 of 4
(868 Views)

Still not clear, can you write down outputs you expect for these values? 

 

(0,0,0)

(50,0,0)

(100,0,0)

(100,50,50)

(100,100,100)

(50,50,50)

 

One confusing thing is that you use the control input of the plant (those three buttons) into consideration of probe value.

0 Kudos
Message 4 of 4
(864 Views)