06-10-2011 03:35 AM
No, you can't do that. Your VI doesn't work properly.
Try this, the 0.5 limit that I set as lower limit is only an example, you have to write there the limit you want to control.
06-10-2011 07:55 AM
If your pressure control 1 is >= 0.98 you both activate and deactivate the pump at the same time. Maybe, depending on the race.
/Y
06-10-2011 08:29 AM - edited 06-10-2011 08:32 AM
I said with "the other condition". Not the same condition. Whatever you want that condition to be.
The problem with Y's method is that since there is a value being writting on every loop iteration, you've taken out the ability for the manual front panel button to do anything meaningful. User control is completely removed. With two separate case structures, it can be forced true in one case, forced false in a different case, and if neither condition is true, then it will use whatever is the value of the front panel control at that time giving the user the ability to turn it on or off themselves.