Hi
 
I have a simple event structure inside a case structure inside a while loop! The while loop has a shift register to feed back the output of one case to select the next case to be run (typical state machine).
 
The event structure is inside a 'ProductScan' case, and on pressing the OK button, a message is displayed and then , the 'ProductScan' case is exited and the 'Test' case begins. On completion of the test, the 'ProductScan' case is reselected.
 
The problem I am having is that if the OK button is hit twice by accident, when the 'Test' case exits and the 'ProductScan' case re-enters, the extra OK button press is being remembered and the 'Test' case is being started again. Is there a way to prevent multiple occurances of the same case being called - I do have the lock front panel until event completes selected.
 
Cheers