Zou Posted August 17, 2017 Report 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
Rolf Kalbermatter Posted August 17, 2017 Report 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
Zou Posted August 17, 2017 Author Report 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
Norm Kirchner Posted August 21, 2017 Report 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
SebastienM Posted November 26, 2017 Report 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
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.