"Invalid MEX-file" error while setup of "Communications Toolbox Support Package for USRP Radio" Add-on

25 ビュー (過去 30 日間)
Hello all,
I want to use my Ettus research USRP B210 with Communications Toolbox Support Package for USRP Radio Addon.
While setup and tap "Test radio connection" window, I get error:
"Unable to load screen sdru.internal.hwsetup.screen.TestRadioConection
Details: Invalid MEX-file
'C:\ProgramData\MATLAB\SupportPackages\R2022a\toolbox\shared\sdr\sdru\sdrumex\usrp_interface_mex.mexw64': The specified procedure could not be found.":
Error
I already reinstall MATLAB and USRP-Addon lot of times. Install the latest (all) visual C++ redistributable.
"usrp_interface_mex.mexw64" file exists and is in the right location.
By entering “setupsdru” nothing happens.
By entering "findsdru" come the same error:
findsdru
By using "Dependency walker" I see no significant information:
dependency walker
How can I solve it?
Thank you very much in advice!
Best regards,
Nik
Device configuration:
Device name PC2
Processor Intel(R) Core(TM) i5-6440HQ CPU @ 2.60GHz 2.60 GHz
Installed RAM 16,0 GB (15,9 GB usable)
System type 64-bit operating system, x64-based processor
Pen and touch No pen or touch input is available for this display
Windows configuration:
Edition Windows 11 Pro
Version 21H2
Installed on ‎26/‎04/‎2022
OS build 22000.795
Experience Windows Feature Experience Pack 1000.22000.795.0
MATLAB configuration:
MATLAB Version: 9.12.0.1975300 (R2022a) Update 3
MATLAB License Number: 1108101
Operating System: Microsoft Windows 11 Pro Version 10.0 (Build 22000)
Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
-----------------------------------------------------------------------------------------------------
MATLAB Version 9.12 (R2022a)
Simulink Version 10.5 (R2022a)
5G Toolbox Version 2.4 (R2022a)
Audio Toolbox Version 3.2 (R2022a)
Communications Toolbox Version 7.7 (R2022a)
DSP HDL Toolbox Version 1.0 (R2022a)
DSP System Toolbox Version 9.14 (R2022a)
Deep Learning Toolbox Version 14.4 (R2022a)
Fixed-Point Designer Version 7.4 (R2022a)
LTE Toolbox Version 3.7 (R2022a)
MATLAB Coder Version 5.4 (R2022a)
MATLAB Compiler Version 8.4 (R2022a)
Navigation Toolbox Version 2.2 (R2022a)
Phased Array System Toolbox Version 4.7 (R2022a)
RF Blockset Version 8.3 (R2022a)
RF PCB Toolbox Version 1.1 (R2022a)
RF Toolbox Version 4.3 (R2022a)
Radar Toolbox Version 1.2 (R2022a)
Signal Processing Toolbox Version 9.0 (R2022a)
Statistics and Machine Learning Toolbox Version 12.3 (R2022a)
UAV Toolbox Version 1.3 (R2022a)
WLAN Toolbox Version 3.4 (R2022a)
Wireless HDL Toolbox Version 2.4 (R2022a)
Wireless Testbench Version 1.0 (R2022a)
  2 件のコメント
Walter Roberson
Walter Roberson 2022 年 8 月 1 日
you might have to install the Microsoft Visual Studio Runtime Redistributable .
In some cases you need to go back to an older redistributable as well .
Nik Rocky
Nik Rocky 2022 年 8 月 2 日
Hello Walter,
thank you for your answer. I have already installed all MVCR (via chokolatey):
But it not helps =(

サインインしてコメントする。

採用された回答

Nik Rocky
Nik Rocky 2022 年 8 月 10 日
編集済み: Nik Rocky 2022 年 8 月 10 日
Hello, I solve a Problem.
Uninstall UHD package
Open Dependency Walker inside of MATLAB: ! D:\path\to\dependencywalker\depends.exe and look for dependence of error MEX File (in my case usrp_interface_mex.mexw64)
Bow for dlls what are missed, specially for path of them. Lot of DLL was missing in folder system32, SysWOW64, C:\ProgramData\MATLAB\SupportPackages... sometime you just have to copy from System 32 to SupportPackages... or reverse.
You can also install MATLAB and Add-on on different PCs and if the package works on another one – you can compare dependencies on working PC and fault PC (with WinMerge ex.).
Good luck!
  1 件のコメント
evelyn
evelyn 2023 年 11 月 9 日
hi! I have the same problem. I use Matlab 2023a.
Do you mean that I do not need to install UHD on PC?
Do I need to install Labview?
I use Dependency Walker open error MEX File (in my case usrp_interface_mex.mexw64) and it shows below:

サインインしてコメントする。

その他の回答 (2 件)

bowie wang
bowie wang 2022 年 8 月 12 日
編集済み: bowie wang 2022 年 8 月 29 日
Hello there,
I have the same issue with yours. But, after I update all the required toolboxs of Communications Toolbox for USRP Radio, i.e.,
Communication Toolbox, DSP System Toolbox and Signal Processing Toolbox,
some missing APIs are installed back to MATLAB/R2021b/bin/win64, and the problem no longer exist.
Anyway, I really appreciate your effort, it really helps a lot, Thanks!!

Weixi Xiong
Weixi Xiong 2022 年 7 月 28 日
I have this problem as well when using MATLAB R2021b. But problem solved when I switched to MATLAB R2021a.
Hopefully this could work for you as well!
  1 件のコメント
Nik Rocky
Nik Rocky 2022 年 8 月 1 日
Thank you for the answer. I have installed R2021a but nothing changes. Looking forward for solution.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeCommunications Toolbox についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by