Invalid Simulink object name: rtwshared

21 次查看(过去 30 天)
I'm trying to build a model for deployment to an Android device using the Simulink Support Package for Android Devices. I built and deployed one of the referenced models successfully as a test, however when trying to build the top model I get the following error:
Invalid Simulink object name: rtwshared
Caused by:
No block diagram 'rtwshared' is loaded.
My understanding is that rtwshared is generated as part of the build process and is stored in the _sharedutils folder. However, checking that folder shows that it does not exist, and I am unsure why it has not been created and what I can do to resolve this issue.
Many thanks for any help and further troubleshooting steps!
  3 个评论
Sashi Tiwari
Sashi Tiwari 2020-2-13
Hello Edward, Have you got the answer?
Edward Powlesland
Edward Powlesland 2020-2-24
Hello,
Sorry for the delay - I contacted MATLAB Support, and they said it is due to a current bug when building a top model containing model reference blocks. My issue was resolved by copying the referenced models into sub-system blocks.
Hopefully this resolves your problem also. I realise that this is only a workaround, apparently MathWorks are working on releasing a fix in a future update.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Modeling 的更多信息

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by