LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

guess number

Solved!
Go to solution

Thank you, I understand what was causing trouble.

I am trying to give 4 attempts, but it is taking more than 5 attempts. 

 

0 Kudos
Message 11 of 12
(430 Views)

Well, an image cannot tell us what's wrong. We cannot run it, we cannot see what's in the other cases, etc.

 

  • Your comparison is >5, so that IS "more than 5 attempts". Right?
  • Where does the count increment? Where does it initialize? Did you probe the value during run?
  • A 1000ms wait seems excessive. Why did you pick it?
  • Does the rest of the functionality work as expected?
  • Code is easier to debug if you keep the wiring clean. No need for all these wire bends and overlaps.
  • Why don't you display the number of guesses in the text indicator?
0 Kudos
Message 12 of 12
(417 Views)