How to set the correct path for "communications toolbox for rtl-sdr support package" at startup?
10 次查看(过去 30 天)
显示 更早的评论
Every time I open MATLAB and run a desktop-sdr simulink model I get the following message:
"The Path for 'Communications System Toolbox Support Package for RTL-SDR Radio' is not valid. To fix this issue, click 'Fix Support Package'. Simulink models that contain blocks, which use this support package will be closed. To continue without fixing the support package path, click 'Cancel'. "
I then click the provided 'Fix support package' button, Matlab restarts and the models now run perfectly.
I would like to fix the support package at startup. I assume this is done by setting the correct path for the toolbox. I have already added the 'sdrsetup' command to my 'startup.m' script at my startup folder (which is correctly set at startup), so at startup the console gives the message "Found and setup Communications System Toolbox Support Package for RTL-SDR Radio.". But the problem persist at every first run of simulink example model.
I have also added to the path the parent folder to rtlsdr_book_library. But there is something else missing. Should I add all its children folders to the path as well? How do I find the correct path to this support package?
0 个评论
回答(1 个)
Ethem
2017-9-21
You can add the following line to your startup.m:
addpath(fullfile(matlabroot, 'toolbox', 'comm', 'comm'), '-end')
This issue has been fixed in R2017b.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Communications Toolbox 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!