Discussion:
Error 3001, 3DGraph ActiveX control
(too old to reply)
ceties
2008-07-23 20:40:08 UTC
Permalink
Hi I think I will become mad soon. I am programming application and I just add a 3D Graph. In the initialization process I set some parameters of it. When I open project, and run the top vi once everything works fine. When I run it again I get this error:

Error 3001 occurred at ActiveX Automation Not Implemented

I tried everything. I replaced the graph control with new one. That helped until I saved the top vi and run it again then the error appeared again.

I even tried to simplify my code with the aim to find where the problem could be. I was able to erase everything (code/controls?loop) except for the 3Dgraph and it's property node that causes this and I was still getting the annoying error. But when I saved this remaining code and run it again it worked as expected with no error. I repeated it many times and I was not able to figure out where is the problem.

Have anybody encountered this error? In addition the control behaves a little bit strange since sometimes the control appears out of the ActiveX container.

 

Thx a lot


theRemainder.vi:
http://forums.ni.com/attachments/ni/170/343474/1/theRemainder.vi
JoeLabView
2008-07-23 21:40:08 UTC
Permalink
I did a search for your error message and no match was found.
The code that you attached is not what you are referring to, is it?
R
ceties
2008-07-23 22:10:05 UTC
Permalink
Hi Joe, the code I attached is the rest of the code that still caused the mentioned error until I saved it. After saving it started to behave as expected. I also didn't find any description. I don't want to upload the whole application since it has about 150vis and I don't want to share it.
JoeLabView
2008-07-23 23:40:05 UTC
Permalink
So this is a sub-vi, right?
 
Do I understand correctly that you're no longer having a problem?
 
R
ceties
2008-07-24 08:10:07 UTC
Permalink
No, I still have the problem in my application. Whatever I do, if I resave the code, recompile I still get the error as described above. The error occurs when I try to set some property of the 3Dgraph. But for some reason when I erase most of my code and save the rest when I open it the error is gone but I am not able to figure out what caused the error. The attached code is what was left when I erased everything from my application and this piece still caused the described error?.until I saved it. I am sure that it's not related to programming - since I don't have any open references and so on.
ceties
2008-07-24 12:10:05 UTC
Permalink
This was the most difficult error I have ever encountered. It took me nearly three days to solve it. Finally I have to admit it was all my fault. I have a vi that before the application runs it reads  values of saved controls from ini file and updates those ctrls according to it(UI_INI_ReadFP). When quitting other vi saves these values into file(UI_INI_WriteFP) - to make it really simple I just get all FP controls names and values via method and I filter those that aren't important for me. I didn't filter out the 3D Graph control. So what it did was that during initialization it loaded the reference number, like 0x55600002, from the ini file(the file was written when the application was quitting during the previous run) and assigned it to the 3Dgraph control. It worked if I run the application for the first time. When I quit it and run it again it tried to assign the same reference number again which wasn't obviously possible but it didn't appear until I wanted to change the properties of the 3DGraph. Grrrrr!I wish I could rate myself with five stars :)


UI_INI_ReadFP.vi:
http://forums.ni.com/attachments/ni/170/343612/1/UI_INI_ReadFP.vi


UI_INI_WriteFP.vi:
http://forums.ni.com/attachments/ni/170/343612/2/UI_INI_WriteFP.vi
Ben
2008-07-24 12:40:06 UTC
Permalink
I got into a habit while raising my son that when ever I he would do something stupid and hurt himself I'd tell him "Don't do that!" I found myself doing the same thing last week while remodeling and I busted my head open on an old ventilation duct. So...
Don't do that!
Ben
PS your wish has been granted.:smileywink:
ceties
2008-07-24 13:10:05 UTC
Permalink
Thx Ben! And I promise that I won't do it again!
ceties
2008-08-12 15:10:10 UTC
Permalink
It's hard to admit it but I did it again. For those who encouter this error it is just simply caused by inproper reference, for instance now I forgot to send the reference of the 3D grapf into consumer loop where I was doing some computation and visualisation.
Cheers

Loading...