LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Panel gets stuck on Keyboard input with Event loop in the VI

Hi,
This VI is a simulation of the problem in my program. The program gets stuck as soon as a key is pressed soon after execution (while I am in first while loop).How can this be prevented if I am in first loop? Is there a way to unregister the keystrokes in first while loop?

Thanks
Kanwar
0 Kudos
Message 1 of 3
(2,794 Views)

Hi Kanwar,

After searching our online KB database, I found this KB that explains the behavior you are seeing. To prevent this from happening you would need to uncheck "lock front panel until the event case for this event completes". As you would notice, this option is grayed out when you use filter events (key down? in your case) and this KB presents a discussion of the problem.

Hope this helps.

Ankita

0 Kudos
Message 2 of 3
(2,773 Views)
Thanks for the reply.

After posting my message I did more research on that. In the LV documentation  they say " Use Dynamic reigistration if you want event generation to occur during only part of the application or if you want ot change which VIs or controls generate events while your application is running". Using dynamic event registartion does not solve the problem either. I guess I have to try the wayaround given in your link, creating a sub VI.

Kanwar
0 Kudos
Message 3 of 3
(2,770 Views)