LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I set a vi to "run when opened", but now I want to edit it...

My stupid fault, these things always are, but someone might know if there is a solution to this silly problem of mine:

I set a vi to "run when opened", so that for the compiled version (.exe) it would run automatically. Which it does. I also set Debugging to off, and at the end of the .vi there is a QUIT function to exit the program.

But now I need to make a small change. Unfortunately, opening the .vi, as you might expect, causes it to run, and it can't be interrupted because the tools panel is off, and running the vi through to the end executes the QUIT routine and hence it closes everything.

So I can't get to the diagram to edit it. I don't have any backup, nor do I want to re-write the thing (took a long time). So, can anyone help me, I'm feeling very embarrassed.

Riggy.
Message 1 of 4
(3,929 Views)
Simple. Open a new VI and insert the VI on the block diagram. Double click it an it will open in edit mode without running. In the future, what you might want to do is add a property node App.Kind and use the result to determine whether you should exit (if App.Kind=Run Time System) or just stop.
Message 2 of 4
(3,926 Views)
Here's another way to do it.

Create a directory in your LabVIEW x.x directory named 'wizard', and save the attached VI there. If LabVIEW is running, you'll need to restart it, but then in the 'File' menu, you'll have a new selection named "Supress Run on Open...". Select this and you'll get a browse dialog to select the VI to open. It opens it by reference so it will not run.

This is saved in LabVIEW 6.1, but works fine on 7.0 and 7.1.

Ed


Ed Dickens - Certified LabVIEW Architect
Lockheed Martin Space
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
Message 3 of 4
(3,920 Views)
Fanstastic, thank you.
I never think of the easy solutions 😉

Riggy
0 Kudos
Message 4 of 4
(3,908 Views)