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?

回答(1 个)

Ethem
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.

类别

Help CenterFile Exchange 中查找有关 Communications Toolbox 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by