02-02-2021 07:32 AM
Thanks for the reply, how about both.
02-02-2021 08:20 AM
Ok. I also included example for labview x32. But there's a new problem: hackrf.dll which I've sent earlier is too old. So sweep functions wouldn't work with it.
02-02-2021 08:30 AM
Just so I'm clear, the x64 has the sweep and the x32 does not, correct?
02-02-2021 08:56 AM
Both nethackrf.dll has sweep functions, but to use them you need new libhackrf libraries (hackrf.dll). Both hackrf.dll which I've compiled and sent earlier are too old. You need to compile or find current version of hackrf.dll. Source code to compile hackrf.dll is here https://github.com/mossmann/hackrf/tree/master/host/libhackrf/src but it's easier said than done.
02-02-2021 09:05 AM
This is where I get into trouble, I'm a strictly LabVIEW user, so what would I use to compile the dll? I do have the latest PothosSDR libraries, which has a HackRF.dll in it, would that work?
02-02-2021 09:30 AM - edited 02-02-2021 09:34 AM
@Eldueno wrote:
This is where I get into trouble, I'm a strictly LabVIEW user, so what would I use to compile the dll? I do have the latest PothosSDR libraries, which has a HackRF.dll in it, would that work?
Maybe it would work. Try to replace old hackrf.dll and restart labview process. If not, you would get error 1172 because of missed "hackrf_start_rx_sweep" function.
02-02-2021 09:39 AM
I get this error...System.BadImageFormatException
Would it be possible for you to recompile your code with the correct hackrf.dll so the sweep function works?
02-02-2021 09:54 AM
This error means that you are trying to open x32 library on x64 labview or vice versa. I think I would compile it on this weekend if i'm not busy.
02-02-2021 10:06 AM
That would be great, I really appreciate the help.
02-06-2021 05:37 AM - edited 02-06-2021 05:38 AM
I've compiled new libraries. But I still can't debug sweep functions. Now I'm getting HACKRF_ERROR_USB_API_VERSION error. I've tried to update hackrf firmware, but USB API version is still 1.02 while sweep functions require 1.04.