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 26
(1,530 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..."
0 Kudos
Message 2 of 26
(1,500 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 26
(1,495 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..."
0 Kudos
Message 4 of 26
(1,479 Views)

No. That was created using Java.

0 Kudos
Message 5 of 26
(1,476 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..."
0 Kudos
Message 6 of 26
(1,473 Views)

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

0 Kudos
Message 7 of 26
(1,471 Views)
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,466 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 26
(1,463 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..."
0 Kudos
Message 10 of 26
(1,449 Views)