Problems with adding block from target link into a model
古いコメントを表示
Hi
I’m trying to add a block from the library TargetLink with the command: "add_block('tllib/Constant','mysys/nameofconstant','Position',[]).
But Matlab answers with:"??? Error using ==> add_block There is no block named 'tllib/Constant'.".
But if there already exist a model in the same folder containing a TargetLink block, then Matlab has no problem executing the command.
Do anyone have a idea how to fix this problem or how to make a work around.
//Patrik
採用された回答
その他の回答 (2 件)
Fangjun Jiang
2011 年 6 月 16 日
0 投票
Yep, this happens. What you need to do is to make sure that 'tllib' is loaded first. You can use load_system('tllib');
カテゴリ
ヘルプ センター および File Exchange で Programmatic Model Editing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!