How can i add simscape block programmatically

11 ビュー (過去 30 日間)
Sam
Sam 2019 年 8 月 29 日
回答済み: Steve Miller 2020 年 8 月 17 日
I konw how to add the basic simulink block programmatically. But when i use the same method, there is always something went wrong with the path name of the block source. How should i specifiy the name of the block source path properly?
add_block('simscape/Electrical/Specialized Power Systems/Fundamental Blocks/Mutual Inductance','Model_auto_generation_Mutual_inductance_considered')
Unbenannt.png
  2 件のコメント
Yifeng Tang
Yifeng Tang 2019 年 11 月 26 日
If you open Simulink Library and hover the mouse over the block you want, the proper block path will show up.
Sam
Sam 2019 年 11 月 26 日
Hi Yifeng,
Thanks for your answer. It worked.

サインインしてコメントする。

回答 (1 件)

Steve Miller
Steve Miller 2020 年 8 月 17 日
Looks like Yifeng's comment answered your question:
If you open Simulink Library and hover the mouse over the block you want, the proper block path will show up.
If you have a follow-up question, let us know.

カテゴリ

Help Center および File ExchangeFoundation and Custom Domains についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by