How can I use the 'model block' (or similar) in Simulink to recognize SimPowerSystems ports?

2 visualizaciones (últimos 30 días)
I am interested in creating a model that consists of several references to other models that use the SimPowerSystems toolbox. In the 'top sheet' of the model, I would like to connect all of my reference models using electrical connections from the SimPowerSystems toolbox, as well as Simulink signal connections. When using the 'model block' in Simulink, the model block only recognizes Simulink signals. Is there another block I can use to achieve what I want?
As an example, I have created a model called CellEx.slx. This model contains a battery, two electrical ports to connect the battery, and one signal port which contains information about the battery's state of charge, etc... In the 'top sheet' model, ThreeCellEx.slx, I have added three 'model blocks' which reference 'CellEx.slx'. As you can see from the attachment, the only port that I can connect to is the signal port. The electrical ports are not available.
Thanks in advance for your help!

Respuesta aceptada

Damien
Damien el 4 de Nov. de 2014
Editada: Damien el 4 de Nov. de 2014
One solution to this problem is to create your own library. I generally followed the directions given here:
Step 3 didn't work for me, so I skipped it.
However, this YouTube video also helped:
This solution works ok - I need to update the simulink library every time I make a change, but it is not terrible. If anyone has any better ideas, please let me know.
Thanks!

Más respuestas (0)

Categorías

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