LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

menu reference

Solved!
Go to solution

In my subvi, I am trying to get the main vi's menu's reference, so that I can modify the main vi's menu with vi such as Set Menu Item Info.  How do I get the reference in a subvi?  Is there a property I can use?

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 1 of 4
(2,806 Views)

Some quick searching around leads me to believe that this isn't available.  You can get the path to the main VI's menu, but not a reference to the menu itself.  If knowing the path to the .rtm file doesn't help, can you put the main VI's menu reference into a global (ahem) that you can read from the sub VI?

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

Message 2 of 4
(2,795 Views)
Solution
Accepted by jyang72211

Any reason not to simply pass the menu reference from the main VI to the subVI?

Message 3 of 4
(2,788 Views)

Darin - No reason.  I had no idea what I was thinking.  Thanks for pointing that out. 

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 4 of 4
(2,782 Views)