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

12 ビュー (過去 30 日間)
MQOL
MQOL 2017 年 7 月 27 日
回答済み: Ethem 2017 年 9 月 21 日
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 Center および File ExchangeCommunications Toolbox についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by