필터 지우기
필터 지우기

Undefined variable "rtw"

조회 수: 3 (최근 30일)
Nestor Garcia
Nestor Garcia 2017년 3월 29일
댓글: Nestor Garcia 2017년 4월 4일
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
Astarag Chattopadhyay 2017년 4월 4일
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