LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need help on water tank

I need to make a system where water goes into the tank but when it gets to a certain value it decreases out , in theory what I've done is right but it just doesn't work , I have no idea why it doesn't work but I would to get some help 

0 Kudos
Message 1 of 5
(849 Views)

Please use "save for previous" before attaching. Most people don't have LabVIEW 2021 yet.

 


@Indy245 wrote:

... in theory what I've done is right but it just doesn't work ...


If it does not work, maybe your theory is wrong. 😄

0 Kudos
Message 2 of 5
(845 Views)

OK, I was able to look at your code:

 

  • Why all the coercion dots?
  • Why all the local variables?
  • Maybe you want x-1 instead of 1-x?
  • Why the race conditions? (The local variable "valve" gets read in parallel to the case structures, and there is no way to tell what happens first!)
0 Kudos
Message 3 of 5
(822 Views)

See if this can give you some ideas....

 

 

0 Kudos
Message 4 of 5
(811 Views)

Hi sorry for the confusing vi I've just started to learn Labview 3 weeks ago 

0 Kudos
Message 5 of 5
(803 Views)