LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

activex container

I want insert a ActiveX control develop by Microchip to acess USB hardware
When i insert the ActiveX in container the labview send a message below?
data.cpp line 95

The ActiveX can be obtained in:

ftp://ftp.microchip.com/download/faqs/example/activex/setupex2.zip

I tried in other machine and with the same problems occurs.
Thank you
Marco Tulio Chella
0 Kudos
Message 1 of 5
(3,440 Views)
Try using ann Automation Refnum instead of the container. This way requires a little more know how about opening/closing refnums, using the property/invoke nodes, as well as documentation about what the properties and methods do.

Although I apparently don't have the correct hardware I was able to gain access to the properties and methods of this ActiveX object using this method.

It still may not work for you but here is a simple VI I put together using this method.


Hope that helps... Good luck!
-scraggs99
Message 2 of 5
(3,440 Views)
What version of LabVIEW are you using? If you have 6i, there is an upgrade to 6.0.2 on NI's page. I also got an error on LabVIEW 6.1--EAccess Violation. I was allowed to set an automation reference to the control though. (Many thanks to the previous poster). Because not all activeX controls are created equal, you may have to contact the manufacturer to see how this product is intended to be used.
0 Kudos
Message 3 of 5
(3,440 Views)
I have Labview version 6i. I tried with 6.1 and got the same error EAccess Violation.
With automation reference there´s no problem but the methods return null
The control in visual basic work fine.
Thank you
0 Kudos
Message 4 of 5
(3,440 Views)
Hi,

When I use automation references, I always make this mistake...

With a container, there is no need to 'open' the control. But with an
automation reference, you must first open it with 'Automation Open'. If you
don't do this, you'll get all the methods and properties, but they will
return null's.

Regards,

Wiebe.


"marcotulio" wrote in message
news:506500000005000000FEBD0000-1031838699000@exchange.ni.com...
I have Labview version 6i. I tried with 6.1 and got the same error
EAccess Violation.
With automation reference there´s no problem but the methods return
null
The control in visual basic work fine.
Thank you
0 Kudos
Message 5 of 5
(3,440 Views)