I have a case structure which is operated by either a button OR a digital in, the stuff done in the case structure is the main priority in the program. When outside the case structure, there are other things that can be done but with less priority than the case structure loop.
Is there a way to interrupt whenever you are doing a low priority job when a high priority job is triggered (when a digital input is received).
The example I have included shows this, if you press the 'waste time' button it prints stuff to a string box, while this is happening if you press 'go' it doesn't go into the case structure UNTIL the waste time routine is finished. What I want is that as soon as I press go, it immediately ends the waste time routine and enters the case structure.
I hope I make some sense??? Any help would be appreciated
Nice