03-08-2024 03:46 AM
Hello.
Is there a way to switch an entire labview project to "edit mode"?
If there isn't, how can I make an individual vi always open in edit mode?
I have seen that they always open in run mode and even if I change it to edit mode and save it, the following times they always open in "run mode".
Solved! Go to Solution.
03-08-2024 07:41 AM
What is "edit mode"? You mean a VI that isn't running and that you can edit? When you make a new VI the option "Run when opened" should be unchecked. Is this not the case in your situation?
03-08-2024 08:23 AM
My wild guess is that when you say "edit mode", you don't really mean edit mode (which means not running); and that what you really mean is that you want the block diagram to open when you open the VI.
There's no built-in way to set that up. You could create an XControl whose only function is to open the BD when the VI is loaded; however you would have to have an instance of it in every VI,
You could create a menu item that opens the BDs of all VIs in a project.
03-08-2024 08:37 AM
No, I do not mean that. What I mean is that many vis open in "run mode" and I have to change this option to be able to modify the vi.
Even though I save it as edit mode, if I close it and reopen it, many of the vis open in run mode and I have to change it every time I open it. I was wondering if there is a way to make all the vis that the project has always open by default in edit mode.
03-08-2024 09:37 AM - edited 03-08-2024 09:39 AM
A VI usually opens in run mode when it is set to reentrant and you double-click one of its clones on a diagram. I also find this quite painful when navigating the code (especially in FPGA where everything is reentrant by default).
The easy solution is to press ctrl+M to switch to edit mode each time you open a VI.
The not-so-easy solution is to create a right-click plugin to open the original VI directly.
Here is an example plugin that adds a "Diagram" option when you right-click a SubVI in the code. It only opens the original diagram, so no clone and no front panel.
Put both subfolders in "<user>\Documents\LabVIEW Data\PopupMenus", then restart your LabVIEW. It should work for versions >= 2016.
Also, there is an exception for malleable VIs, it opens the instance instead of the original.
Regards,
Raphaël.