How to set the correct path for "communications toolbox for rtl-sdr support package" at startup?

13 views (last 30 days)
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?

Answers (1)

Ethem
Ethem on 21 Sep 2017
You can add the following line to your startup.m:
addpath(fullfile(matlabroot, 'toolbox', 'comm', 'comm'), '-end')
This issue has been fixed in R2017b.

Categories

Find more on Communications Toolbox in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!