LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabView DLL appears to run but really does not.

I've got a LabView VI that runs fine when executing the source code but when I build it into a DLL and call it from a C application I see strange things happen. A little window flashed briefly on the screen and after several attempts was able to capture the text that was being printed to the window. Apparently the DLL was looking for another DLL, one from NI, but was not finding it. The DLL call appears to the C application to have run but further investigation showed that it really did not run. I'm curious why 1) the DLL version doesn't use the same default search path as the LabView IDE uses and 2) why there is no exception indicated somehow by Windows. Maybe there is another OS call that I could make to see if the previous DLL call caused any errors??

Thanks!
0 Kudos
Message 1 of 6
(3,217 Views)
Are you trying to run this DLL on the same machine? The LabVIEW run time engine needs to be installed on the machine the DLL is to be run on...AND....you would be missing a dll if it was not.

-Brett
0 Kudos
Message 2 of 6
(3,194 Views)
Hi,

try using utility on your dll to check all the dependancies.

utility here

regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 3 of 6
(3,190 Views)
No I'm not running the DLL on the same computer as it was built on. I build it on my office computer using LV Pro and then run it on a lab computer, which coincidentally does have LV Full installed on it. Even so I've got the runtime engine installed in the bin directory that LV Pro creates when you build the DLL. After a little detective work I found out which "other" NI DLLs were not being found and copied them into the same directory as the runtime engine. This seems to work fine and when I called NI about they told me this was the best solution. Still it seems that the DLL should be able to find NI's own installation path and the additional DLLs that it needs to run.

Thanks!
0 Kudos
Message 4 of 6
(3,179 Views)
Ray,

This tool rocks! Thanks for the suggestion. Did you develop or find it?

-Brian
0 Kudos
Message 5 of 6
(3,178 Views)
Can't claim any credit there...

Just went looking for a similar tool one time and found it.

Regards
Ray.
Regards
Ray Farmer
0 Kudos
Message 6 of 6
(3,162 Views)