From: Derek Price on
I ran into a probably where I had an infinite loop with a dialog click OK and was unable to stop the program. I found this post that noted you could press ctrl+. and hope it would work:<a href="%20http://forums.ni.com/ni/board/message?board.id=170&amp;message.id=66917&amp;query.id=77559" target="_blank">http://forums.ni.com/ni/board/message?board.id=170&amp;message.id=66917&amp;query.id=77559</a> One of the users specified that you could create a VI using VI server to abort all running VIs:<a href="http://forums.ni.com/ni/board/message?board.id=170&amp;message.id=66917&amp;query.id=77559#M66917" target="_blank">http://forums.ni.com/ni/board/message?board.id=170&amp;message.id=66917&amp;query.id=77559#M66917</a> I tried this, but it didn't seem to work.&nbsp; I've attached my VI with a screenshot of the code (very simple).&nbsp; What am I missing?<img src="http://forums.ni.com/attachments/ni/170/321780/2/Abort_All_Running_VIs1.png"> ThanksMessage Edited by Derek Price on 05-07-2008 11:36 AMMessage Edited by Derek Price on 05-07-2008 11:37 AM


Abort All Running VIs1.vi:
http://forums.ni.com/attachments/ni/170/321780/1/Abort All Running VIs1.vi


Abort_All_Running_VIs1.png:
http://forums.ni.com/attachments/ni/170/321780/2/Abort_All_Running_VIs1.png
From: JeffOverton on
I think the problem is that your application property node is a direct reference to a specific application, not localhost at port 3363.&nbsp; Also, you're using All VIs, not Exported VIs.
From: MikeS81 on
Hi Derek,
i think the problem is that your vi is the first in the array and so it is the first that will be aborted. :smileyhappy:
Mike
From: smercurio_fc on
You need to exclude your "abort VI" from the list. Otherwise you're stopping yourself.EDIT: Already answered by Mike while I was composing and posting. I sometimes wish these forums were psychic and would tell me not to bother. :smileyvery-happy:Message Edited by smercurio_fc on 05-07-2008 10:45 AM
From: Derek Price on
I didn't even think of that!&nbsp; Well, I removed my VI from the list and it still doesn't abort any running VIs.&nbsp; I get these errors:Error 1035 occurred at Invoke Node in Abort All Running VIs mod.viPossible reason(s):LabVIEW:&nbsp; Operation is invalid for this type of VI.Method Name: Abort VIHere's the updated VI (using OpenG VI to remove from the VI list array:<img src="http://forums.ni.com/attachments/ni/170/321876/1/Abort_All_Running_VIs_mod.png"> So what am I missing now?&nbsp; :)Message Edited by Derek Price on 05-07-2008 01:58 PM


Abort_All_Running_VIs_mod.png:
http://forums.ni.com/attachments/ni/170/321876/1/Abort_All_Running_VIs_mod.png


Abort All Running VIs mod.vi:
http://forums.ni.com/attachments/ni/170/321876/2/Abort All Running VIs mod.vi