How to close the command prompt when using LABVIEW?

Status
Not open for further replies.

kingmakerbull

Junior Member level 1
Joined
Apr 19, 2007
Messages
15
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,281
Activity points
1,412
Hi,

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

Thanks
 

pid problem labview

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.
 

labview how do i get process id external program

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/kb...sklistPUlistlistsactivetasksandprocesses.html and http://www.computerhope.com/taskkill.htm explains the output.

..
 

Re: LABVIEW problem

anybody does have a ecg program with labview?
tanx
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…