LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help needed compiling dll library for Labview

I would like to use Labview in radio astronomy but don't have money for USRP. I have used the RTLSDR library, but the RTLSDR devices are far less sensitive than Airspy devices. I know this from working with gnuradio, but python and linux are way outside my comfort zone. I have the airspy dll source code, but whatever I do I cannot get the library to work in Labview. I get the error "The library for this node cannot be found or cannot be loaded....". Attached are the dll files I have been trying to use as well as the source code for the libraries. I have been experimenting with examples on the website and can compile the Fibonacci example in visual studio and get to work in Labview. I just cannot (do not have enough coding knowledge) to resolve why the airspy library will not work. 

 

Thanks

Download All
0 Kudos
Message 1 of 2
(554 Views)

When you see the message  "The library for this node cannot be found or cannot be loaded...." then in most cases there are two possible reasons — bittness and dependencies.

The Bittness should be the same for LabVIEW and DLL (you can't call 32-bit DLL from 64-bit LabVIEW and visa versa).

But usually in this case you will see something like that:

Screenshot 2024-05-13 13.14.41.jpg

In case if you see something like this:

Screenshot 2024-05-13 13.20.04.png

then you need immediately check the dependencies (for example, with this tool), and in your particular case two more DLLs are required:

Screenshot 2024-05-13 13.16.56.png

Put pthreadVCE2.dll (probably from pthread-win32 for Windows) and libusb-1.0.dll (probably from libusb) into the same folder with your DLL (there are other nested DLLs may required!), and check that all dependencies are resolved and found, then VI will be not broken any longer. After that check calling conventions (cdecl/stdcall) — this is important for 32-bit DLL.

 

Message 2 of 2
(546 Views)