LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Simulasi Plumbing

Solved!
Go to solution

Hi, I'm very new to labview and have a problem that I thought would be easy to solve but it doesn't seem to me. I have a "Plumbing Simulation" or water treatment system. Here I discuss the water supply from the Rooftank to each floor, it is very important for me to control the work of the booster pump so that the water pressure is good. How the simulation works like this

Water Tank -> Water Demand (Here I use the Horizontal slider to reduce the water level in the tank) -> 2 pieces of Pressure Gauge (indicates pressure, here I set the upper limit of 2 and lower 0) -> 2 pieces of Booster Pump that work alternately

I have controlled 2 Booster Pumps using a flat sequence structure but it takes up too much space.
I need advice, whether the simulation I made is correct or is there a simpler way to control the working of the Booster Pump.


Thank You, Please Help.

Here's my LabVIEW Simulation

0 Kudos
Message 1 of 5
(1,886 Views)

You need exactly one loop, no sequence structure and no local variables and value properties at all. All you need is 10% of the current code.

 

Can you list the exact requirements and all possible states?

0 Kudos
Message 2 of 5
(1,866 Views)
Solution
Accepted by topic author MangOto

Here's a quick rewrite using some of my earlier advice. You should also use arrays instead of multiple controls/indcators of the same type.

 

I am sure it does not behave as desired in all details but should give you some ideas how to do all this.

 

  • No sequences
  • no local variables
  • no value properties
  • one single loop
  • Code fits on a postcard(!)
  • etc.

 

altenbach_0-1649454395025.png

 

Message 3 of 5
(1,852 Views)

Thank you sir altenbach VI (testMOD) you are very good, but the value that the pressure gauge displays is 0 when the designated water demand slider is 0.

 

The actual work of the pressure gauge is:
1. The pressure gauge value will decrease when there is water demand on each floor (at the water demand slider value), for example: the initial position of the water demand slider is at a value of 0.5 for 300 s then shifted to 0 then the pressure gauge value will decrease from 2 to 1.76. then the displayed pressure gauge value is 1.76.

 

2. When the value indicated on the pressure gauge reaches 0 the Booster Pump works to increase the pressure gauge value from 0 to 2.

 

note: there are 2 booster pumps and pressure gauges because they want to be controlled alternately.

 

One more question sir, can you explain the use of Array here?

 

Sorry, sir, if my explanation is less detailed in this post and a lot of questions are asked.

0 Kudos
Message 4 of 5
(1,764 Views)

The user of arrays make it scalable. You can easily change the number of pumps, sensors, etc. without making significant changes to the code.

 

Yes, of course you need better control mechanism for the pumps, e.g. deadband, proportional, etc.

Message 5 of 5
(1,750 Views)