LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Run-Time Menu error when named "FileMenu.rtm"

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.

0 Kudos
Message 1 of 3
(2,827 Views)

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

National Instruments
Applications Engineer

Visit ni.com/gettingstarted for step-by-step help in setting up your system.
0 Kudos
Message 2 of 3
(2,792 Views)
Chris,

Thanks for trying it out.  It seems that my forum post may have been a bit rushed.  

I tried to duplicate the problem in a new project from scratch and similarly was unable to reproduce it.  I will try more soon, and in doing so perhaps reveal the true underlying problem.  I would post the original code but it is proprietary.

I was running LabVIEW 2009 and Windows XP when the problem first presented itself.  I updated to LabVIEW 2009 SP1 as part of my debugging and the problem still presented itself.

V/R,

~David
0 Kudos
Message 3 of 3
(2,780 Views)