06-27-2012 04:35 PM
Hi, I have just one VI that has only one "automation open" wired to a "close reference". The "automation open" has wired the ActiveX class that I want to use. When I run the VI for the fist time, everything works right. The next time I run the VI, it gives me this error: "Run-time error 730: Control 'BitLabel' not found", and from the third time everytime I run the VI it gives me the following error:
Error -2146827859 occurred at Unknown System Error in Untitled 1
This error code is undefined. Undefined errors might occur for a number of reasons. For example, no one has provided a description for the code, or you might have wired a number that is not an error code to the error code input.
Is this a problem of the DLL? or LabVIEW or mine?
I'm using LabVIEW 2011. Thanks!
06-27-2012 04:50 PM
Just to make sure, is your ActiveX reference closed correctly before your VI ends?
06-27-2012 04:52 PM
Yea, like I said, my whole VI is just the open and close reference. I've not put property nor invoke nodes because first I want it to see that openning it and closing it works.
06-27-2012 05:08 PM
Hmm, the first thing I would try would be to try it using the other language. If it is reproducible, then it's your DLL.
06-27-2012 05:10 PM
There's another guy here programming with Visual Basic and he uses that DLL and works OK with him, so I don't think it is the DLL =/
06-27-2012 05:11 PM
Is it some specific ActiveX to work with hardware? Does it have special close method?
It might reserve hardware when the link is initiated, but unreserve it only on special command, not when you do not communicate with it.
06-27-2012 05:13 PM
Yea it is some specific ActiveX. The device is called EV2200, from Texas Instruments, and it is plugged by Serial (COM). I don't know if it has a special close method.
06-27-2012 05:20 PM
What do you have to do to make it work again? Rebooting? Just relaunching LabVIEW will do?
06-27-2012 05:24 PM
To make it work again I have to restart LabVIEW (the whole program, not just the VI).
06-27-2012 05:29 PM
Could you post the VB code and your code? (Only ActiveX calls are necessary) I have quite a bit of experience in both languages and might be able to help.
Charles