Hi, I posted this once but the message did not appear. So, just posting the same message again.
I have a subVI that needs an emergency stop. Once this stop is pressed, the VI should stop running. The subVI has several loops running sequentially. I want this " EmStop" button to take effect no matter at which execution point the VI is. I tried putting an altogether separate loop that runs parallel with the program and checks for the "EmStop" periodically. The condition of this loop being "EmStop not pressed - continue". Considering an experiment where "EmStop" is not pressed and the subVI is executed till the end of the program which has a normal stop button which returns it to the main VI. In such a situation the control does not transfer between subVI to main VI since the EmStop loop is still running waiting for EmStop to be depressed. Instead I wired the state of normal "Stop" along with "EmStop" using OR gate to remove this problem. In such a case, if I press on "EmStop" it does not acknowledge because the loop waits for the value of the "Stop" button to evaluate the OR function. But the value of the "Stop" button does not come till the very end as it runs in a sequence. The Stop buttons are Latch when released buttons and I guess setting up a local variable does not work. Could you let me know as to how I could do it? Thanks Shankar
