LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Custom run-time menu missing in built executable

I've created a custom run-time menu for a tree control in LabVIEW 10SP1.  This run-time menu appears in run-time and works fine.  I have included the .RTM file in my project.  In the built executable however, the custom run time menu does not appear when right-clicking the control.  What is the correct procedure for including a custom run time menu in a built executable?

0 Kudos
Message 1 of 9
(4,644 Views)

If I remember correctly there is an issue where the menu only works correctly if you use the save with control option, otherwise it dissaperas when in the executable.  There are some posts on this but they are hard to find.

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 2 of 9
(4,636 Views)

And this is still the case in 2012 SP1...Will it ever be fixed? I have not checked 2013 on this yet...

0 Kudos
Message 3 of 9
(4,512 Views)

The similar problem still in the version 2014 SP1. The executable works correct only when it is placed in original built path. It does not work after moving into another location. So it is now much harder to identify the problem... It works correct when menu is embedded in the control (tree in my case) instead of using .rtm file.

0 Kudos
Message 4 of 9
(4,417 Views)

I think if you set the .RTM file to 'always include' in the build specification, it might then work.


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 5 of 9
(4,391 Views)

Thanks, I set 'always include' for appropriate .rtm file in the build specification and it works fine. Good to know it!

 

0 Kudos
Message 6 of 9
(4,385 Views)

@Sam_Sharp wrote:

I think if you set the .RTM file to 'always include' in the build specification, it might then work.


 

That was not true before...but I see that it is now in 2015. I had to retest it here now just to make sure, because I was quite sure it was not like that before...

So they have done a change in 2015 I think, but have not made it detect the link automatically (you still have to tell the builder that it needs to be included).

0 Kudos
Message 7 of 9
(4,373 Views)

I'm pretty sure it also works in LV2013 - I have an application at the moment which uses a run-time menu file and it's included as 'always included' in the build specification so it shows up in my application.


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 8 of 9
(4,358 Views)

I think the reason why you get things to work is that you are testing on statically called VIs only. There has been an improvement with regards to dynamically called VIs in 2015, but the fact that you have to manually tell LabVIEW that the menu is associated and should therefor be included in the build is still there:

here is an overview of the working and not working scenarios from 2012 to 2015:

missingmenubug.JPG

0 Kudos
Message 9 of 9
(4,331 Views)