LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can I terminate a subVI using dynamic events?

I've got a VI which can bring up a user-interactive subVI.  The subVI front panel is visible and has event structure associated with it.

I'd like to programmatically terminate the subVI from an action on the parent VI.  Can I do this through dynamically registered events, or user events, somehow?

What I'm trying to do is implement a LabView-like Graphical Control Palette (shortcut menus).  The user should be able to kill the subVI (a menu-like VI) by clicking on the main VI.

My not-so-good approach is to have a short timeout to the subVI and read the value of a control reference which is passed from the main VI.  I'd rather not have to use the timeout for this, though.

Thanks,
Tom
LabView 8.2
Full Development System.
0 Kudos
Message 1 of 3
(2,660 Views)
Create a user event and use it. You can see an example here.

___________________
Try to take over the world!
0 Kudos
Message 2 of 3
(2,657 Views)
Ding ding ding!  Perfect answer!  I was trying to pass a reference of the control, rather than a reference of the user event.

Thanks!
Tom
0 Kudos
Message 3 of 3
(2,650 Views)