07-04-2007 03:18 AM
07-04-2007 04:06 AM
07-04-2007 05:19 AM
Thanks for quick reply JB,
But the main problem is still there. I want to remove the exit button. In the flat sequenced structure, as you see, I use delay time and test time. For example for delay time I gave 2, and for test time I gave 8. The program waits for 2 seconds and then makes the relay on by applying 5 volts and then holds the relay on position for 8 seconds, then applies 0 volt thus turning its position to off. During this process, the pressure reading goes on. But after the relay is off, the reading still continues. I press the exit button, and it stops. What I need is that : I dont want to use exit button. I want the reading to stop automatically when the relay is off (the last part of the flat sequenced structure). That's why I thought to use sum up local variables (delay time local variable and test time local variable) and connect to this to my while loop somehow. But I think I can just connect boolean to stop the loop. Thus it makes me think that I should use something else instead of while loop. I am not sure, however. There might be other solutions, but I don't know what they are.
Thanks
07-04-2007 07:02 AM
07-05-2007 05:29 AM
Hi JB,
Your solution has worked, thanks for your help.
Ahmet C