Battery from library does not connect!

I have been trying to introduce a simple battery in my Simulink model. The 2 batteries included in the Matlab library cannot connect on any node. These batteries are the "elec_lib/Sources/Battery" and "elec_lib/Sources/Battery(Table-Based)". The help button for these blocks does not work either. Can anyone help?

5 件のコメント

Walter Roberson
Walter Roberson 2018 年 11 月 26 日
You need to be careful about the "domain" of the blocks . Simulink regular blocks cannot connect to any of the Simscape packages without aa converter block . It can get frustrating at times, trying to find the right variety of blocks that look like they do the same thing but don't .
Phivos Koumides
Phivos Koumides 2018 年 11 月 26 日
Thanks Walter.
Where can I find the "domain" of individual blocks?
Walter Roberson
Walter Roberson 2018 年 11 月 26 日
Domains are mostly talked about with respect to Simscape. Different colors are used for different domains
The elec_lib entries you are using are part of Simscape Electrical
But even basic entries like resistors can end up being from different domains if you are not careful. You have to look carefully towards the root of the block tree to see which source is involved for blocks. I am not currently aware of any means to query an existing block as to its domain (but I have not investigated for that purpose.)
Phivos Koumides
Phivos Koumides 2018 年 11 月 27 日
Thanks Walter. Now it's more clear to me.
Any idea why I only get black connection lines and block icons, even though the domain styles are enabled?
Walter Roberson
Walter Roberson 2018 年 11 月 27 日
sorry I do not have any ideas about that .

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

回答 (1 件)

Sabin
Sabin 2025 年 2 月 1 日

0 投票

Trying to directly connect two different technologies is not working. Simscape Electrical has two technologies, Simscape and Specialized Power Systems. It is not possible to directly connect them. Moreover, mixing the two technologies can introduce difficulties for the solver. It is better to stick with only one technology, there are similar blocks in both technologies.

コミュニティ

カテゴリ

ヘルプ センター および File ExchangeSimulink についてさらに検索

製品

リリース

R2018b

質問済み:

2018 年 11 月 26 日

回答済み:

2025 年 2 月 1 日

Community Treasure Hunt

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

Start Hunting!

Translated by