Academic Company Events Community Support Solutions Products & Services Contact NI MyNI
25 ratings:
 4.63 out of 5   

Unable to Edit VI When Set to Run When Opened and Toolbar is Disabled.

Primary Software: LabVIEW Development Systems>>LabVIEW Full Development System
Primary Software Version: 2009 SP1
Primary Software Fixed Version: N/A
Secondary Software: N/A

I have saved a VI with the Run when opened option checked. I also have a stop button that calls the Quit LabVIEW function and my toolbar is hidden. How do I edit this VI?

If the ability to abort execution is removed from a VI and it is set to Run when opened, it may seem that there is no way to access the VI in edit mode if the program gets caught in an infinite loop or is using the Quit LabVIEW function. Fortunately there are several ways to gain access to the VI and turn off the Run when opened property to allow execution to be aborted.

  1. If you know one of the subVIs being called by the main VI, you can edit this VI so that it is not executable (i.e. has a broken arrow). The next time the main VI is opened, it will not be able to run and will default to edit mode.
  2. While the VI is running, close the VI window. This will usually bring up a dialog asking you to save changes. Selecting Cancel will stop the VI and restore it in an editable mode.
  3. Make your VI into a subVI by dragging its icon onto the block diagram of a new blank VI. Double-click on the subVI and it will open but not run, allowing you to edit it.
  4. Run the VI, then use VI Server Methods to programmatically abort the VI.  You can use the attached as a utility to do this.  Simply enter the path to the VI you want to edit and it will be opened, run, then aborted so you can edit it.
  5. You can use VI Server to programmatically turn off the Run when opened setting and save the VI. This is shown in the VI Snippet attached:
Turn Off Run When Opened

Related Links:
KnowledgeBase 2VQ7NVDF: Why Can't I Abort My LabVIEW VI?

Turn Off Run When OpenedTurn Off Run When

Report Date: 05/06/2002
Last Updated: 08/24/2017
Document ID: 2L5BR8RT

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit