LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

multiple ActiveX event registrations

The attached zip file contains a .NET 2003 project that builds an ATL COM object with two identically typed events. Both events fire every half second sending the same count integer as data for 10 seconds when the Go method is invoked. The eventrig test.vi is set up to register two callback vi's, one for each event and update the two integer indicators on the front pannel. I have only been successful at getting the first event callback registered to work. I cannot seem to get both callbacks to sink the events. If I change the order, again, only the first one registered works. Can anyone find what I am doing wrong or missing and get both events to be handled by the vi?
Thanks,
0 Kudos
Message 1 of 7
(3,592 Views)
Please be patient with ni - they had some trouble posting the attachment. It will be posted with this thread shortly.
0 Kudos
Message 2 of 7
(3,592 Views)
Looks like my example code is now available for those who want to take a look. Turns out that this is an actual bug in LabVIEW 7.0 and a workaround is being investigate by NI. If anyone comes up with a solution I would like to hear about it.
Thanks,
Larry Trout
0 Kudos
Message 3 of 7
(3,592 Views)
Hi Larry,

I am facing exactly the same problem with multiple activex events (i.e. I can get only one of the activex events to work) and I am near a deadline. Did you ever get any feedback from NI on the workaround?

I'll be waiting for your reply.

Thanks

Srikant Telikepalli

Systems Engineer,
InfoDat
713 785 7862 x:20
Houston Tx
0 Kudos
Message 4 of 7
(3,592 Views)
Does anyone know if this has been fixed in version 7.1?
Certified LabVIEW Architect
0 Kudos
Message 5 of 7
(3,592 Views)
Has a workaround been found for LabVIEW 7.0?
Certified LabVIEW Architect
0 Kudos
Message 6 of 7
(3,592 Views)
This is the feedback I got from NI UK -

"The bug should be fixed in the next version of LabVIEW which won't be out for a while. The ax-events.llb are included in LabVIEW 7.1(though not on the functions panel) although I do not know yet whether they will be in the next revison. You should be fine using the old vi's for now and you can always include the library for compatibility with future versions."
Certified LabVIEW Architect
0 Kudos
Message 7 of 7
(3,592 Views)