LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Performance issues interfacing dlls with Labvies

Hi

I'm attempting to interface some custom dlls with a LabView program written by a coworker and I am experiencing some fairly dramatic performance penalties. The performance hits is intermitant, but very annoying.

I've had several programmers look over the C++ code used to generate the dll, so I'm confident that the problem is not in the dll. Any hints on where to start tracking down this problem, and how to fix it.

Thanks

Mark
0 Kudos
Message 1 of 4
(2,859 Views)
I don't think I will be able to help with your specific problem, but I suggest you provide more details about what it is you're trying to do and what you mean exactly by intermittent performance penalties.
Posting your code and the DLL is probably also a good idea.

___________________
Try to take over the world!
0 Kudos
Message 2 of 4
(2,848 Views)
Hi,


You can try to change the execution mode of the external code. Right click>Configure "Run in UI thread" or "Reentrant". It doesn't work with all external code, but if it works, it will run faster. If the dll stores values in it's own memory it will not work.


Regards,


Wiebe.



"markstewart" <x@no.email> wrote in message news:211293@exchange.ni.com...
Hi<br><br>I'm attempting to interface some custom dlls with a LabView program written by a coworker and I am experiencing some fairly dramatic performance penalties. The performance hits is intermitant, but very annoying.<br><br>I've had several programmers look over the C++ code used to generate the dll, so I'm confident that the problem is not in the dll. Any hints on where to start tracking down this problem, and how to fix it.<br><br>Thanks<br><br>Mark
0 Kudos
Message 3 of 4
(2,799 Views)

We finally got to the bottom of this one and it turns out to have nothing to do with Labview.

There was a very subtle error buried deep within one of our libraries, caused by conditional compilation.

Thanks for those who have responded.

 

Mark

 

0 Kudos
Message 4 of 4
(2,782 Views)