03-27-2007 02:24 AM
03-27-2007 04:18 AM
03-27-2007 07:58 AM
03-27-2007 02:13 PM - edited 03-27-2007 02:13 PM
What I would do is create a new runtime menu with the items you want disabled. You can create as many different runtime menus as needed. You can then take the reference from the "open vi by reference" and write to the "RT Menu Path" property. See attached pics.


Message Edited by AndrewAlford on 03-27-2007 01:14 PM
03-27-2007 03:13 PM
03-27-2007 03:42 PM
Crazycliffy: The question was how to get the reference to a dynamically loaded VI's menu in order to use the functions on the palette you mentioned.
Here's my idea, although I didn't test it out so bear with me. I'm not 100% sure it will work.
1. In the dynamically loaded VIs, put a reference to the run time menu and wire this to an indicator so it runs as soon as the VI starts.
2. In the VI doing the loading, load and run the new VI.
3. Use the Control Value:Get[variant] method to get the value of the indicator containing the reference to the run time menu.
4. Use variant to data to convert the variant to a run time menu reference.
If that didn't explain it clearly enough, I can write an example tonight. Just let me know.
03-28-2007 01:25 AM
03-28-2007 08:28 AM
03-28-2007 08:58 AM
Can U pl post the code saved for LV 7.1 ?
I cant understand Marc's explanation completely. ![]()
03-29-2007 05:18 AM