Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

pump control

Hello everyone,

 

I am trying  set a pump controll for pH.

 

What I need/trying to do is:

pH is being monitored, if pH goes below 10 the pump goes on for 10sec (and injects solution) and then stops for 60 sec(mixing) and the pH is monitored again.

 

The problem:

I would like to have a button that forces the pump to go on for the set amount time (10sec), which so far I have not been able to do.

 

I  try using the event case, but the case causes problem with the task...

I don't have a VI to post because I realize that I didn't save...

 

 

Thanks

 

 

 

0 Kudos
Message 1 of 3
(3,216 Views)

pH.png

this is what I came up with; don't have idea how to put a button and force the pump to go on without executing the loops.

0 Kudos
Message 2 of 3
(3,210 Views)

Hello Roddy,

 

So if I understand correctly, you would like to have the pump turn on in the case that the pH drops below 10, and if you press a button.  If that is the case, you should only have to create one set of code to run the pump for 10 seconds.  From there, you can Register for user events when the pH drops below your specific value.  You'll have to play with the code a bit, but here's a quick idea of what you can come up with here.

ScreenShot00116.png

You will have to register for the events and also show the "Dynamic Events Terminal" on the Event Structure (Right click the border of the event structure).  Again, this is pretty crude code, but it hopefully gives you something to work toward.  The pallet you will need is under Programming»Dialog and user Interfaces»Events. There are also a few examples that you can look at.  The example Programmatically Firing Events will give you an idea of how you can use this in an actual application. Hope this helps!

ColeR
Field Engineer
0 Kudos
Message 3 of 3
(3,174 Views)