05-13-2024 06:02 AM
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
05-13-2024 06:22 AM - edited 05-13-2024 06:30 AM
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:
In case if you see something like this:
then you need immediately check the dependencies (for example, with this tool), and in your particular case two more DLLs are required:
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.