LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI program using COM Method (agilentpnapulsed.dll)

Hello,
I need to send/receive values to the "agilentpnapulsed.dll" remotely with a CVI program. Any example available? or explanation about how to do that? I need to write a Narrowband Pulsed application (to control remotely a PNA Network Analyzer).
The problems comes becasuse I don't know how to use the COM Methods?
Help please!
 
Thanks!
Peli
0 Kudos
Message 1 of 2
(2,962 Views)
Hi Peli,

I'm not familiar with that specific COM server but I can tell you in general what steps you need to take to use that server in CVI. 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 agilent 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.

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 2
(2,910 Views)