LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Using COM components in LabWindows

Hello,

I got a set of COM components to control a monochromator + CCD camera (both from Horiba Jobin Yvon).
I want to develop an application in LabWindows 8.5 to drive the two devices.

Unfortunately I never programmed anything based on COM components, and I do not know in which direction I should start.

Could anybody provide me with references/help me on this subject?

I can provide any other information you may need should my description be too sparse...

Thank for your help!

Mathieu
0 Kudos
Message 1 of 3
(3,185 Views)
Hi Mathieu,

The best and easiest method to use a COM server in CVI is to use the ActiveX Controller Wizard to generate a CVI wrapper around this server.  Once you have registered the COM server, you can select Tools >> Create ActiveX Controller and then choose the specific COM server.  Then you will walk through several dialogs and eventually, CVI will create C wrappers that expose properties and methods in a C fashion for you. Refer to the Using the ActiveX Controller Wizard to Generate Code in LabWindows/CVI KB for more information. Also check out the ActiveX Library Function Overview help topic. Additionally, depending upon your background, you might find the LabWindows/CVI ActiveX Controller For Visual Basic 6.0 Users
tutorial useful.

Also check out the <CVI>\samples\activex directory for a variety of ActiveX examples.

Hope this helps!

Best Regards,
Jonathan N.
National Instruments
0 Kudos
Message 2 of 3
(3,180 Views)
Ok, thank you!
I am currently reading through it, and it looks like this will answer most of my questions!
Best regards!
Mathieu
0 Kudos
Message 3 of 3
(3,151 Views)