Jump to content

Closed activeX ref, but it's open a while. Closed yet? How 2 tell?


Recommended Posts

I open and close an activeX reference.  (In case it matters, the activeX commands control a Hamamatsu OEM mini spectrometer.)  Problem:  after the Labview closes the reference,

post-4616-0-28393000-1370615736.png

in reality it is still open a little while.  If I re-run my VI and thereby try to open the activeX connection while it wasn't yet closed, bad things happen.

 

So, how can I check whether the reference/connection is actually closed?  Either this reference specifically, or some way to list all open activeX references, would be cool.

Link to comment
  • 3 weeks later...

This might be a shutdown issue of your component. If it didn't shutdown yet and you try to reopen it all kinds of evil things may happen. I don't think this is a LV related issue. Here is an ugly idea how to solve it: Do some tests how long a proper shutdown takes and add an appropriately long delay before returning from your VI. IMHO any other approach would involve external code.

Link to comment

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.