LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

process top-VI run-time menu events in subVI

Hi all,

 

I have subVIs which I want to call via sub-panels.  The subVIs have their own custom run-time menus, which cannot be seen when called by sub-panel.

 

These subVIs use an event structure configured with the Menu Selection? event.

 

I understand the solution is to pass a reference of the top-VIs menu into the subVI.  I would then have to manually configure the custom run-time menu to appear in the Top-VI UI.

 

I want user selections of the run time menu in the TopVI to be processed by the subVI.  How do I configure my event structure to handle this?  Do I use the Get Menu Selection VI?  This seems incompatible with my event structure..

 

Cheers,

 

Battler.

0 Kudos
Message 1 of 4
(2,728 Views)

Hi all,

 

I have subVIs which I want to call via sub-panels.  The subVIs have their own custom run-time menus, which cannot be seen when called by sub-panel.


See the attched vi .

 

in this 1.Vi is the main...Hit the "open" to luanch the 2.vi in the subpanel and then right click on the graph to see the custom pop up...

 

 

Guru

Regards
Guru (CLA)
Message 2 of 4
(2,713 Views)

Thanks Guru, but not quite what I was looking for.

 

I mean the standard run-time menu at the top such as File, Edit... etc.

0 Kudos
Message 3 of 4
(2,698 Views)

OK now i got your question....

 

I would probabbly go in this approch..see the attched file.

 

run time menu events thats being genearted from the main vi are passed to the loaded vi in the subpanel through dynamic event handling and this passed data can be processed by the sub vi later

 

 

Guru

 

 

Regards
Guru (CLA)
Message 4 of 4
(2,684 Views)