LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with timer and Reset. Help Please :(

Solved!
Go to solution

Hello all, I have a big problem when I put a button to Reset my program. Also, to count the time of my game.

 

I'm making a project named ''Simonsays'' which consists in a sequence of colors that you have to remember and have to click in each color to pass de level. 

 

The problem is that I have to make a timer or a counter that count the time of a game. For example when I push ''start'' the time begin, and when I make a mistake in the game the time has to stop. There is another button named ''New Game'' or ''Juego Nuevo'' that serves to ''RESET'' the game, but I can't do that tis button serves to RESET.

 

The game begins when you Push ''COMENZAR'' and the window of labview dissapears and then you have to click ''START'' and the game starts.. BUT when you make a mistake the game have to stop with the TIME that you make in all the GAME, and the game have to wait until you press ''NEW GAME'' and newly the game start with a new counter of the time.

 

I hope that you can help me. Please.

 

There are 3 files, because all the files are connected.

 

Thanks.

Download All
0 Kudos
Message 1 of 3
(2,943 Views)

I recommend you look at the State Machine.  You can use one to greatly simplify you code here and perform the action you are wanting.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 3
(2,909 Views)
Solution
Accepted by topic author Ulises97

I think I answerd it before ?!

Message 3 of 3
(2,892 Views)