04-02-2010 02:52 PM
While attempting to use the iocomp iPlotX activeX control in labview I am able to register a single event without difficulty, but when I try to register multiple events I get the following error:
Error -2147220990 occurred at Register Event Callback in graph_test_2.vi
This error code is undefined. No one has provided a description for this code, or you might have wired a number that is not an error code to the error code input.
I am able to set handlers for both events without difficulty in Visual C#, so it may be something specific to the way Labview interacts with ActiveX controls.
My Labview version is 8.61f1. I am using the iocomp plot pack version 3.0.8 Service Pack 4. I am using the iPlotX control and attempting to register callbacks for the the OnToolBarButtonClick and OnXAxisSpanChange.
If anyone else has run into a similar problem and knows a workaround please let me know.
Thanks.
04-05-2010 05:02 PM
Hi Ande,
I'm curious to know whether or not you can do other ActiveX event callbacks within LabVIEW? There are a couple of examples that you could try in the example finder.
Also, are you able to create multiple events in LV without problem?
Finally, what OS are you using?
Thanks,
04-06-2010 09:28 AM
I am able to use multiple callback .vi's for other ActiveX controls without any issues. I think the specific one I tried was the Microsoft string ActiveX control. It seems as though there is something specific in the iocomp controls that does not work properly with labview's method for event registration.
My OS is Windows XP Professional SP2.
04-07-2010 03:05 PM
Hi Ande,
I'm worried that since you are able to make multiple ActiveX calls properly in LabVIEW, that it is something specific with Iocomp--the fact that you can do it with VB also concerns me that it may be something specific to LabVIEW-Iocomp. I searched around on our internal sources and google and didn't come up with much for users doing ActiveX between LV and IoComp.
Could you post a snippet of your code so we can see how you are doing this?
Finally, was there any particular reason you were using the Iocomp controls for your application?