Undefined variable "rtw"

2 次查看(过去 30 天)
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).

采纳的回答

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

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by