LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Call Dll failed when i build the program to application

hello, i have a trouble that build the program to application, my VI include 'call library function node', the VI works fine, but when i build it to EXE,  it will be error like the picture.

 
0 Kudos
Message 1 of 5
(2,203 Views)

@CAST_TAN wrote:

hello, i have a trouble that build the program to application, my VI include 'call library function node', the VI works fine, but when i build it to EXE,  it will be error like the picture.

 


No Attachments Found, Also check if the path for the dll is changing, since Application takes different path directory.

Also Make sure you are adding your Library Files/DLL's in always included while building application

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 2 of 5
(2,190 Views)

If you are specifying the path of the dll on the block diagram, make sure that the path is not changing after building the executable. Otherwise if you have directly selected the dll using the configure window for CallLibrary node, make sure you include the dll in your project window and include the dll within the 'always included' items section in the exe build settings. 

-----------------------------------------------------------------------------------------------------------------------------
Waiting For the inner calling 🙂


0 Kudos
Message 3 of 5
(2,187 Views)

hi Palanivel Thiruvenkadam,

Sorry, i had attached the picture, but i don't know why it cannot found.

In my program, i used a third party DLL, the DLL will be placed in a fixed location when i install software by default, you can see the DLL path.png. In subVI, i call the DLL by 'call library function node' and set the DLL path, you can see the config in call library function node config.png. I add the DLL to always include as your side, the error remain, you can see the attachment, thanks for your help.

0 Kudos
Message 4 of 5
(2,147 Views)

hi 

In my program, i used a third party DLL, the DLL will be placed in a fixed location when i install software by default, you can see the DLL path.jpg. In subVI, i call the DLL by 'call library function node' and set the DLL path, you can see the config in call library function node config.jpg. I add the DLL to always include as your side, the error remain, you can see the attachment, thanks for your help.

0 Kudos
Message 5 of 5
(2,145 Views)