12-06-2006 11:51 AM
12-08-2006 12:55 PM
12-08-2006 01:34 PM
12-08-2006 06:30 PM
12-08-2006 09:41 PM
Sorry, I misread the original question. To my knowledge, there is no way to programmatically obtain the menu reference through VI Server. I think the "Current VI's Menubar" function is the only way to get it, so I suppose you do need to pass it into the subVI from the main VI.
-D
12-09-2006 08:01 AM
12-09-2006 03:08 PM
I just thought of a workaround...you could have a Menu Bar Ref indicator on your main VI front panel. When your VI runs, you could have the Current VI's Menubar function wire the refnum into that indicator. Then, in your subVI that has the VI reference, you could use VI Server to read the value of that indicator, then cast the value into a refnum wire, then you'd have access to the menubar reference in the subVI without having to pass it in to a subVI terminal. Would that work?
Oh, another simpler idea would be to simply wire the Menubar reference into a global, and read that global in the subVI.
-D
12-09-2006 07:20 PM