LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Active X control errors

I am trying to use an Active X control from Ophir to talk to a laser power meter. The control seems to be registered properly since I can see all the methods correctly in the invoke node. The file is an .ocx file, so it's not a server.

It has been tested under Visual Basic 6.0 and Visual C++ 6.0 and "can be used in any environment that allows interaction with COM automation servers."

At first I tried running it using 'Automation Open' to get a refnum, but this kept resulting in error -2147418113 (Catastrophic error). After searching on this in the NI forum and reading about ActiveX servers vs. controls, I tried using just the Active X container (OphirUsbXLib.UsbX in this case) wired directly to the invoke node. However this results in Error 97 "Null refnum". I've tried rebooting, re-registering, etc with no luck.

Any suggestions for getting around this would be appreciated!
0 Kudos
Message 1 of 4
(2,886 Views)
Forget I said anything...just figured out I wasn't putting the reference in a container. Doh!

It's working now.
0 Kudos
Message 2 of 4
(2,881 Views)
Hi, I'm trying to use the OphirUSBXLib.UsbX too.. I get those same errors, but i don't understand what you did to fix them?
0 Kudos
Message 3 of 4
(2,706 Views)

Under the front panel controls, there is a subpallette called 'Containers'. Inside this, choose an 'ActiveX Container'. Right-click on this and chooose 'Insert ActiveX object', then browse the list to find the OphirUSB.dll

Hope this helps.

 

Regards,

 

Tom

 

0 Kudos
Message 4 of 4
(2,673 Views)