LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

runtime menu not working in exe - could be a bug in LV 2009

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 

 

0 Kudos
Message 1 of 13
(4,369 Views)

Does any one has any idea about the above problem?

 

 

Thanks,

Ritesh

0 Kudos
Message 2 of 13
(4,341 Views)

Hi ritesh,

 

I had the same (or a very similar) problem last year, here's my thread mentioning a workaround...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 3 of 13
(4,335 Views)

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 

0 Kudos
Message 4 of 13
(4,314 Views)

 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

Regards,
Srikrishna


0 Kudos
Message 5 of 13
(4,306 Views)

@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. 

 

 

0 Kudos
Message 6 of 13
(4,294 Views)

hi ritesh,

  Can you just post the screen shot of the project window or post atleast project (*.lvprj).So that i can create the exe with working menus for you..

  I am sure that it is not a bug in lv2009,as recently created an application of thatkind.

 

 

Thanks and regards,

srikrishnaNF

 

 

 

 

Regards,
Srikrishna


0 Kudos
Message 7 of 13
(4,284 Views)

I have attached the project file to this mesaage.

 

 

Thanks,

Ritesh 

0 Kudos
Message 8 of 13
(4,279 Views)

hi ritesh024,

  It seems that you didnot include the rtm file in the project and if so,you did not change the source file settings to Neuro stim.exe....and also fro which control you have created a menu,for that control menu should be enabled....

 

 

Thanks and regards,

srikrishnaNF

Regards,
Srikrishna


0 Kudos
Message 9 of 13
(4,271 Views)

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 

0 Kudos
Message 10 of 13
(4,267 Views)