LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I abort a running VI if I have no menus

I was working in a VI, and learning the way some properties work.
I disabled the menus and run my VI, which is working in an unbreakable While. My VI has also enabled the function to run when it is opened.
 
The problem is that now I can´t stop it to work and edit it.
 
I hope you can help me.
Thanks
Adrian Jmz
 
0 Kudos
Message 1 of 8
(4,059 Views)
If you can find a place where this VI is used on a block diagram, find it and double-click on it while holding down the CTRL key. This will force the block diagram open which will hopefully have the abort button visible. Of course this won't work if the VI is set to be a modal dialog box - then you're pretty much hosed. In that case your only hope is the task manager.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 2 of 8
(4,047 Views)
Thanks, I´m very gratefull to you.
 
When I opened my VI by double clic, I can not abort it, but then I can modify the properties
Adrian Jmz
0 Kudos
Message 3 of 8
(4,043 Views)
If your vi uses a sub-vi, open that and "break it" (causing a broken run arrow). You can do this in a number of ways, one of the easiest is cutting a wire without deleting all of it. This will then allow you to open the calling vi without it running. Of course, it only works if it has a sub-vi.


Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



Message 4 of 8
(4,034 Views)


@akuma1984 wrote:
I was working in a VI, and learning the way some properties work.

Good! Now you learned something! 🙂

If a VI is set to run when opened, there are two ways to open it in edit mode later (Just kill the existing instance of LabVIEW using the task manager first).

  1. Open a new, blank VI and insert the problem VI as subVI into the diagram. Now double-click it from the diagram to open the subVI in edit mode.
  2. Create a LabVIEW project and add your VI. If you open a VI from the project window, it will always open in edit mode.

See also http://forums.ni.com/ni/board/message?board.id=170&message.id=255473 for some other techniques.

Message 5 of 8
(4,031 Views)
I didn't know that (#2)! I'll add it to my "toolbox"!

The project suggestion applies to LabVIEW 8 and later, as that is when "projects" were added.



Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 6 of 8
(4,027 Views)
Hi,
 
There is a shortcut for quitting a running VI.  Press and hold Ctrl  key  and  press the  Period "." key.  That should stop your VI and leave it in the Edit mode.
 
 
Have a nice day!
 
 
Pablo Bernal
AE Mexico
0 Kudos
Message 7 of 8
(3,983 Views)
The shortcut only works under conditions where you don't really need it. 😉
 
"ctrl+." will NOT abort a running VI....
  1. If the "window appearance" is set to hide the abort button. (it will work if you hide the entire toolbar, but not specifically the abort button)
  2. If you define a custom menu with the "stop" entry missing.
  3. ...
 
0 Kudos
Message 8 of 8
(3,949 Views)