06-10-2014 08:32 AM
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
06-10-2014 08:40 AM
Can you share the code
Thanks,
Vijay
06-10-2014 08:42 AM
Unfortunately because of where I work, sharing code is not possible.
06-10-2014 08:48 AM
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.
06-10-2014 09:15 AM
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
06-10-2014 09:53 AM
How are you runing the sub-vi?
Could the sub-vi be blocking the execution in the main vi?
06-10-2014 11:01 AM
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