05-26-2013 06:18 PM
Hello everybody,
I have a problem with a while loop.
I made the interface of a tic-tac-toe game with labview.
my problem is that after the computer has won or there is a draw, that the board has to be updated, which i do by shift register.
My problem is now though, that there isn't a break after i updated the board. I have to click one more time on the board(and execute the whole VI) before the break sets in.
so my question is, how can i put the break in a way that the condition is checked everytime BEFORE the VI runs?
Thank you very much
05-26-2013 07:00 PM
You need to post your VI so we can understand what you are talking about. When you mention "break", it sounds like you are talking about a breakpoint which is used to help debug a VI. But your description talks about normal operation of your VI. So what are you talking about?
05-26-2013 08:04 PM
The correct way is probably to use a state machine architecture. Simply enter the idle state when the game is over.