Undefined variable "rtw"

2 vues (au cours des 30 derniers jours)
Nestor Garcia
Nestor Garcia le 29 Mar 2017
Commenté : Nestor Garcia le 4 Avr 2017
Hi,
I have a simulink model, with customized blocks. When I try to build them, I got the following error:
Undefined variable "rtw" or class "rtw.pil.ExecutionProfileRegistry.getRegistryForModel"
I followed this thread https://www.mathworks.com/matlabcentral/answers/178715-code-generation-error-during-building , but it did not work for me. If I restored the default path, my simulink libraries are not included and my blocks do not appear, so that is not useful.
Could you please help me out?
I am using Matlab 2011b 32 bit for windows 7 (64 bit).

Réponse acceptée

Astarag Chattopadhyay
Astarag Chattopadhyay le 4 Avr 2017
These errors may be arising due to either incomplete installation or the toolbox path not set correctly.
To confirm if the installation is complete, check if the folder TargetRegistry exists. Execute the following command:
>>ls(fullfile(matlabroot,'toolbox','coder','foundation','+RTW','@TargetRegistry'))
This should throw an error if a particular file or folder does not exist.
If you get an error, then there might have been installation problem. In this case, uninstall MATLAB Coder and reinstall it.
  1 commentaire
Nestor Garcia
Nestor Garcia le 4 Avr 2017
Hi, yes my installation was not completed. I missed simulink coder; after install it manually it worked.
Thanks for your time.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by