04-11-2012 08:36 AM
I currently have a labview exe that contains a System Exec.vi call to LVCompare.exe which is working great. The problem I'm having is the "wait until completion" input on the System Exec.vi doesn't seem to do anything. LVCompare will open the "differences" window along with the two VIs I'm comparing then my labview application will continue on. How do I make it pause until LVCompare is closed?
I have been trying to open an application reference to LVCompare so that I can monitor all VIs in memory to detect when they are closed but I haven't been able to figure out what inputs to feed to the "open application reference.vi" to be able to see the "differences" window or the comparing VIs. How do I figure out what the "port or service name" for LVCompare.exe is when it is called through the system exec?
I have also tried feeding the below batch file into System Exec.vi without any luck. It too continues on without pausing in the batch file.
start "" /wait "C:\Program Files\National Instruments\Shared\LabVIEW Compare\LVCompare.exe" %file1% %file2% -lvpath "C:\Program Files\National Instruments\LabVIEW 2010\LabVIEW.exe"
Thanks,
Jason
04-12-2012 03:18 AM
You can poll the task manager and look for lvcompare.exe, i guess. I used that approach in the other way in a splash screen attempt.
/Y
04-12-2012 07:55 AM
I have tried this too. LVCompare.exe only shows up in the tasklist briefly then disappears. Why is this?
04-12-2012 09:02 AM
That sounds like the in parameters are erronous and the program shuts down directly.
What happens if you run your command from a prompt?
/Y
04-12-2012 12:47 PM
I don't believe that is the problem. Once LVCompare.exe opens the "Differences" window and the two VIs to compare it seems to leave memory and stop showing up in the task list. How do i get a reference to this "Differences" window to see when it is closed?