ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

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 45
(7,200 Views)
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..."

For help with grief and grieving.
0 Kudos
Message 2 of 45
(7,170 Views)

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 45
(7,165 Views)
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..."

For help with grief and grieving.
0 Kudos
Message 4 of 45
(7,149 Views)

No. That was created using Java.

0 Kudos
Message 5 of 45
(7,146 Views)
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..."

For help with grief and grieving.
0 Kudos
Message 6 of 45
(7,143 Views)

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

0 Kudos
Message 7 of 45
(7,141 Views)
Yes that would be a possibility.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 8 of 45
(7,136 Views)

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 45
(7,133 Views)
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..."

For help with grief and grieving.
0 Kudos
Message 10 of 45
(7,119 Views)