
Open my battery pack in simulink
6 views (last 30 days)
Show older comments
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
0 Comments
Accepted Answer
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
More Answers (0)
See Also
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!