08-03-2020 07:05 PM
Hi guys!
I hope you are doing fine
I write this to ask for your support and experience
Here we are using an NFC sensor “Orbit” for this a CVI module calls the DLL to use the sensor
As you can see on the next image the sequence is pretty simple, since most of the job is done by the cvi module, we tell the module where the dll is, and it takes care of the rest
Inputs/outputs
Never the less, the first time we run the sequence, we get an error “-3” that indicates that the communication session was not able to be opened
If we test again the error remains
To fix this, what we need to do is just go to the module and select the dll inside the project folder. Please note that this is the same path that was set in the first place!
After that simple procedure, we get no errors
We have tried to store the dll on a different location
Use absolute / Not absolute path
Use a VI to handle the DLL, this will crash labview when ran
But the problem remains
Do you have an idea of how we can address this?
Maybe a workaround by dynamically set the location of the DLL, as it is done by hand
Thanks is advance
Edmundo
08-03-2020 11:44 PM
Did you read about dynamic-link-library-search-order on windows ? AFAIK you have to follow these conventions to ensure that the DLL is found automagically.