Not able to run the Matlab example in Rapid Accelerator mode and also error evaluating 'InitFcn' callback of block_diagram

2 ビュー (過去 30 日間)
Hi, I am trying to run the following Matlab example in 2023a. https://in.mathworks.com/help/satcom/ug/gps-hdl-acquisition-and-tracking-using-cacode.html
on running the code i am getting a error -
Error:Unable to build a standalone executable to simulate the model 'gpshdlAcquisitionTracking' in rapid accelerator mode.
Caused by:
Error evaluating 'InitFcn' callback of block_diagram 'gpshdlAcquisitionTracking'.
Callback string is 'gpshdlAcquisitionAndTrackingUsingCACodeInit;'
Unable to resolve the name 'matlabshared.internal.gnss.readSEMAlmanac'.
Please help solve this.

採用された回答

Shashikanth Bonamonu
Shashikanth Bonamonu 2023 年 9 月 20 日
Hi Rezim,
The error may be because the required folders are not available on the MATLAB search path. Run the following command in the MATLAB command window to add the folder to search path:
addpath([matlabroot '\toolbox\shared\gnss\gnss'])
Then run the example as you previously did. Do reply if the issue doesn't get resolved.
  1 件のコメント
Rezim es
Rezim es 2023 年 9 月 23 日
Hi Shashikanth,
Thanks for your reply. Adding the above command showed missing files from the Insatallation path. I went to manage add-ons and reinstalled both Wireless HDL Toolbox and Satellite Communication Toolbox. And it worked. Thanks again.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeFPGA, ASIC, and SoC Development についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by