LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Access labview controls from external application

Hi! There's an application written in LabView that shows dialog messages with buttons and textboxes. I'm writing a C# application that automatically fills these textboxes and clicks on buttons. I'm using user32.dll functions to find windows and controls, but at Labview's windows I cannot see any controls inside(with spy++ and ui spy). Is there a way to access these controls using other DLL files or sending special messages to the main window?

 

Tnahks for your help!

0 Kudos
Message 1 of 3
(3,119 Views)

@taj1989 wrote:

Hi! There's an application written in LabView that shows dialog messages with buttons and textboxes. I'm writing a C# application that automatically fills these textboxes and clicks on buttons. I'm using user32.dll functions to find windows and controls, but at Labview's windows I cannot see any controls inside(with spy++ and ui spy). Is there a way to access these controls using other DLL files or sending special messages to the main window?

 

Tnahks for your help!


LabVIEW does not use Windows controls in its frontpanel, as that would not be portable to non-Windows platforms. So there is no way to do classical Windows handles peek and friends. But LabVIEW allows to control a subset of its VI Server interface through ActiveX.

 

The application needs to be build with that in mind, and there need to be some settings in the INI file to configure this functionality. Then you can connect to the LabVIEW ActiveX Server and control VIs and also controls to some extend.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 2 of 3
(3,105 Views)

Functionality provided by LabVIEW as an ActiveX Server 

 

Activating LabVIEW as an ActiveX Server

 

 

Christian

 

0 Kudos
Message 3 of 3
(3,093 Views)