05-05-2010 07:53 AM
Hi all,
i have set customized run time menu for some of the controls in my application. i created a .rtm file for all the different run time menus. it works fine if i run it under the labview platform. however, when i create an exe of the app and deploy it on different system, the run time menus doesn't work. it works well on my system though.
i did include the .rtm file in my project.
after fiddling around to find the solution, i found that even though i have included the .rtm file in the project, the exe still looks for the .rtm file in the hard drive and not the exe. if i change the name of the .rtm file in my system, the runtime menu stops working in the exe on my system also.
i feel it's the problem in the LabVIEW 2009 as when i created the exe of the same app in LV 8.5, it run without any issue.
Ritesh
05-05-2010 02:01 PM
Does any one has any idea about the above problem?
Thanks,
Ritesh
05-05-2010 02:11 PM
Hi ritesh,
I had the same (or a very similar) problem last year, here's my thread mentioning a workaround...
05-05-2010 10:07 PM
I came across that issue also - it seems that you have to save the shortcut menu with the control and not as a separate RTM file.
Shaun
05-05-2010 11:10 PM
Hi ritesh,
Actually it is not a bug in labview 2009.Are you creating a run -time menu only for some controls?If yes,then when you are saving the run time menu file,you need to save with control.And when buidling an exe in the project,include that menu and set the source file setting as your application.exe and build the exe.
Thanks and regards,
srikrishnaNF
05-06-2010 01:12 AM
@srikrishnaNF - I tried the method you suggested, and still found the RTM missing in the exe. I this its a bug in LV2009 because the same thing is working when creating the exe in LV8.5
@Shaun - Right now that only seems to be the possible workaround. But the problem is i have 50-60 controls with RTM in my app. creating a RTM for each control is a real tedious job.
@GerdW - I am sorry but i couldn't follow the solution on the page you posted. I have already disabled the "Allow default runtime" option.
05-06-2010 01:44 AM
05-06-2010 02:02 AM
I have attached the project file to this mesaage.
Thanks,
Ritesh
05-06-2010 02:14 AM
05-06-2010 02:19 AM
Hi srikrishnaNF,
I have included the RTM file in my project.
you can locate them at various places in the project like MNCV->Menu->RTM Files, Menu->RTM Files, SNCV->Menu->RTM Files, etc.
Ritesh