LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

kill process vi

Hi,

Sorry 'bout that... I hope it is still in time to make your weekend a bit
nicer...

Regards,

Wiebe.

"Dermot1000" wrote in message
news:50650000000500000095D50100-1079395200000@exchange.ni.com...
> Thank you for the reply, but I can't open the vi because I only have
> LabVIEW 6.0. Can you save the VI for 6.0 and repost it?
> Greetings Dermot



[Attachment Close Process.vi, see below]
0 Kudos
Message 11 of 16
(3,861 Views)
Great, it works!
many thanks,
now I will have a relaxed weekend 🙂
0 Kudos
Message 12 of 16
(3,861 Views)
When I tried to open first close_Process.vi LV 8.0 hangs..
 
Screen shot attached..I tried multiple times and waited more than 2 minutes everytime..
 
I also noticed that I can not operator other programs when this happens..

Message Edited by Sheetal on 08-03-2006 04:25 PM

Message Edited by Sheetal on 08-03-2006 04:27 PM

Thanks.
CVI 2010
LabVIEW 2011 SP1
Vision Builder AI 2011 SP1
0 Kudos
Message 13 of 16
(3,805 Views)

To Wiebe:

   Thank you for providing a very useful vi. I found this vi may not work if the process name is long. Am I right or....

 

  

0 Kudos
Message 14 of 16
(3,540 Views)
Hi,

Glad you like it.

I stumbled apon this message by accident, my outlook removed the original
thread, and with it the watch I put on it... So it took a while for me to
respond.

I took a short cut when I made the VI... GetModuleFileNameExA takes a string
buffer, and this buffer might be to small. To do it really nice, I should
probably call it twice, once with a null pointer to get the string length,
once with a string of proper length.

A quick fix it to make the string constant (01234...) 10 times larger.
Dubble click on it, press CTRL-C and then 10 times CTRL-V.

Regards,

Wiebe.


0 Kudos
Message 15 of 16
(3,506 Views)
if you have .net installed... there is an easier way!  I created a kill outlook because if I forget to close it when I leave work... It downloads my work mail, and I can not get to it via webaccess.  So Attached.  Additionally for Weibe's example... my install directory is windows and not winnt.  So moving this to other machines could be a problem in a programmatic environment.  Actually I believe that you can just use the DLL name and let window find it.

Paul
Message 16 of 16
(3,502 Views)