LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

.NET Controller and ActiveX

I have an ActiveX (.ocx) control that I would like to use in my LabWindows application.  However, the ActiveX control is not automation compatible.  I was able to generate a .NET Controller to gain access to the functions of the control.  Am I able to use the ActiveX Control using the .NET controller?  I never tried doing it this way since I usually just created an ActiveX Controller.

0 Kudos
Message 1 of 4
(2,846 Views)

SoftEngr,

 

I don't know why you wouldn't be able to to communicate to the .net controller, which then talks to the activeX control. If you can get this working, please post up your code (if you can). It would be a great example to have on the community.

 

You can import .net libraries as described in the CVI help here:

http://zone.ni.com/reference/en-XX/help/370051P-01/cvi/libref/cvidotnet_overview/

 

Regards,

 

Kyle Mozdzyn

Applications Engineering

National Instruments

Regards,

Kyle M.
Applications Engineering
National Instruments
0 Kudos
Message 2 of 4
(2,835 Views)

Kyle M,


Thank you for the link to the CVI help using the .net library.  Unfortunately I had to change my approach because currently LabWindows does not support .NET for 64-bit applications. As an alternative, I used the ActiveX Controller Wizard in LabWindows to generate c-wrappers for the .ocx file.

0 Kudos
Message 3 of 4
(2,822 Views)

Softengr, 

 

Glad to hear you found a workaround for this issue. 

 

Regards,

 

Kyle Mozdzyn

Applications Engineering

National Instruments

Regards,

Kyle M.
Applications Engineering
National Instruments
0 Kudos
Message 4 of 4
(2,814 Views)