LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Passing numeric control reference to a DLL

Hi,
I have create a DLL in VC++ 6.0. I would like to know if it's possible to pass numeric control reference to this DLL, e.g., to update LV 6i control in VI from the DLL ? In other words, can a DLL updates values in a LV control and how ?
Thanks.
0 Kudos
Message 1 of 3
(2,852 Views)
If you want to operate LabVIEW from another language, the tool is the ActiveX VI Server. Unfortunately (as for LV6.0) controls properties and methods are not exposed to the ActiveX interface. However, you can read and write control values using the GetControlValue and SetControl value methods. Open a connection to labview.application, invoke the GetVIReference to the VI and invoke the Get/SetControlValue method with the control name.


LabVIEW, C'est LabVIEW

0 Kudos
Message 2 of 3
(2,852 Views)
You can only pass the value of a control to a DLL. The DLL can then change this value and pass it back out to LabVIEW. The VI code would then need update the control value. There isn't a way to directly modify a control inside a DLL.

Chris_Mitchell
Product Development Engineer
Certified LabVIEW Architect

0 Kudos
Message 3 of 3
(2,852 Views)