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

조회 수: 4 (최근 30일)
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!

채택된 답변

Damien
Damien 2014년 11월 4일
편집: Damien 2014년 11월 4일
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!

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Electrical Sensors에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by