LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Change all project to edit mode

Solved!
Go to solution
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".
0 Kudos
Message 1 of 5
(735 Views)

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?

0 Kudos
Message 2 of 5
(690 Views)

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.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 3 of 5
(677 Views)

Alejandro1123_0-1709908290814.png

Alejandro1123_1-1709908319192.png

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.

0 Kudos
Message 4 of 5
(668 Views)
Solution
Accepted by topic author Alejandro1123

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.

Message 5 of 5
(648 Views)