Jump to content

Programatically specify automation refnum input?


Recommended Posts

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. ;)

Link to post
Share on other sites

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.

Link to post
Share on other sites

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?

Link to post
Share on other sites

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

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.