LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Program using activex works only one time

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!

0 Kudos
Message 1 of 14
(3,468 Views)

Just to make sure, is your ActiveX reference closed correctly before your VI ends?

TailOfGon
Certified LabVIEW Architect 2013
0 Kudos
Message 2 of 14
(3,466 Views)

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.

0 Kudos
Message 3 of 14
(3,463 Views)

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.

TailOfGon
Certified LabVIEW Architect 2013
0 Kudos
Message 4 of 14
(3,459 Views)

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 =/

0 Kudos
Message 5 of 14
(3,457 Views)

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.

0 Kudos
Message 6 of 14
(3,455 Views)

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.

0 Kudos
Message 7 of 14
(3,453 Views)

What do you have to do to make it work again? Rebooting? Just relaunching LabVIEW will do?

TailOfGon
Certified LabVIEW Architect 2013
0 Kudos
Message 8 of 14
(3,448 Views)

To make it work again I have to restart LabVIEW (the whole program, not just the VI).

0 Kudos
Message 9 of 14
(3,443 Views)

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

Charles Chickering
Architecture is art with rules.

...and the rules are more like guidelines
0 Kudos
Message 10 of 14
(3,441 Views)