Jump to content

See an exe front panel in another exe front panel


Recommended Posts

Hi to all,

 

I'm able to see a SubVI front panel in a Main front panel using a SubVI object and inserting it into the object.

I have been wondering if I can do the same launching an executable file and looking its user interface inside a main executable, both built using the LabView application builder. Have you ever done a work like this? Have you an idea to advise me, that can help me?

 

Thank you all

Link to comment

Never done that but if I had to try, I would likely start by enabling the ActiveX server in the Build properties of the EXE you want to be able to load inside the other.  This assumes that you are in the Windows environment though. 

 

Good luck and let us know if you succeed.  That could definitely be useful one day.

Link to comment

Some potential options:

  1. Open a reference to the remote app and to the VI and insert that into a subpanel. I'm pretty sure this won't work, but it's certainly worth a try.
  2. Use remote front panels. Haven't done that in a very long time either.
  3. Use a copy of the VI and bind the controls and indicators to shared variables.
  4. Use the Windows API parenting functions mentioned here, like SetParent. They're fairly easy to use and there are even VIs which use them online (although you should note you can have one copy of the window at a time and there are potential weird artifacts which can happen).
  5. Implement a VNC server. I'm not sure how much work that is to implement. Maybe that's what the ancient LabVNC does.
Link to comment

The SubPanel class also has a private method called Insert Remote VI which takes an address, port and VI name and presumably uses VI server, but it has no documentation and I didn't even notice it until now, so I have no idea if it works, and it certainly won't be supported even if it does.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.