Protected Model Code Generation

3 ビュー (過去 30 日間)
EddieM
EddieM 2017 年 11 月 1 日
回答済み: EddieM 2017 年 11 月 8 日
Hi
I'm trying to use a protected subsystem as part of a model. I've been able to protect the subsystem fine and am trying to generate code for the whole model but get the following error:
Error encountered while executing custom build hooks MemMapVariableCheck(modelName);: Error due to multiple causes. Caused by: Error due to multiple causes. Error due to multiple causes. Detected recursive call to slbuild, which might indicate invalid simultaneous model builds. If only one model build was in progress, and if you previously used dbquit while in the MATLAB debugger or pressed Ctrl-C during the build process, please restart the model build. Error while bringing model references of model Top_Model up to date: Detected recursive call to slbuild, which might indicate invalid simultaneous model builds. If only one model build was in progress, and if you previously used dbquit while in the MATLAB debugger or pressed Ctrl-C during the build process, please restart the model build. Unable to resolve workspace variables for block diagram 'Top_Model'
So I've converted the subsystem to a referenced subsystem and then created a protected model and selected the code generation option, which generates the code okay. However when I include the protected model in the main model, I get those errors. Happens if I use my own target or the .ert target as well. I've used the same method in the past and it's worked. Any help would be greatly appreciated. Thanks
  1 件のコメント
EddieM
EddieM 2017 年 11 月 2 日
I've tried using the 'sldemo_mdlref_bus' demo as well and am getting the same error. Can't seem to find any other help online either

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

採用された回答

EddieM
EddieM 2017 年 11 月 8 日
Reinstalled Matlab and that resolved the issue

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDeployment, Integration, and Supported Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by