cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

How to run an exe as a window inside a VI

How to run an exe as a window inside a VI

I have a VI that needs to runf an exe file i.e. the exe file should be running inside the VI and not execute as a separate window. Please suggest the best way to proceed.

 

Thanks

 

Bharat

0 Kudos
Message 1 of 26
(1,241 Views)

Re: How to run an exe as a window inside a VI

If the other code is in a separate compiled executable, you can't. Your best option is to grab the data from the executable using VI Server and display it in your new program.

What exactly is it that you want to do?

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."
0 Kudos
Message 2 of 26
(1,211 Views)

Re: How to run an exe as a window inside a VI

Basically, I have an exe file that is being sent from a microcontroller to the computer and I need to execute it in the LabVIEW VI in a small frame.

0 Kudos
Message 3 of 26
(1,206 Views)

Re: How to run an exe as a window inside a VI

Was the other exe created in LabVIEW as well?

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."
0 Kudos
Message 4 of 26
(1,190 Views)

Re: How to run an exe as a window inside a VI

No. That was created using Java.

0 Kudos
Message 5 of 26
(1,187 Views)

Re: How to run an exe as a window inside a VI

In that case you are pretty much stuck. Does this java program provide any way of accessing it externally? ActveX, .net anything?

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."
0 Kudos
Message 6 of 26
(1,184 Views)

Re: How to run an exe as a window inside a VI

.NET maybe but not ActiveX. Is it possible to use the .NET container to use the exe?

0 Kudos
Message 7 of 26
(1,182 Views)

Re: How to run an exe as a window inside a VI

Yes that would be a possibility.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."
0 Kudos
Message 8 of 26
(1,177 Views)

Re: How to run an exe as a window inside a VI

Any suggestions as to how I can go about that? What kind of control should I select in the .NET container?

0 Kudos
Message 9 of 26
(1,174 Views)

Re: How to run an exe as a window inside a VI

Well before you can do anything the java exe needs to be written such that it supports .net access.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."
0 Kudos
Message 10 of 26
(1,160 Views)