|LabVIEW 2015 Help|
|LabVIEW 2016 Help|
|LabVIEW 2017 Help|
|LabVIEW 2018 Help|
|LabVIEW 2019 Help|
By default, when an event enters a queue, LabVIEW locks the front panel that contains the object that generated that event. LabVIEW keeps the front panel locked until all Event structures finish handling the event. While the front panel is locked, LabVIEW does not process front panel activity but places those interactions in a buffer and handles them when the front panel is unlocked. For example, if an event case launches an application that requires text entry from the user, the user might begin typing before the application appears on the front panel. If the Lock front panel until the event case for this event completes option is enabled, once the application launches and appears on the front panel, it processes the key presses in the order in which they occurred. If the Lock front panel until the event case for this event completes option is disabled, the key presses might be processed elsewhere on the front panel, since LabVIEW does not queue their execution to depend on the completion of the event case.
|Note If an event case that locks the front panel takes a significant amount of time to execute, consider using the Set Busy function or displaying a dialog box to notify the user that the front panel is locked.|
Front panel locking does not affect certain actions, such as moving the window, interacting with the scroll bars, and clicking the Abort Execution button.
|Caution If no Event structure executes promptly to handle an event and front panel locking is enabled, the user interface of the VI may become unresponsive. If this occurs, click the Abort Execution button to stop the VI. You can disable front panel locking by right-clicking the Event structure and removing the checkmark from the Lock front panel until the event case for this event completes checkbox in the Edit Events dialog box.|
You can disable front panel locking for notify events so that when an event enters a queue, all controls, including the one that generated the event, still can generate events. When multiple events occur, LabVIEW does not wait until the front panel is unlocked to handle them. Complete the following steps to disable front panel locking.
|Note You cannot disable this option for filter events, because LabVIEW cannot finish processing a filter event until its case completes. Allowing LabVIEW to process other events while it is handling a filter event could cause events to occur out of order.|