LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

State sometimes allows invalid selection

I have a program with a pseudo state-machine depending on what the user has selected. It seems to work most of the time, but sometimes it seems like an option that should not be allowed by the user is allowed, IE they can select a door that is already revealed.

 

LV 2020

win-a-car-screenshot.png

0 Kudos
Message 1 of 4
(384 Views)

Can you provide a step-by-step  procedure to reproduce the problem?

 

(e.g. change the dices to  fixed values for testing)

0 Kudos
Message 2 of 4
(374 Views)

I can't. It seems very rare, and I have not been able to reproduce it. Haven't seen it at all lately. Maybe it was my bias. 

0 Kudos
Message 3 of 4
(369 Views)

My guess is that it can happen if doors are clicked in rapid succession.  When a door is clicked, it is effectively disabled by a subsequent timeout event.  If a second door is clicked very quickly after the first, that second door click event can be triggered before the timeout event (that would have prevented the 2nd door click from having an effect).

0 Kudos
Message 4 of 4
(304 Views)