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

10 Ansichten (letzte 30 Tage)
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?

Antworten (1)

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

Kategorien

Mehr zu Communications Toolbox finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by