LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read-only error for .mnu files when trying to edit function palette

I am trying to modify the functions palette to include some custom VIs in user.lib or vi.lib/addons (I can't get either to work). I am trying to create several layers of palettes in different groupings, etc, so I am creating .mnu files for each sub-menu.

The .mnu file creates OK and sometimes I can modify it with no problems. In some instances, though, I get an error that says it cannot write to the .mnu file because it may be read-only. This happens more often than not. I have checked the file attributes and it is NOT read-only. Once I get into this mode, the .mnu file cannot be modified further.

Is there a different or better way to create/modify .mnu files?
0 Kudos
Message 1 of 6
(3,023 Views)
There's a function in LabVIEW (at least in 5.0) in edit>>edit function and controll palettes that will do what you want.
Hope this helps
0 Kudos
Message 2 of 6
(3,023 Views)
check for a file called READONLY.TXT this one hinders editing a menu directory.
Just change the name to _readonly.txt and don't forget to change it back when done if you don't want others to mess with the menu files
greetings from the Netherlands
Message 3 of 6
(3,023 Views)
A couple of things: are you using a custom palette? Or are you trying to modify the default palette? Try creating your own palette based on the default palette. The custom ones are much easier to modify. I ran into this myself a while ago and the seperate menus were editable the FIRST time, but not after that.
Also: you can change the name of a file (mine are all in .dll's) and then it can be edited (once).
I worked with NI's support on this one and never did get a real fix. I just use the "copy/name change" work around.

Rob
0 Kudos
Message 4 of 6
(3,023 Views)
The Solution to this problem (in LabView 6 at least) is to ensure that the 'Synchronize With Directory' menu option is un-ticked for any submenus where you have edited the contents of the submenu, before attempting to 'save changes'

Right click over the submenu's icon to get at this menu option.

I don't know what effect this menu option is supposed to have - but it seems to do the trick!


Keven Cook.
0 Kudos
Message 5 of 6
(3,023 Views)
In LabVIEW 6.0.2 you cannot uncheck 'Synchronize with Directory' when the VIs are in a LLB since this entry is grayed. This item is checked by default.
I created a new LLB and want to change the palette for this LLB because all VIs are in the palette and not only the top level VIs. I do this in the standard palette. Since this LLB will be distributed with a hardware product the LLB will be installed in the user.lib folder and the application programmer should have the LLB available in the functions palette without doing enything else.
Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
0 Kudos
Message 6 of 6
(3,023 Views)