LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to stop execution of vi with infinite loop

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
0 Kudos
Message 1 of 9
(9,872 Views)
+<.> 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.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
0 Kudos
Message 2 of 9
(9,870 Views)
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
Regards,
Luca
0 Kudos
Message 3 of 9
(9,870 Views)
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 😞
0 Kudos
Message 4 of 9
(9,870 Views)
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
0 Kudos
Message 5 of 9
(9,870 Views)
btw: I'm new to the Labview-Forum. So, what do I have to do usualy to grand your answers?
0 Kudos
Message 6 of 9
(9,870 Views)
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.


LabVIEW, C'est LabVIEW

Message 7 of 9
(9,870 Views)
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
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 8 of 9
(9,870 Views)
Hi All,

It seems I am stuck in the same situation, yet none of the suggestions made in this section works. I tried,

CTRL and .
CTRL and M

It just does not want to come out of the dialog box. Whish I could same the work.

Any other suggestions ?

Regards,

Roger
0 Kudos
Message 9 of 9
(9,846 Views)