07-15-2017 10:30 AM
Because the only thing you do inside the loop is turn it on. The code to turn if off you left outside of the loop.
Inside the loop you should have code that "does something" whether that is turn on or off, 0 or 1, gets sent to the "do something" as part of a select statement.
It is probably a good idea to still have a definite Off function outside of your loop so that whatever state the pump is in when you hit stop, it will turn off and not run forever.
07-16-2017 04:11 AM - edited 07-16-2017 04:12 AM
hello, Mr. RavensFan
If I put the "Off" option inside the while loop, it creates a horrible sound... how about this attached VI, though it is not working. I mentioned the problem of this VI. IS there any solution?
TIA
07-16-2017 09:59 PM
The VI makes a horrible sound? Or your pump?
Your VI doesn't look anything like the one Gerd posted in message #8.
07-21-2017 03:29 AM - edited 07-21-2017 03:30 AM
Hello, Mr. GerdW & Mr. Ravens Fan,
I tried another way and it worked well.... thanks for your support and suggestion.
Best regards
07-21-2017 03:44 AM