BladeRF and MATLAB 2017a error

Off topic threads and discussions

Moderator: robert.ghilduta

Post Reply
samydh
Posts: 1
Joined: Mon Dec 18, 2017 9:18 pm

BladeRF and MATLAB 2017a error

Post by samydh » Mon Dec 18, 2017 9:26 pm

Greetings:

I have just installed the latest version of the bladeRF for Windows 10 using the download link https://nuand.com/windows_installers/bl ... latest.exe

I follow the instructions, as directed. However when I attempt to run bladeRF_rx_gui.m in Matlab R2017a, I get the following error. Can someone please suggest what I am doing wrong?

Thank you.

********* Error Message listed below ****************
>> bladeRF_rx_gui
Warning: The thunk(voiduint8Thunk) for function 'bladerf_set_usb_reset_on_open' was not found in the library
> In loadlibrary
In bladeRF/load_library (line 298)
In bladeRF.devices (line 164)
In bladeRF_rx_gui>devicelist_CreateFcn (line 754)
In gui_mainfcn (line 95)
In bladeRF_rx_gui (line 50)
In matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)bladeRF_rx_gui('devicelist_CreateFcn',hObject,eventdata,guidata(hObject))
In matlab.graphics.internal.figfile.FigFile/read (line 31)
In matlab.graphics.internal.figfile.FigFile
In hgload (line 50)
In matlab.hg.internal.openfigLegacy (line 57)
In gui_mainfcn>local_openfig (line 286)
In gui_mainfcn (line 158)
In bladeRF_rx_gui (line 50)
Warning: The thunk(uint8voidPtrvoidPtrThunk) for function 'bladerf_devinfo_matches' was not found in the library
> In loadlibrary
In bladeRF/load_library (line 298)
In bladeRF.devices (line 164)
In bladeRF_rx_gui>devicelist_CreateFcn (line 754)
In gui_mainfcn (line 95)
In bladeRF_rx_gui (line 50)
In matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)bladeRF_rx_gui('devicelist_CreateFcn',hObject,eventdata,guidata(hObject))
In matlab.graphics.internal.figfile.FigFile/read (line 31)
In matlab.graphics.internal.figfile.FigFile
In hgload (line 50)
In matlab.hg.internal.openfigLegacy (line 57)
In gui_mainfcn>local_openfig (line 286)
In gui_mainfcn (line 158)
In bladeRF_rx_gui (line 50)
Warning: The thunk(uint8cstringvoidPtrThunk) for function 'bladerf_devstr_matches' was not found in the library
> In loadlibrary
In bladeRF/load_library (line 298)
In bladeRF.devices (line 164)
In bladeRF_rx_gui>devicelist_CreateFcn (line 754)
In gui_mainfcn (line 95)
In bladeRF_rx_gui (line 50)
In matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)bladeRF_rx_gui('devicelist_CreateFcn',hObject,eventdata,guidata(hObject))
In matlab.graphics.internal.figfile.FigFile/read (line 31)
In matlab.graphics.internal.figfile.FigFile
In hgload (line 50)
In matlab.hg.internal.openfigLegacy (line 57)
In gui_mainfcn>local_openfig (line 286)
In gui_mainfcn (line 158)
In bladeRF_rx_gui (line 50)
Warning: The thunk(int32voidPtrbladerf_moduleuint8Thunk) for function 'bladerf_enable_module' was not found in the library
> In loadlibrary
In bladeRF/load_library (line 298)
In bladeRF.devices (line 164)
In bladeRF_rx_gui>devicelist_CreateFcn (line 754)
In gui_mainfcn (line 95)
In bladeRF_rx_gui (line 50)
In matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)bladeRF_rx_gui('devicelist_CreateFcn',hObject,eventdata,guidata(hObject))
In matlab.graphics.internal.figfile.FigFile/read (line 31)
In matlab.graphics.internal.figfile.FigFile
In hgload (line 50)
In matlab.hg.internal.openfigLegacy (line 57)
In gui_mainfcn>local_openfig (line 286)
In gui_mainfcn (line 158)
In bladeRF_rx_gui (line 50)
Error using bladeRF/load_library (line 308)
Failed to find functions in libbladeRF.

Error in bladeRF.devices (line 164)
bladeRF.load_library();

Error in bladeRF_rx_gui>devicelist_CreateFcn (line 754)
devs = bladeRF.devices;

Error in gui_mainfcn (line 95)
feval(varargin{:});

Error in bladeRF_rx_gui (line 50)
gui_mainfcn(gui_State, varargin{:});

Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)bladeRF_rx_gui('devicelist_CreateFcn',hObject,eventdata,guidata(hObject))

mando238
Posts: 7
Joined: Sat Oct 22, 2016 9:07 pm

Re: BladeRF and MATLAB 2017a error

Post by mando238 » Tue Jan 09, 2018 6:23 pm

Had the exact same issue and solved it by using the 2016 rc2 installer from here: http://www.nuand.com/installers.php
I did have to manually delete my bladerf directory from the drive though, the uninstaller/re-installer itself would leave the current matlab bindings that cause the issue, so had to remove them manually.

Hope this works for you.

--Edit---
When running bladeRF_rx_gui I encounter exactly the same errors/warnings - this appears to be the same as this thread: viewtopic.php?f=9&p=7628#p7628

I've now tried older libbladeRF and matlab bindings versions (that used to work) but am now still getting the same errors.
--End Edit--

After using the same latest installer, which uses libbladerf 1.9.0 I now encounter an almost identical issue with supposedly missing functions in matlab:
https://imgur.com/cFTW7nd

Though everything worked before the update... I'm using R2017 on Windows10 x64.

User avatar
rtucker
Posts: 18
Joined: Sun Jan 25, 2015 10:38 am

Re: BladeRF and MATLAB 2017a error

Post by rtucker » Mon Jan 15, 2018 10:43 am

Could you list what files are present in C:\Program Files\bladeRF\matlab (or equivalent)? Seeing this for both 2016.05-rc2-alpha2 (the one that works) and 2017.12-rc1 (the one that doesn't) would be super helpful. Thanks!
Rey Tucker (she/her)
Systems Engineer, Nuand LLC
Rochester, NY, USA

mando238
Posts: 7
Joined: Sat Oct 22, 2016 9:07 pm

Re: BladeRF and MATLAB 2017a error

Post by mando238 » Mon Jan 15, 2018 5:12 pm

rtucker wrote:
Mon Jan 15, 2018 10:43 am
Could you list what files are present in C:\Program Files\bladeRF\matlab (or equivalent)? Seeing this for both 2016.05-rc2-alpha2 (the one that works) and 2017.12-rc1 (the one that doesn't) would be super helpful. Thanks!
I still can't attach images, but a text list is below. I will also emphasize I had to completely, manually, delete the C:/Program Files/bladeRF directory before running the older (2016.05-rc2-alpha2 ) installer to get it to work.

Directory: C:\Program Files\bladeRF\matlab
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 1/10/2018 22:08 test
-a---- 4/28/2016 21:47 35484 bladeRF.m
-a---- 4/28/2016 21:47 28591 bladeRF_IQCorr.m
-a---- 4/28/2016 21:47 69276 bladeRF_rx_gui.fig
-a---- 4/28/2016 21:47 28080 bladeRF_rx_gui.m
-a---- 4/28/2016 21:47 21410 bladeRF_Simulink.m
-a---- 4/28/2016 21:47 4116 bladeRF_StreamConfig.m
-a---- 4/28/2016 21:47 2868 bladeRF_VCTCXO.m
-a---- 4/28/2016 21:47 18377 bladeRF_XCVR.m
-a---- 4/28/2016 21:47 807 CHANGELOG
-a---- 4/28/2016 21:47 46100 libbladeRF_proto.m
-a---- 4/28/2016 21:47 3648 README.md

Directory: C:\Program Files\bladeRF\matlab\test
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 4/28/2016 21:47 1978 bladeRF_lms_cal.m
-a---- 4/28/2016 21:47 1123 bladeRF_rx_scheduled.m
-a---- 4/28/2016 21:47 775 bladeRF_rx_stream.m
-a---- 4/28/2016 21:47 3168 bladeRF_tx_tone.m

Directory: C:\Program Files\bladeRF\x64 - Note that the thunk file is in this directory.
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 4/28/2016 21:47 153088 bladeRF-cli.exe
-a---- 4/28/2016 21:47 187904 bladeRF.dll
-a---- 4/28/2016 21:47 30038 bladeRF.lib
-a---- 4/28/2016 21:47 10240 libbladeRF_test_async.exe
-a---- 4/28/2016 21:47 10752 libbladeRF_test_bootloader_recovery.exe
-a---- 4/28/2016 21:47 6656 libbladeRF_test_c.exe
-a---- 4/28/2016 21:47 12800 libbladeRF_test_cpp.exe
-a---- 4/28/2016 21:47 34816 libbladeRF_test_ctrl.exe
-a---- 4/28/2016 21:48 23040 libbladeRF_test_freq_hop.exe
-a---- 4/28/2016 21:48 11776 libbladeRF_test_fw_check.exe
-a---- 4/28/2016 21:48 10752 libbladeRF_test_open.exe
-a---- 4/28/2016 21:48 9728 libbladeRF_test_quick_retune.exe
-a---- 4/28/2016 21:48 23040 libbladeRF_test_repeated_stream.exe
-a---- 4/28/2016 21:48 22016 libbladeRF_test_repeater.exe
-a---- 4/28/2016 21:48 12800 libbladeRF_test_rx_discont.exe
-a---- 4/28/2016 21:48 17920 libbladeRF_test_scheduled_retune.exe
-a---- 4/28/2016 21:48 22016 libbladeRF_test_sync.exe
-a---- 4/28/2016 21:48 57344 libbladeRF_test_timestamps.exe
-a---- 4/28/2016 21:48 7168 libbladeRF_test_unused_sync.exe
-a---- 4/28/2016 21:48 7168 libbladeRF_test_version.exe
-a---- 4/28/2016 21:49 47616 libbladeRF_thunk_pcwin64.dll
-a---- 4/28/2016 21:48 113664 libusb-1.0.dll
-a---- 4/28/2016 21:48 82944 pthreadVC2.dll
-a---- 4/28/2016 21:48 24064 test_dc_calibration.exe

Hope this helps....

Post Reply