필터 지우기
필터 지우기

Problem with MPC toolbox (compiler?)

조회 수: 5 (최근 30일)
Sara
Sara 2013년 11월 20일
댓글: Arkadiy Turevskiy 2018년 8월 15일
Hi I am trying to use Simulink mpc toolbox for the first time. I tried to run the simplest example I found http://www.mathworks.co.uk/help/mpc/examples/designing-a-model-predictive-controller-in-simulink.html but I cannot linearize the plant while I try to design the controller. It seems a problem related with the compiler but I have Microsoft Visual C++ 2012 Professional installed on my computer so it should work.
After running this code:
if ~mpcchecktoolboxinstalled('simulink')
disp('Simulink(R) is required to run this example.')
return
end
open_system('mpc_linearization');
open_system('mpc_linearization/MPC Controller');
and clicking "design..." and specify 1/1/1 and clicking "ok"
It gives this error:
Error using construct_error (line 110)
Library failed to build. Cannot continue build process.
- The model mpc_linearization could not be compiled to extract the operating point information. Please sync the operating point information from the model before linearizing the model.
Any idea on how I can solve this? My MATLAB version is 8.1.0.604 (R2013a) My operating system: Microsoft Windows 7 Version 6.1 (Build 7601: Service Pack 1)
Thank you
Sara
  댓글 수: 2
Alexander Andrea
Alexander Andrea 2018년 3월 16일
Hi Sara weer you able to resolve this issue i have the same problem
Sara
Sara 2018년 3월 16일
Hi Alexander, yes this was some time ago but if I remember correctly I installed Microsoft Visual Studio and then the simulation run smoothly. Good luck

댓글을 달려면 로그인하십시오.

답변 (1개)

Arkadiy Turevskiy
Arkadiy Turevskiy 2018년 8월 15일
Answer posted in the last comment from Sara.
  댓글 수: 2
Walter Roberson
Walter Roberson 2018년 8월 15일
However, the original poster had Microsoft Visual C++ 2012 Professional which is part of Visual Studio Professional. So which version of VS is needed for the code to work?
Arkadiy Turevskiy
Arkadiy Turevskiy 2018년 8월 15일
Best thing to do is to contact support. Hard to tell with limited info what the exact issue is. Thanks

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Simulation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by