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.

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

Similar Messages

  • Problems with executing customized Run-Time menu from a sub-vi imported from the main vi.

    I am having trouble executing Run-Time menu from the sub-vi.
    Currently my main vi program, which is the first thing that I open up to acquire data from different sources (i.e. dll’s, scanners etc.) opens up a number of sub-vi’s.
    I have created several sub-vi’s, which are opened from the main vi’s customized Run-Time menu that I have created (i.e. dsp file). I am using the open panel.vi to open other sub-vi’s. I don’t have any problems opening any number of sub-vi’s through the main vi’s menu.
    I would also like to have the option to open other sub-vi’s from any sub-vi’s menu. I succeeded in exporting the Run-Time m
    enu from the main vi to the sub-vi using the property node properties however nothing happens (I hear a beeping sound) when I click on the sub-vi’s menu. I don’t know what I am doing wrong. I would really appreciate it if someone can attach a sample code using Run-Time menus on sub-vi’s imported from the main vi.
    Thanks
    Nish

    I don't actually have any VIs like this. It might be easier to take the menu and just add it to the VI during development. Then it will always be there. It might be easier than doing this with Property Nodes.
    J.R. Allen

  • Custom Run Time Menu (.rtm) for a tree control doesn't appear in LV executable

    Hello,
    I am using a custom run time menu (.rtm) for a tree control in LV.  When I right click on the control the run time menu appears in the LV development environment.  However the run-time menu does not appear when run the executable installed by the installer I created.  I tried including the .rtm file with the installer, but it did not fix the problem.
    Please let me know if any ideas.
    Thanks,
    Russell

    This is a known issue and has been reported to our R&D engineers for further investigation (CAR# 3T2E57V2). The workaround is to embed the run-time menu in the control instead of the separate .rtm file. To do this, make a minor change in the shortcut menu (for instance, add a dummy item then delete it), so that the shortcut menu editor will ask you to save the new menu. When it prompts you, choose to save it with the control instead of to file.

  • Why am I getting Run-time menu error (Error 88 occurred at One or more illegal menu item index in...) in my built applicatio​n (single .exe) , but don't get any error when running/de​bugging it?

    I am using LabVIEW 6.02 & also downloaded the application builder patch. For my runtime menus, I've a subVI that first calls "Delete Menu Items.vi" to get rid of the standard menu items and then "Insert Menu Items.vi" to add my own. I only get an error when I try to run the built application.

    There was a similar issue in LabVIEW 5.0 where you would get the error if you passed an empty array to the 'items' input of Delete Menu Items. This was corrected in version 5.0.1. Did you mass compile your VI's after upgrading to version 6.0.2?
    I tried to reproduce the problem in a small VI but was not successful. I can run an executable built from this example without any problems. I am attaching it for you to test.
    Chris_Mitchell
    Product Development Engineer
    Certified LabVIEW Architect
    Attachments:
    menu.llb ‏33 KB

  • Custom Run-Time Menu Not Found in User.lib

    Our Instrument Run-Time Menus are getting lost.
    This is because we have some computers that are 32 bit and the code is located at
    C:\Program Files\National Instruments\LabVIEW 2011\user.lib\InstrumentDrivers
    Other computers are 64 bit and the code is located at
    C:\Program Files (x86)\National Instruments\LabVIEW 2011\user.lib\InstrumentDrivers
    The directories are thus slightly different because of how Windows treats the location of 32bit LabVIEW running on a 64 bit machine.
    Does anybody have an easy work around?

    I'm confused by "lost".  Do you mean when you build the path to your custom menu within your vi or are running some executable?  Is this code you have written?  If so, then maybe a simple check when initializing the paths might work.
    If it is as simple as just having to decide between those two directories, then I would just check to see if the win64 bit directory exist, using "file directory info" vi.  If it doesn't' exist you should get an error, then check to see if the other path exists, it should hopefully, and use that.
    Not sure if this is what you need.

  • Switching between different run-time menu programati​cally

    Hi All
     I am planning to build a Bilingual program…….am just doing trial and errors in changing all captions and run-time menu s programmatically with a single button click……….Here my logic is working fine for all captions and graphs also…………..but I could not change the run-time menu……….i am unable to switch between different run-time menus……………
    Here I am sending the program am working on………..please have a look on this, and suggest me something………….hope my problem get resolved.
    Thanks
    Anil Punnam
    Attachments:
    Caption_program.ZIP ‏31 KB

    Hi Anil,
    I'm guessing you're using 7.1?  When I first ran your program in 8.0, it worked perfectly and switched back and forth perfectly.  However, I tried it in 7.1 and saw some bad behavior.  The customer run time menu was not updated in the menu bar.  It looks to me like the run time menu is changing, but the front panel is not updating.  After pressing one of your front panel buttons to change the run-time menu back and forth, if you click on the file menu it should update, although this can lead to some funny looking menus since "affiche" is longer than "file" and you can still see the remnants of the old menu.  Try this and let me know if this is indeed the behavior you are seeing (check out the attached pic).  I thinkt hat R&D already had a report on this, and that is why it is fixed in 8.0.
    Megan B.
    National Instruments
    Attachments:
    RTM.JPG ‏34 KB

  • Creating customized run-time menus

    I am trying to create a customized run-time menu when I right click on a tree control. I can disable the existing run-time/pop-up menu but would like the ability to use a different customized menu.
    I can simulate a run-time menu by using creating a VI that functions in a manner similar to the menu but would prefer the ability to create and process and customized run-time/pop-up/floating menu.
    The menu is always of a fixed size with all items enabled. I do not need the ability to modify this menu within the application.

    There is an LTR article by David Ritter called "Contextual Pop-Up Menu Programming" that shows a method similar to yours. It is well worth a look.
    -Jim

  • Project explorer doesn't show callers for .rtm (run time menu) files (is this a confirmed bug?)

    Maybe I was to quick to report this as a bug... I was unable to find anything related to it at my normal sources of information. Does someone has exeperience with it?
    I have a work-around and this is included  in the description :
    http://forums.ni.com/ni/board/message?board.id=BreakPoint&message.id=6776 (message 25)
    ** Original post **
    When a library (.lvlib) that contains a file with a run-time-menu (.rtm) file is removed from the project, but there is still a file that uses this .rtm file, both the .lvlib and all of it's vis and the .rtm file are displayed in the project Dependencies.
    For the Vi's the callers can be found by 'Find->calllers'. For the .rtm file this always results in 'No items found' but the .rtm file remains in the Dependencies (as it should since it is still used).
    Finding the .rtm file can be hard since it is only loaded at run-time and not at edit time(?). If someone encounters this issue, a working method:
    - rename the rtm file (so it cannot be found)
    - open the vis that you suspect are using this file AND try to edit the run-time menu. When this vi uses the run-time menu a warning will appear (cannot load rtm file, using default menu instead)
    Kind regards,
    Mark

    Dear Mr. Beuvink,
    thank you for your reply. It seems that a while back this problem has been reported to our R&D group. The request (CAR) has ID; 41579. There is the following statement in this CAR: the caller vi is in memory or not. When a caller vi is in memory, rtm files will currently never report the vi as a caller. This confirms the behavior you are seeing.
    I'm sorry to say I don't have a solution at this moment, at this moment they are busy fixing this problem. You can look this up in future release notes by searching on the CAR ID I mentioned.
    If you haven any questions, please don't hesitate to contact me.
    Best regards,
    Martijn S
    Applications Engineer
    NI Netherlands

  • LV2011 run time engine error

    Somebody knows why I hit a run time engine error when I select runtime adapter in teststand? If I choose dev environment, there is no error and the vi executes.
    Attachments:
    RunTimeError.png ‏194 KB

    Hello JoVMo,
    I think the reason and solution for the issue can be found in this KB:
    http://digital.ni.com/public.nsf/allkb/24A8C9552C01D7368625735600768095?OpenDocument
    Please let me know if it resolves the issue.
    Kind Regards,
    Thierry C - Applications Engineering Specialist Northern European Region - National Instruments
    CLD, CTA
    If someone helped you, let them know. Mark as solved and/or give a kudo.

  • How can I use undo and redo with run time menu?

    Hi..I try to built my own menu for graphic programming. How can I use undo and redo in labview with run time menu?

    filozof-
    During runtime, by default, LabVIEW has undo/redo data changes under the edit menu. This will undo/redo changes made to controls during runtime. If you want a more extensive undo/redo (custom for your application), you are going to have to do quite a few things
    1) Create a custom runtime menu (Edit>>RunTime Menu) and place your own undo/redo controls on it
    2) Keep an action history in your program
    3) Catch the Shortcut menu event for your custom undo/redo controls
    4) Reverse the last action in your histroy when you catch the event
    This method would allow you undo entire operations (like resize, move, or whatever kind of functionality you are building into your application) unstead of just undoing data changes.
    Xaq

  • Custom run-time menus within dynamically called sub-VIs?

    How do you use custom run-time menus within sub-VIs that have been dynamically called? I'm using Labview 6.02.

    Since you say within subVIs, I am assuming that you have the subVIs open their front panels when called. Each subVI must have the RTM defined when the subVI is created. You can use the same RTM for each one (use the open function in the menu editor).
    If necessary, you can dynamically add and remove menu items using the Application Control->Menu functions. I have some subVIs that add items to the main RTM when they are loaded and remove the items when they finish.
    Rob

  • In LV6.1, can I get the run-time menu refnum of a VI from the VI Path?

    Actually, for any version of LabVIEW, can I get the run-time menu refnum from the VI Path (or the VI reference)?
    Thanks!
    Enrique
    www.vartortech.com

    I just thought of a workaround...you could have a Menu Bar Ref indicator on your main VI front panel.  When your VI runs, you could have the Current VI's Menubar function wire the refnum into that indicator.  Then, in your subVI that has the VI reference, you could use VI Server to read the value of that indicator, then cast the value into a refnum wire, then you'd have access to the menubar reference in the subVI without having to pass it in to a subVI terminal.  Would that work?
    Oh, another simpler idea would be to simply wire the Menubar reference into a global, and read that global in the subVI.
    -D
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • Changing the run-time menu programatically

    Hi All
    I am developing an application which will be a bilingual. when i click french button on GUI, all display messages changes to french. When i click on English, all captions and messages come in Engilsh. I am using property node to change the captions of controls and graphs for different languages. and using a global variable to pass the language information between different windows(Sub VIs). Now the problem is, i have to change the Run-Time Menu also. Not getting how to do this. Can anyone help me about this. Is it possible to make this?
    Thanks
    Anil

    Hi Anil,
    It looks like you are on the right track by using Property Nodes.  You can use the string input of the property node to select the appropriate message to display (language), along with a Boolean selector (ie: TRUE = English, FALSE = French (or vice-versa) ).
    You could also use a Property Node for the language selection.
    JLV

  • Help for run-time menu localization

    I would like to dynamically change the run-time menu according to the predefined language setting. For example, if the setting (may be set up in a txt file) is German, then when the application is running, it automaticall display a german menu. if the setting is spanish, the menu will change to spanish display. Any help will be appreciated.

    The attached VI can dynamically change the run-time menu and short-cut menu based on language.
    帖子被ttrr在07-24-2006 09:12 PM时编辑过了
    Attachments:
    Multi Language Menu.zip ‏13 KB

  • PocketPC run-time menu separator

    I'm using LV PocketPC 8.0.1  When defining the run-time menu with a separator, LabVIEW for PocketPC uses letters such as (A), (B), (C) for the three separator instead of using the ---------------- characters.  This happens for Windows Mobile 5.0.  Whats going on?
    Attached is PocketPC executable and source code.
    Robert
    Attachments:
    Menu Test.zip ‏389 KB

    Here is what I see.
    Load
    Save
    Print
    Revert
    Exit
    Since it is from the same executable, it is most likely not a LabVIEW thing? Perhaps a difference in the OS itself? I am on Windows Moble Version 5.0 OS 5.1.70 (Build 14402.1.1.0).
    I have LabVIEW 8.0.1 with the PDA module updated to 8.0.1 as well.  Since I did not build it myself, the LabVIEW stuff shouldn't matter.  I have the evaluation version of Microsoft Visual Studio 5 and maybe I have some different libraries than you do due to some version difference with it.
    I don't know what else to try. The same exe should behave the same . . .
    Have you talked to an AE at NI? You might want to point them to these posts if you do.
    Sorry I am out of ideas!
    Bob Young
    Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
    DISTek Integration, Inc. - NI Alliance Member
    mailto:[email protected]

Maybe you are looking for

  • Photoshop 3.2 to elements 10

    How do I import pictures from Photoshop Album starter edition 3.2 into elements 10 without an unlock key as 3.2 no longer exists. My pc automatically gets photos into 3.2.

  • QoS Trust

    Hi, I just want to confirm the best practice with CUCM and LAN QoS. I have a CUCM 10.5 cluster attached to a 4948 edge. CUCM is marking all signalling traffic with the appropriate DSCP markings. Therefore I assume all that is required on the LAN is t

  • Can't load certain web pages.  Is it the ActionTec Router?

    Most websites load fine, but I've been having a problem accessing some websites, like www.write-bros.com and www.screenplay.com. For some reason, my MacBook Pro can't access those sites, using either Safari, FireFox, or the software that accesses the

  • TS4429 I have just got a new iphone4 and put in the sim. It is saying invalid sim. Why is this?

    I have just been given a new Iphone4 for my birthday. I have inserted my sim but the phone is saying sim failure. Can you tell me why this is and what I can do please. Thanks

  • Long runtime of RBDMIDOC for IDoc ARTMAS

    Hi,    We are in IS Retail. We are using IDoc to capture article master creation & changes, and to reflect those details in retail stores. For this we have created custom Z message type & assigned it to a sap standard basic idoc type ARTMAS05. We hav