Solution
Custom run-time menus in LabVIEW executables are typically loaded using a menu file reference. If the menu file cannot be located at run time, the custom run-time menu may not appear in the built application.
To troubleshoot this issue:
- Include the run-time menu (.rtm) file in the executable build.
- Run-time menus can be saved into a VI library (.llb) that is used to create the executable, which causes the menu to be included in the build.
- Alternatively, add the .rtm file to the Always Included section of the build specification:
- Build Specifications → Application (EXE) → Properties → Source Files.
- Add the run-time menu file to Always Included.
- Use a dynamically determined menu path at run time.
- After deployment, the executable may run from a different location than the development environment, causing static menu file paths to become invalid.
- Programmatically determining the location of the deployed .rtm file and assigning the menu reference at run time can help avoid these path-related issues.
For detailed instructions on creating, customizing, and programmatically assigning run-time menus, refer to Customizing Menus Programmatically. This documentation includes step-by-step guidance and example code demonstrating how to dynamically configure run-time menus in LabVIEW applications.