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.
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.
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.