LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to put the break at the first place of execution While Loop

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

0 Kudos
Message 1 of 3
(2,178 Views)

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?

0 Kudos
Message 2 of 3
(2,163 Views)

The correct way is probably to use a state machine architecture. Simply enter the idle state when the game is over.

0 Kudos
Message 3 of 3
(2,155 Views)