Hi software enigineer,
The reason your front panel is locking up is indeed because the event structure was set to handle more than a single event. In an event structure, when one event fires, it will lock up the front panel until that event handler is released. Since the event structure was set to handle both the "Clock In" and "Clock Out" events, the "Clock Out" event was locking up the front panel until the "Clock In" event occurred. In general, it is a good idea to only place a single event to be handled for each case of the event structure.
The modification to your program posted by Dennis Knutson above should fix your issue.
There is a useful KnowledgeBase that discusses front panel lock-up when using event st
ructures:
Why Does My User Interface Lock-Up when Using Event Structures? Additionally, here are two helpful links at the bottom of that KB for more information about event-driven programming in Labvew that may prove useful:
Event-Driven Programming Technical PresentationEvent-Driven Programming in LabView For a brief tutorial on Event Programming with further information on creating a UI state machine using the event structure, please refer here:
A Powerful New Tool for UI Programming--User
Interface Event Programming.
Best of luck and happy programming!
Kileen Cheng
Applications Engineer
National Instruments