MATLAB Answers


How to connect generic battery to an electrical circuit which is created using Simscape??

Asked by Mirza
on 15 Nov 2014
Latest activity Commented on by Mirza
on 4 Jan 2015
I am trying to create a dcdc converter and for some reasons need the battery in the circuit. But it is not getting connected with the circuit elements.


Sign in to comment.

2 Answers

Answer by Javier Gazzarri on 4 Jan 2015
 Accepted Answer

Hello, Mirza,
Yes, that is possible. There are a couple of options:
1) Use SimPowerSystems Simscape Components. The blocks in this library are Simscape compatible, and there is a battery block that may suit your needs. Alternatively, you can download a battery cell block from here:
and parameterize its equivalent circuit using experimental data if you have it using Parameter Estimation.
2) Use the Interface Elements in the SimPowerSystems Specialized Technology library. Those blocks allow you to connect SimPowerSystems Specialized Technology with Simscape blocks.
Please let me know if this answers your question.

Answer by Javier Gazzarri on 20 Dec 2014

Hello, Mirza,
Can you please attach a screenshot of your model so that I can take a look? Your problem is typically related to attempting to connect blocks from different domains. Are you combining Simscape with SimPowerSystems?

  1 Comment

hello Javier,
thanks for your response. Yes I am trying to combine Simscape with Simpowersystems. Is it possible??

Sign in to comment.