LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Pump conteol

Solved!
Go to solution

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.

Message 11 of 15
(1,272 Views)

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

Download All
0 Kudos
Message 12 of 15
(1,263 Views)

The VI makes a horrible sound?  Or your pump?

 

Your VI doesn't look anything like the one Gerd posted in message #8.

Message 13 of 15
(1,250 Views)

Hello, Mr. GerdW & Mr. Ravens Fan,

I tried another way and it worked well.... thanks for your support and suggestion.

 

Best regards

Message 14 of 15
(1,223 Views)
Solution
Accepted by Chowdhury_Milon

Hi Milon,

 

try this:

check.png

No FOR loop set to iterate once, no sequence - THINK DATAFLOW!

I guess the first function in the loop defining the output should be executed before the loop…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 15 of 15
(1,219 Views)