first problem: missing sub-vi's. Maybe they take too long to operate.
Second problem: the second frame of the outer sequence (which contains
the event structure) has a big race condition: in the event you set the
'Quit', but in the while loop around you read from 'Quit'. There's no
order which happen's first (even is the read operation is likely the
first one)! Why don't you wire the boolean values directly to the stop
condition of the while loop? You don't need this local variable in
Now I attached a slightly changed version of your vi 🙂