03-19-2008 07:11 AM
03-19-2008 07:17 AM
Hi dave222,
one solution could be to stop the while loop after the pressure reaches the 10bar mark and send after the while loop stops the signal to the motor. Another solution is to use queues for the communication between two loops. One loop to control the value and another to send the signal to the the motor. Or you insert a case structure into your while loop and insert there your function to stop the motor. This case will only execute if the pressure is high enough.
Hope it helps.
Mike
03-19-2008 07:29 AM
Hi Dave,
It would be easier to see where your problem is if you would post your code.