Error while loading model/component from custom library in simulink file

2 ビュー (過去 30 日間)
Swapnil Zanwar
Swapnil Zanwar 2021 年 6 月 11 日
回答済み: Kiran Felix Robert 2021 年 6 月 23 日
  1. I have created a custom library (have library of own models) and added it to 'simulink browser'
  2. I am trying to call the model/component using matlab command window using 'add_block' into simulink file
  3. But it throws an error 'There is no block named ...(the command along with component name)'

回答 (1 件)

Kiran Felix Robert
Kiran Felix Robert 2021 年 6 月 23 日
Hi Swapnil,
You need to specify the complete path to the block in the add_block Command. Refer the documentation of the add_block command to see various ways of finding out the complete path to the block.

カテゴリ

Help Center および File ExchangeModeling についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by