Simscape Model source code

9 visualizaciones (últimos 30 días)
Ryan Goodfellow
Ryan Goodfellow el 18 de Nov. de 2016
Comentada: liqun fang el 25 de Abr. de 2022
I have created a Simscape model by dragging dropping and connecting various components from the electrical foundation library. Now I am interested in looking at the underlying Simscape language source code of the interconnected components. This is similar to how I use OpenModelica for example. How do I do this? I have figured out how to view the source for a single component, but not the entire composition that is in my .slx file. The underlying goal here is to have a look at the DAEs and their interconnections.

Respuestas (2)

Lucas Lebert
Lucas Lebert el 6 de Dic. de 2016
Hi Ryan, you can access the source code of every block from the Simscape Foundation Library->Electrical, if you double click on the block and click on the link "Source Code". However this is not possible for blocks of the Simscape Electronics library. There is no option to access the source code of these blocks. The functionality of these blocks is explained in detail in the MATLAB documentation though.
  2 comentarios
liqun fang
liqun fang el 25 de Abr. de 2022
Hey , have you solved this problem?

Iniciar sesión para comentar.

Rafa Fernan
Rafa Fernan el 21 de Nov. de 2017
Hi Ryan,
I'm looking for the same topic, how I can get the DAE equation system of my simscape system. Did you get it Ryan?
Regards Rafa


Más información sobre Electrical Sensors en Help Center y File Exchange.


Community Treasure Hunt

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

Start Hunting!

Translated by