george seifert Posted July 31, 2012 Report Share Posted July 31, 2012 Can I programatically specify the automation refnum input for the Automation Open Function? For some reason my system forgets the link specified in the automation refnum. It would be nice if I could programatically set that value. George Quote Link to comment
asbo Posted July 31, 2012 Report Share Posted July 31, 2012 I think this is possible through scripting? I feel like someone was trying this on the forum not too long ago. However, the type itself needs to be a constant on the BD at run-time, so if the scripting solution doesn't work, you're hosed. Can you describe the problem you're having better? Go for the cause, not the symptoms. Quote Link to comment
george seifert Posted July 31, 2012 Author Report Share Posted July 31, 2012 I don't know all the causes yet, but I'm pretty sure when I shut down LabVIEW and reload my project, the link that I specified for the automation refnum is no longer valid (I did save my project). If I right-click on the refnum and reload the right name everything works. I've never had this problem with other refnums. Quote Link to comment
asbo Posted July 31, 2012 Report Share Posted July 31, 2012 By "no longer valid," you mean all the nodes disassociate with the library? I've seen some re-linking issues when bouncing between versions of Excel. Do you possibly have different versions of the ActiveX control installed that could be swapping around? Quote Link to comment
george seifert Posted July 31, 2012 Author Report Share Posted July 31, 2012 I guess you could say it disassociates with the library. I get an error when I run the VI that has to do with the library. When I relink it everything is fine. There is another copy of the dll in another directory, but I don't see how it could jump over there and use that one. I registered the dll, but it only works when I browse to the directory where the dll is and use that instead of picking the from the Type Library drop down list. I'm not real impressed with this company's dll in other regards, so I not suprised it's giving me fits like this. George Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.