From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
04-09-2015 11:39 AM
Hello Experts,
I have a LabVIEW GUI executable file and need to access "control" or buttons on it via another programming lanuguage (Visual Basic .NET) say if the user presses a "EXIT" button on the VB.NET GUI, it goes and clicks the "EXIT" button on the LabVIEW GUI. Is this possible to do using LabVIEW built DLL's ? If not, could you please guide me to the right apprach ?
Thank you very much for your time !
04-09-2015 04:17 PM
04-09-2015 04:34 PM
Hello Dennis_Knutson, Thanks for the reply !
The main code of the .h file has the following line:
void __cdecl BurnProgramMain(void); //BurnProgramMain is the LabVIEW VI
Should the parameters be listed instead of "void" inside the bracket ?
04-09-2015 05:43 PM
04-09-2015 05:47 PM
No, our vendor provides us only with the executable file since they do not want to share their source code. They created a DLL for us only upon our request.
04-09-2015 05:54 PM
04-09-2015 06:04 PM
Yes, the front panel comes up after my calling but I am not able to access any "controls" or buttons on it. However, if now (after calling) I manually click on this front panel, it works but I want my VB.NET code to be able to do that.
Our vendor owns the source code and they only provide the executable file to be able to communicate to their mechanical system. We, as a OEM, integrate their mechanical system into our system and provide our end customers with the VB code that controls the entire system.
04-09-2015 06:13 PM
04-09-2015 06:19 PM
Hello Dennis_Knutson, I am not sure if they enabled the ActiveX. I read that approach too and figured I will need their VI file - isn't this true ? Does the ActiveX approach work on the exe file ?
04-09-2015 06:24 PM