How can i add simscape block programmatically

10 visualizaciones (últimos 30 días)
Sam
Sam el 29 de Ag. de 2019
Respondida: Steve Miller el 17 de Ag. de 2020
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 comentarios
Yifeng Tang
Yifeng Tang el 26 de Nov. de 2019
If you open Simulink Library and hover the mouse over the block you want, the proper block path will show up.
Sam
Sam el 26 de Nov. de 2019
Hi Yifeng,
Thanks for your answer. It worked.

Iniciar sesión para comentar.

Respuestas (1)

Steve Miller
Steve Miller el 17 de Ag. de 2020
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.

Categorías

Más información sobre Foundation and Custom Domains en Help Center y File Exchange.

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by