Jump to content
Zou

Control LabVIEW exe via ActiveX

Recommended Posts

I can get VI refnum and set/get control values, but I can't find any method to trigger a button click event or any value change even.

Anyone did this before?

 

Share this post


Link to post
Share on other sites

As far as I know, the ActiveX server interface in LabVIEW dates back to LabVIEW 6.0 or something and that is in fact before such features were available through VI server. It seems there was very little changed on the ActiceX server interface since, while the entire VI server itself received a huge workout with many new features including the whole scripting API.

The most simple solution might be to create a VI library that provides the necessary functionality through use of VI server and build a DLL from it.

Share this post


Link to post
Share on other sites

Thanks for the quick response.

The exe uses a 3rd party HW and SDK.

The SDK, once called, left something in the memory.  I can't get rid of it.  And I can't run it the 2nd times until restart LabVIEW.  So I've to put it in a separate process.

 

Share this post


Link to post
Share on other sites

You might want to investigate REx - Remote Export Framework for LV built EXE

https://lavag.org/topic/17024-rex-remote-export-framework-and-remote-events/

Although it can't give you a direct button click, it does the next best (possibly better) thing, giving you the ability to call a method externally that fires a LV event internal to the EXE.

Good luck,

~,~ The Captain

  • Like 1

Share this post


Link to post
Share on other sites

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.