Zou Posted August 17, 2017 Report Share Posted August 17, 2017 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? Quote Link to comment
Rolf Kalbermatter Posted August 17, 2017 Report Share Posted August 17, 2017 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. Quote Link to comment
Zou Posted August 17, 2017 Author Report Share Posted August 17, 2017 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. Quote Link to comment
Norm Kirchner Posted August 21, 2017 Report Share Posted August 21, 2017 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 1 Quote Link to comment
SebastienM Posted November 26, 2017 Report Share Posted November 26, 2017 Hi, You can see this as a very simple solution: http://www.notatamelion.com/2015/05/25/using-vi-server-to-interact-with-executables/ 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.