Jump to content

ActiveX Performance Issue (Urgent Request)


Recommended Posts

We have an issue here where I dont have all the info but am hoping that maybe someone has some idea what might be going on , we have an ActiveX control that is written by a third party vendor who doesnt know LabVIEW. This driver uses mouse calls to talk to 24 USB devices , the issue is that when it is used in VB or VBA in Excel it works fine and is very fast , but , in LV it works but takes very long to return , longer than 300ms per USB device , so as you add more devices it gets slower and slower and slower.... We put the VI into the DAQ thread and it made no difference , if you put it in the User Interface thread it runs very fast , but , it doesnt always return the proper values..... any ideas ?? the vendor is not being cooperative :-( the developer has spent over two months on the LabVIEW program so changing languages is not an option....

Thanks

Dan

p.s. sorry for the limited info , but , it is about all i have to go on at the moment...

Link to comment

QUOTE (Dan Bookwalter @ May 22 2008, 09:07 AM)

We have an issue here where I dont have all the info but am hoping that maybe someone has some idea what might be going on , we have an ActiveX control that is written by a third party vendor who doesnt know LabVIEW. This driver uses mouse calls to talk to 24 USB devices , the issue is that when it is used in VB or VBA in Excel it works fine and is very fast , but , in LV it works but takes very long to return , longer than 300ms per USB device , so as you add more devices it gets slower and slower and slower.... We put the VI into the DAQ thread and it made no difference , if you put it in the User Interface thread it runs very fast , but , it doesnt always return the proper values..... any ideas ?? the vendor is not being cooperative :-( the developer has spent over two months on the LabVIEW program so changing languages is not an option....

From what you've posted, I believe your best bet is to simplify your application to one VI (if possible) and then contact National Instruments technical support if you're still having issues.

Tim

Link to comment

Dan:

How are you capturing events for the ActiveX control? I am assuming that you may need to capture mouse events and others.

ActiveX controls can be registered to capture their native events via LabVIEW ActiveX Events call back function node. Some times this method works better than capturing the events using LabVIEW polling or by using LabVIEW's own event structure.

Attached is an Example node where ActiveX native events are captured via a LabVIEW call-back function node. This is for an ActiveX grid that I use with LabVIEW.

Anthony

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.