|
Prev: What server PC is recommende for Labview server?
Next: Application Builder: error in building DLL from a VI
From: Derek Price on 7 May 2008 11:40 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&message.id=66917&query.id=77559" target="_blank">http://forums.ni.com/ni/board/message?board.id=170&message.id=66917&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&message.id=66917&query.id=77559#M66917" target="_blank">http://forums.ni.com/ni/board/message?board.id=170&message.id=66917&query.id=77559#M66917</a> I tried this, but it didn't seem to work. I've attached my VI with a screenshot of the code (very simple). 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 7 May 2008 11:40 I think the problem is that your application property node is a direct reference to a specific application, not localhost at port 3363. Also, you're using All VIs, not Exported VIs.
From: MikeS81 on 7 May 2008 12:10 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 7 May 2008 12:10 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 7 May 2008 14:10 I didn't even think of that! Well, I removed my VI from the list and it still doesn't abort any running VIs. I get these errors:Error 1035 occurred at Invoke Node in Abort All Running VIs mod.viPossible reason(s):LabVIEW: 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? :)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
|
Next
|
Last
Pages: 1 2 Prev: What server PC is recommende for Labview server? Next: Application Builder: error in building DLL from a VI |