LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Event handling appears to be suspended

I have a main VI using events with a tree control.  It loads a sub VI in a sub-panel.  The VI in the sub panel in turn launches a sub-vi used to edit certain parts of the calling VI in a controlled manner.  I want one of the controls on this sub-vi to be the target of a drag & drop operation from the main VI's tree control

 

When I try to interface with the main VI while the sub-vi is executing, no events get acted upon until I close the target sub-vi.  Does anyone have experience in this area and could provide some guidance?

 

Window appearance settings for the sub-VI:

    Show front panel when called, and close afterwards

    Window behavior = Default.

 

Thanks in advance,

David

0 Kudos
Message 1 of 7
(2,552 Views)

Can you share the code

 

Thanks,

Vijay

0 Kudos
Message 2 of 7
(2,545 Views)

Unfortunately because of where I work, sharing code is not possible.

0 Kudos
Message 3 of 7
(2,543 Views)

OK got it.

 

Only thing to check is make sure your code with event structure is executing in Main VI as well as in Sub VI in order for the Drag and Drop to work.

0 Kudos
Message 4 of 7
(2,540 Views)

You know what ... The sub-vi doesn't have an event structure.  That could be the problem right there.  It's a simple VI that's just a while loop.  I wanted to add the drag & drop functionality, but haven't yet put the event handling part in the target code.  I guess I got ahead of myself.

 

Thanks for opening my eyes.

 

Before posting this, I added the event structure to the sub-VI.  A simple event structure in a separate while loop within the sub-vi handling only the stop button value change event.  Still the main VI doesn't respond to any events.  (I'm not trying the drag & drop yet, just simple value changes on the main vi's front panel.)

 

David

0 Kudos
Message 5 of 7
(2,534 Views)

How are you runing the sub-vi?

Could the sub-vi be blocking the execution in the main vi?

0 Kudos
Message 6 of 7
(2,527 Views)

The sub-vi is just on the diagram of the VI that is running in the sub-panel.

 

Let's close this discussion because I decided to take a different approach.  It turns out that the data I was trying to drag & Drop isn't the correct data for the situation anyhow.

 

But, Thanks to everyone for your assistance.

 

David

0 Kudos
Message 7 of 7
(2,517 Views)