LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI call Module direction

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

 

EDM_S_M_0-1596499304738.png

 

 

Inputs/outputs

EDM_S_M_1-1596499304758.png

 

 

 

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

 

 

EDM_S_M_2-1596499304794.png

 

 

 

 

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!

 

 

 

EDM_S_M_3-1596499304848.png

 

 

 

After that simple procedure, we get no errors

 

 

EDM_S_M_4-1596499304906.png

 

 

 

 

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 

 

0 Kudos
Message 1 of 2
(1,218 Views)

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. 

0 Kudos
Message 2 of 2
(1,191 Views)