LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Interrupt Key Sequence? Is there one?

Hey everyone... a quick question.
 
Sometimes I'll forget to leave the 'abort' button in the menu bar and then I write a bit of code that hangs up somewhere and can't stop it.  So I have to kill labview to get out. 
 
Is there a key sequence (like 'open-apple . ' for anyone who ever used hypercard on macs) which will interrupt the program?
 
thanks,
jonathan
0 Kudos
Message 1 of 6
(3,111 Views)

Try CTRL+.

Thats the shortcut for abort.

David

 

Message 2 of 6
(3,106 Views)
Yeah, I've tried that... it doesn't work if the program's held up on a timeout.
0 Kudos
Message 3 of 6
(3,103 Views)
I think the shortcut does not work if the Abort button has been removed from the toolbar. Someone posted a Kill Running VI.vi (I do not recall the exact name) a while back. Search the archives to see if you can find it. I think it gets a reference to the running VI and then uses an Invoke Node or somethng to stop it.

Lynn
0 Kudos
Message 4 of 6
(3,096 Views)
Hi,


I alway use a vi that runs on start up. I usually call it "Stop All.vi". This vi gets all vi's in memory (application property node), and then in a for loop opens references to each vi and aborts (vi method) it. If LabVIEW hangs up, I open this vi from windows explorer (or desktop, or recently opened) and all vi's are aborted.


When you aborting all vi's in memory, don't forget to check if the name equals "Stop All.vi", or "Stop All.vi" itself will be aborted!


If you didn't make such a vi at front, you can use task manager to stop LabVIEW (but don't press "end now"!). Then LabVIEW will prompt with a dialog. If you cancel the shut down, you'll still get a change to save all modified vi's.


Regards,


Wiebe.
"IEC" <x@no.email> wrote in message news:1153408213902-394021@exchange.ni.com...
Hey everyone... a quick question.
&nbsp;
Sometimes I'll forget to leave the 'abort' button in the menu bar and then I write a bit of code that hangs up somewhere and can't stop it.&nbsp; So I have to kill labview to get out.&nbsp;
&nbsp;
Is there a key sequence (like&nbsp;'open-apple . '&nbsp;for anyone who ever used hypercard on macs) which will interrupt the program?
&nbsp;
thanks,
jonathan
0 Kudos
Message 6 of 6
(3,077 Views)