10-06-2006 08:53 AM
10-10-2006 03:20 AM
Hi Marcel,
Can Windows find the DLL in it's search path or is it in the same folder as your VI? You could try and remove the absolute path for the DLL in the call library node so that it only contains the dll name. This way LabVIEW will search for it when the VI containing the Call Library node is loaded in to memery.
You could also try to recompile the VI heirachy. Open the VI containing the call Library node, press and hold both the <ctrl> and <shift> keys. Now click with you mouse on the run button. This will force LabVIEW to recompile the heirachy of this VI.
What if you create a new VI and place a Call Library node and configure it for the same DLL. will this fail also?
Hope this helps
Thanks
Karsten
10-10-2006 03:36 AM
Hello Karsten,
Yesterday I managed to solve the issue. Indeed this was path related.
Somehow the path depth seemed to deep and when moving the DLL to a different location it worked well.
I will also try your suggested option of removing the absolute path. Actually I think this method would be nicer to use.
The only thing I worry about is how this will affect executables that I build. How wil they manage to find the DLL ?
Regarding the executables, I don't distribute the DLL because this is a DLL supplied by a the hardware supplier and already installed by the end-user of my system when they install the drivers.
regards,
Marcel
10-10-2006 04:13 AM
Hi Marcel,
See the following documents for details on finding DLLs in LabVIEW and a LabVIEW Build Executable
LabVIEW Searching for a DLL Used in the Call Library Function Node
My Stand-Alone Executable Cannot Find My DLL, Even Though I Have Specified the Path for the DLL
For you information in LabVIEW 8.2 you can specify the DLL path trough a Path input on the Call Library Node.
Thanks
Karsten
10-11-2006 02:12 AM
Thanks Karsten, real good info there. This solves the issues I'm having.