LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Process Communications

I have a LabWindows/CVI application (executable) that must launch a second executable via the "LaunchExecutableEx" library function.  When the second executable terminates, it must return an integer value to the first executable.  Other than the horrid solution of using a disk file, how can this be done?

 

Maybe by using a shared DLL?

 

Thanks.

0 Kudos
Message 1 of 3
(3,327 Views)

Check out the sample code at ...CVI70\samples\sdk\sharemem. I have successfully used dlls based on this approach quite a few times now, to achieve the same objectives that you need.

 

JR

0 Kudos
Message 2 of 3
(3,306 Views)

as specified in the documentation:

"If you want to wait for the program to exit, use the system function in the ANSI C Library."

 

since your first executable is a CVI program, i assume that it is made of a user interface that you would want to be responsive while the second software is executing. then, create a new thread, in which you use the system() function call, store the result, you are done...

0 Kudos
Message 3 of 3
(3,304 Views)