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 39
(5,643 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 39
(5,613 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 39
(5,608 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 39
(5,592 Views)

No. That was created using Java.

0 Kudos
Message 5 of 39
(5,589 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 39
(5,586 Views)

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

0 Kudos
Message 7 of 39
(5,584 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 39
(5,579 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 39
(5,576 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 39
(5,562 Views)