Undefined variable "rtw"

1 Ansicht (letzte 30 Tage)
Nestor Garcia
Nestor Garcia am 29 Mär. 2017
Kommentiert: Nestor Garcia am 4 Apr. 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).

Akzeptierte Antwort

Astarag Chattopadhyay
Astarag Chattopadhyay am 4 Apr. 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 Kommentar
Nestor Garcia
Nestor Garcia am 4 Apr. 2017
Hi, yes my installation was not completed. I missed simulink coder; after install it manually it worked.
Thanks for your time.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by