LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to tell when LVCompare.exe is closed

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

0 Kudos
Message 1 of 5
(2,590 Views)

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 

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 2 of 5
(2,575 Views)

I have tried this too.  LVCompare.exe only shows up in the tasklist briefly then disappears.  Why is this?

0 Kudos
Message 3 of 5
(2,567 Views)

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 

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 4 of 5
(2,563 Views)

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?

 

0 Kudos
Message 5 of 5
(2,556 Views)