I have BladeRFx40 board and I'm trying to use it with Matlab on Windows 7. I installed the latest windows version and the board seems to communicate well with bladeRF CLI. However, using Matlab 2016b and 2018b, it doesn't and Matlab keeps crashing. I tried "bladeRF_rx_gui" and it crashed Matlab.
I also noticed the following sequence whenever I run the simple command:
Code: Select all
b = bladeRF('*:serial=xxx');
- The first time I run the command after starting Matlab, I get the following error:
If I run the same command again, Matlab would execute the above code successfully without crashing but it then crashes at the following line in bladeRF.m:Warning: The thunk(voidPtrbladerf_image_typeuint32uint32Thunk) for function 'bladerf_alloc_image' was not found in the
library
> In loadlibrary
In bladeRF/load_library (line 306)
In bladeRF (line 373)
Warning: The thunk(voidPtrbladerf_fpga_sizeuint16Thunk) for function 'bladerf_alloc_cal_image' was not found in the library
> In loadlibrary
In bladeRF/load_library (line 306)
In bladeRF (line 373)
Error using bladeRF/load_library (line 316)
Failed to find functions in libbladeRF.
Error in bladeRF (line 373)
bladeRF.load_library();
Code: Select all
[status, ~, devinfo] = calllib('libbladeRF', 'bladerf_get_devinfo', dptr, []);
Many thanks,