How to customize a library with battery models built by batteryBuilder app?

5 views (last 30 days)
Hi,
I'm trying to add a custom library to the Library Bowser by using this instruction: Add Libraries to Library Browser and Quick Insert.
The library I want to create contains battery models built with the BatteryBuilder app. However, these battery models need to reference certain package files located in the package folders. Since the package folder path can’t be added globally, I’m wondering if there’s a way to add a BatteryBuilder-based battery model library to a custom library, so that I can access it with Library Browser.
Thanks in advance for your help.

Answers (1)

Xiangchun
Xiangchun on 19 Aug 2025
Hi @Ye,
We need to add the folder (and its subfolders), containing the files and folders automatically generated by the Battery Builder from Simscape Battery, including the namespace folders, to the MATLAB search path.
See more details on Simscape namespace folder for custom block libraries: Building Custom Block Libraries - MATLAB & Simulink.
See more details on MATLAB search path:
Best wishes,
Xiangchun

Products


Release

R2025a

Community Treasure Hunt

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

Start Hunting!