Rules | Recent posts | topic RSS | Search | Register  | Log in

LABVIEW problem

 
Post new topic  Reply to topic    EDAboard.com Forum Index -> PC Programming and Interfacing
Author Message
kingmakerbull



Joined: 19 Apr 2007
Posts: 13
Helped: 1


Post21 Apr 2008 10:48   LABVIEW problem

Hi,

Can anyone tell me how to close the command prompt using LABVIEW

Thanks
Back to top
soundar



Joined: 26 Sep 2003
Posts: 109
Helped: 11
Location: Chennai, India


Post11 May 2008 18:20   LABVIEW problem

Hi,
Use the tasklist.exe to get the PID of cmd.exe. Then kill the PID using taskkill.exe. These two you need to run from the systemexec function available from LabVIEW.
Back to top
ranggaperdana_06114



Joined: 12 May 2008
Posts: 5


Post14 May 2008 2:14   LABVIEW problem

can explain more detail ?
tanx
Back to top
soundar



Joined: 26 Sep 2003
Posts: 109
Helped: 11
Location: Chennai, India


Post23 Jun 2008 5:37   LABVIEW problem

Generally if you are running command prompt from VI, you can configure to close it once the task is finished. If it is an external program, call the tasklist.exe from another command prompt using System Exec.vi. It will list the running process in spread sheet format. Search for cmd.exe and get the PID (Process ID) for the cmd.exe. Then once the PID is known, use the taskkill.exe and pass both exe name and PID name to kill the running process. http://www.windowsnetworking.com/kbase/WindowsTips/WindowsXP/AdminTips/Utilities/TlisttasklistPUlistlistsactivetasksandprocesses.html and http://www.computerhope.com/taskkill.htm explains the output.

..
Back to top
Post new topic  Reply to topic    EDAboard.com Forum Index -> PC Programming and Interfacing
Page 1 of 1 All times are GMT + 2 Hours


Abuse
Administrator
Moderators
topic RSS 
sitemap