LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

error 3005

I have a code 3005 error.  I have LABVIEW 2010.  My Automationrefnum sees the properties and methods of the class I am using.  I successfully registered my .TLB file.  I have my Autorefnum attached to an Automation Open vi, and after that I have property nodes and invoke nodes.  I can select my properties and methods of the class I am using in these property nodes as well, but unable to get rid of this error when I run this VI.  I'm new to LabVIEW and would love to know why this is so.  Any suggestions are welcome.  Attached is my VI.

0 Kudos
Message 1 of 5
(2,811 Views)

Danny,

 

Are you sure that the object you are opening is creatable?  When selecting an ActiveX Class for an Automation Refnum in LabVIEW, there is a checkmark in the Select Object from Type Library dialog box that says "Show Creatable Objects Only".  Check that the object you want to create is still present after checking this box.  It looks like from your screenshot that the object you have selected is a dependent.

 

See this link for more details: http://digital.ni.com/public.nsf/allkb/AF3523C118BEB9948625694A0073A5E3

Drew T.
Camber Ridge, LLC.
0 Kudos
Message 2 of 5
(2,790 Views)

Thanks so much for replying.  It is creatable.  There is one more hint to the puzzle.  A friend of mine is running the exact same code with the exact same tlb file and he does not get this error.  If the tlb file were not registered,  would I not see the property and methods of the class?

 

Thanks Drew

Danny

0 Kudos
Message 3 of 5
(2,778 Views)

Does anyone have any ideas?  Any would be appreciated.

 

Thanks

Danny

0 Kudos
Message 4 of 5
(2,765 Views)

Danny,

 

Sorry its taken a while to get back to you, busy all the time!  It is puzzling that your friends computer can run the same code.  I would be willing to be there is something, probably miniscule or arbitrary, different between yours and her/his system.  If the class is custom, you shouldn't be able to see the classes and methods for it if it was not registered correctly.

 

Can you post the configurations of yours and your friends computers?  OS, LabVIEW version, significant drivers, and anything else relevant would be helpful.

 

Also, would it be possible for you to post your TLB file so I can try to reproduce?

Drew T.
Camber Ridge, LLC.
0 Kudos
Message 5 of 5
(2,746 Views)