Invalid Simulink object name: rtwshared

21 visualizzazioni (ultimi 30 giorni)
Edward Powlesland
Edward Powlesland il 6 Feb 2020
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 Commenti
Sashi Tiwari
Sashi Tiwari il 13 Feb 2020
Hello Edward, Have you got the answer?
Edward Powlesland
Edward Powlesland il 24 Feb 2020
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.

Accedi per commentare.

Risposte (0)

Prodotti


Release

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by