LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to run an exe as a window inside a VI

Sure thing. The issue here is that I am wokring with the LabVIEW part while another colleague is working on building the Java part of the program and he said that he has programmed it for .NET access. So, assuming this to be true, can you tell me how to go about it?

 

Thanks a lot Mike.

0 Kudos
Message 11 of 39
(8,974 Views)
There are examples that ship with LabVIEW, but the process is basically the same regardless of language. You have a constructor node that creates an instance of the object and then you manipulate it with invoke nodes and property nodes.

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 12 of 39
(8,969 Views)

Thanks Mike. I'll look into it.

 

Bharat

0 Kudos
Message 13 of 39
(8,959 Views)

By the way it is very possible to embedd a window of another application, LabVIEW or not into the front panel of a LabVIEW VI.  Its just a pain, ugly, and doesn't give you any features over just having a separate floating window.  In Windows a window can be a child to a parent window.  By default a window is a child to the desktop, meaning it can move around your whole monitor.  But you can set a window to be a child to another window, which makes for some interesting looking UIs, because a window will be in a window and can't leave.  You can do things like remove a title bar, menu bar, and disallow resizing on the child window and you get the appearance that the window is part of the existing application.

Message 14 of 39
(8,952 Views)
Do you have an example showing this? Sounds good.

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 15 of 39
(8,930 Views)

@mikeporter wrote:
Do you have an example showing this? Sounds good.

Sure thing.  Attached is a zip that I think contains everything needed other than OpenG. 

 

The code is a little rough.  I did this demo in my free time when I learned about parent child window stuff.  In case you don't feel like downloading and running it, here is a video of it in action.

 

http://screencast.com/t/LjlkYzTWKr8J

 

I eventually took some of this information and turned it into the Multi Panel Interface as demo'd on LAVA.