Discussion:
How to stop execution of vi with infinite loop
(too old to reply)
Zeke74
2003-12-03 15:46:31 UTC
Permalink
Hi,
I feel quiet stupid at the moment but I need some quick help. I wrote
a VI wich is caught in an infinite loop (and is still runnin' :) )
Because a dialog pops up (with a "OK"-Button) in this loop, I'm not
able to press the STOP execution Button in the ToolBar. Right now, I
got several modified VIs open and I can't terminate the application
using Task-Manager 'cause all changes will get lost.
Is there a keyboard shortcut or something like that to stop the
execution of my VI?

OS: Windows XP
Ver.: Labview 7

Thanks in advance
Zeke
Luca P.
2003-12-03 15:52:28 UTC
Permalink
Hi Zeke

Try to press the CTRL and "point" key at the same time! If it doesn't
work the first time, try several times.

Hope this helps

Luca
shoneill
2003-12-03 15:51:45 UTC
Permalink
<Ctrl>+<.> should do it.

You might have to press enter to close the dialog and then real quick
precc ctrl. , but after several attempts it usually works.

And next time, save more often. I know I don`t do it often enough
myself, but advice is cheap. Following it takes effort.

Good luck

Shane.
Zeke74
2003-12-03 16:02:49 UTC
Permalink
Well, at least there is another dialog right now visible. This dialog
wich pops up, displays the message "Quit will abort all running VIs"
and gives me the oportunity to press the Button "QUIT". But, there's
still the focus on the Dialog of the VI which is running and no matter
how fast I press the Quit-Button I can't get the VI to terminate :(
Zeke74
2003-12-03 16:15:14 UTC
Permalink
OK,
first of all thank you for Your help. Meanwhile I found a solution for
my plroblem and now I'm feeling more stupid than before.
Right-clicking the Labview Icon and chosing "close" terminated my VI
(and shot-down Labview) but left me the oportunity to save my
modifications!
Thank you again and I hope that I will remember your advuce to save
more often in the future...
Zeke
Zeke74
2003-12-03 16:17:39 UTC
Permalink
btw: I'm new to the Labview-Forum. So, what do I have to do usualy to
grand your answers?
Ben
2003-12-04 13:38:25 UTC
Permalink
Just clcik on one of the set of "stars" at the bottom of the question.

Usually more stars for the better answers. You go back and change a
rating any time you want.

Ben

Jean-Pierre Drolet
2003-12-03 18:02:28 UTC
Permalink
A useful tool to get out of this situation is to make a VI that gets
the list of all VIs in memory and performs an Abort with VI Server.
Set the VI to run when opened.

Put this VI (or a shortcut) on your desktop. When a locked situation
occurs, double-click on this VI to start it from Desktop and abort all
running VIs.
Loading...