LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Call library function Slow down?

I'm calling a dll generated by Visual C. If I call this dll from Excel, it takes 4us. From LabVIEW 6.0.2 - 60 us,and LV 6.1 it takes 30 us.

Does LabVIEW slows down the time performance of the dll call due to passing data process or something like that ? If that is the case, does anyone knows how to speed up this ?
Ricardo
0 Kudos
Message 1 of 2
(2,983 Views)
> Does LabVIEW slows down the time performance of the dll call due to
> passing data process or something like that ? If that is the case,
> does anyone knows how to speed up this ?

The first thing to look at is whether the DLL is safe to be called from
more than one thread, or does your program only call it from one place.
If so, then you can configure the DLL Node to be marked reentrant.
Double click it and check the box for reentrant execution.

As a visual clue, the nodes that run in the UI will are orange and the
reentrant ones are yellow.

If you still find some speed differences, they are likely due to data
conversions between LV types and C types.

Greg McKaskle
0 Kudos
Message 2 of 2
(2,983 Views)