06-03-2010 09:56 AM
Discovered an interesting "feature" (error?) in LabVIEW 2009 when using custom run-time file menus.
If you create a custom run-time menu (.rtm) and name it "FileMenu.rtm" the menu will not function correctly in executable format.
In my LabVIEW Project, any VIs which called this custom file menu worked correctly in the project, but when I built an executable, the VIs defaulted to the default file menu. This was not due to a corrupted .rtm file or the file not being included in the executable. Instead after extensive debugging I determined that the name "FileMenu.rtm" is somehow reserved in LabVIEW and any executables that are built have the custom run-time menu overwritten by the default. The tricky part of this error is that it goes unnoticed while the code is still in development and only presents itself after being built into an executable.
Simply changing the name of the file fixed the executable run-time menu.
06-07-2010 07:35 AM
David,
Interesting. I was unable to reproduce this just now using LabVIEW 2009 SP1 and Windows 7, so I will try it again on LabVIEW 2009. Which operating system are you using? Do you have any updates/patches installed to your LabVIEW 2009?
Best,
Chris LS
06-07-2010 10:17 AM