Open my battery pack in simulink

6 views (last 30 days)
Lamia
Lamia on 4 Mar 2025
Commented: Lamia on 10 Mar 2025
I built a new battery pack in the battery builder application. Now, I want to open this battery in simulink in order to do some simulations on my battery pack but I don't know how. Can anyone help? Explain for me how to open my battery pack in simulink. Because some say that there is a button 'Generate model' in the battery builder app but i don't have it.
Thanks

Accepted Answer

Epsilon
Epsilon on 6 Mar 2025
Hi Lamia,
After creating the battery objects, they need to be converted into Simscape models to be used in Simulink block diagrams.
To create a library that contains the Simscape Battery model of the Pack object you have created. Select the Pack object in the ‘Battery Browser’ panel. Then, under the ‘Battery Builder’ tab, in the ‘Library’ section of the toolstrip, select ‘Create Library’.
Please refer to the below image for the ‘Create Library’ button location:
In the new window that appears, specify the folder in which you want to save the library, the library name, and whether you want to generate scripts with all the run-time parameters and initial conditions required for simulation. Click ‘Create Library’ to generate the library model of your battery object in the specified folder. Open this model to access your battery objects as Simscape blocks.
To programmatically build a more detailed model of a battery pack and save it as a Simscape model, please refer to the following documentation: https://www.mathworks.com/help/simscape-battery/ug/build-battery-pack-from-pouch-cells.html#:~:text=%22Lumped%22.-,Build%20Simscape%20Model%20for%20the%20Battery%20Objects,-After%20you%20created
  1 Comment
Lamia
Lamia on 10 Mar 2025
Sometimes after creating the library, i proceed to change some parameters in the battery builder application. How can i update my battery pack in simscape model after modification without the necessary to redo everything from the beginning?
Thank you for your help
Lamia

Sign in to comment.

More Answers (0)

Categories

Find more on Energy Storage in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!