LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Failed to load shared library

Solved!
Go to solution

I have been stuck with this error for two days trying to run my LibraryCallTest on my cRIO 9047. I compiled it following this link: (Part 5: Building a Shared Library with Visual Studio Code and NI Linux Real-Time — nilrt-docs 1.0 do...). I've added the .so called in the .vi to my cRIO under usr/local/lib/ and usr/lib/ and I still have an error. What am I missing?

7ht42vl5.png

 

 

0 Kudos
Message 1 of 12
(2,007 Views)

Try specifying the library path.

How to Configure LabVIEW to Use Relative Paths for DLLs

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 2 of 12
(1,988 Views)

On step 3 I cannot find Application Directory.vi under File I/O, File Constants... I am using LabVIEW 2018.

0 Kudos
Message 3 of 12
(1,979 Views)

Adding a path into allows it to be run, however my the addition is no longer working.

0 Kudos
Message 4 of 12
(1,961 Views)

@JacobRiley77 wrote:

Adding a path into allows it to be run, however my the addition is no longer working.

 


 What is your CLFN configuration? Are you using the correct calling convention?

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 5 of 12
(1,954 Views)

This is what I was originally using: 

JacobRiley77_0-1687974153717.png

JacobRiley77_1-1687974160922.png

Then I checked the specify path on diagram and played with the paths, but the addition was no longer working. 

0 Kudos
Message 6 of 12
(1,934 Views)

It allows me to run it if I have a specific path into the CLFN, but then it does not function properly. Here is an updated SS:

JacobRiley77_0-1688061409055.png

 

0 Kudos
Message 7 of 12
(1,888 Views)

The VI is returning Error 7 at the Call Library Function Node using LabVIEW, indicating that the SO library is missing. Are you sure that you have transferred the library to the RT target? Did you use Web Server from NI MAX or FileZilla to transfer the file?

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 8 of 12
(1,879 Views)

I have used WinSCP to transfer the file over to both directories.

0 Kudos
Message 9 of 12
(1,875 Views)

Here is a SS of my WinSCP in the usr/lib directory, I also have it placed in the usr/local/lib directory. I had a few problems even getting the cRIO to connect to my laptop and I fixed it by installing the cRIO Real-Time Module. Is there another module that I might need to download in NI Package Manager?

JacobRiley77_0-1688066624779.png

 

0 Kudos
Message 10 of 12
(1,868 Views)