LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

The buttons in main the vi get locked after opening a vi reference in a subpanel and using buttons within the subpanel.

I am trying to open a reference to a vi in the subpanel of the main vi. However after the vi opens in the subpanel and after pressing a few buttons in the subpanel the buttons in the main vi get locked, i.e. I can't even close the main vi or control anything else. Is there any way how I can avoid this happening?
0 Kudos
Message 1 of 2
(2,348 Views)
> The buttons in main the vi get locked after opening a vi reference in
> a subpanel and using buttons within the subpanel.
>
> I am trying to open a reference to a vi in the subpanel of the main
> vi. However after the vi opens in the subpanel and after pressing a
> few buttons in the subpanel the buttons in the main vi get locked,
> i.e. I can't even close the main vi or control anything else. Is there
> any way how I can avoid this happening?

This is most likely happening because in either the top or sub panel,
there is an event structure that is queuing events, and is set to lock
the panel until the events are handled, and because of the logic in the
diagram, the events aren't being pulled from the queue.

So, you have a deadlock. You are waiting
on the panel. The panel is
waiting on the diagram. And the diagram is waiting on something else.
So, if there are indeed event structures involved, determine where in
the diagram things are delaying. Also, if you do not need the panel to
lock until the event is handled, you can change the setting in the
events dialog on the structure. But the events will still be queued
until the diagram starts executing.

Greg McKaskle
0 Kudos
Message 2 of 2
(2,347 Views)