Errors while running adaptive cruise control model from website
現在この質問をフォロー中です
- フォローしているコンテンツ フィードに更新が表示されます。
- コミュニケーション基本設定に応じて電子メールを受け取ることができます。
エラーが発生しました
ページに変更が加えられたため、アクションを完了できません。ページを再度読み込み、更新された状態を確認してください。
古いコメントを表示
I an trying to run Adaptive Cruise control model from https://www.mathworks.com/help/mpc/ug/adaptive-cruise-control-using-model-predictive-controller.html
I have used the code provided by them but i'm getting the following error.
Error evaluating 'InitFcn' callback of MPC block (mask) 'mpcACCsystem/Adaptive Cruise Control System/MPC'. Callback string is 'impcblock_InitFcn'
Caused by:
- Can not resolve: mpcobj.
採用された回答
It requires the MPC toolbox. Do you have it? run
ver mpc
license inuse
9 件のコメント
yes, i do have the tool box
MATLAB Version: 9.6.0.1072779 (R2019a)
MATLAB License Number: 192331
Operating System: Microsoft Windows 10 Pro Version 10.0 (Build 18362)
Java Version: Java 1.8.0_181-b13 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
-----------------------------------------------------------------------------------------------------
Model Predictive Control Toolbox Version 6.3 (R2019a)
control_toolbox
matlab
simulink
The weblink is for R2020a. But I followed it in R2019a. No errors.
oh ok, even i'm using R2019a. Dont know where i'm making mistake
Run "license inuse" after that error to see if you do have the MPC license active.
Re-start MATLAB, try again starting from the addpath() command in the weblink.
The mpc license is not active after the error
so what is the exact output of "license inuse" after that error?
license inuse
control_toolbox
matlab
simulink
Fangjun Jiang
2020 年 4 月 24 日
編集済み: Fangjun Jiang
2020 年 4 月 24 日
I think that is the cause of the problem/error. You have the MPC toolbox installed but you couldn't check out a license for MPC. Your license is probably served on a license server. For whatever reason, you couldn't check it out. The code in the callback is trying to create a MPC object. If no error, the "license insue" should return those plus "mpc_toolbox".
Figure out the license issue, license('checkout','mpc_toolbox') and license('test','mpc_toolbox') might be useful.
thank you for your help
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Controller Creation についてさらに検索
タグ
参考
2020 年 4 月 24 日
2020 年 4 月 24 日
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
- América Latina (Español)
- Canada (English)
- United States (English)
ヨーロッパ
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
