![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1616078/image.png)
How can we set cell parameter when we build a pack through Battery Builder APP? Cell parameters includes OCV, R0, R1 and so on.
10 次查看(过去 30 天)
显示 更早的评论
I builed a pack through Battery Builder APP following the instruction of "Get Started with Battery Builder APP". Then I want to iuput the cell parameter with my own tested data, including SOC, OCV, R0, R1 and so on. However I don't know how to achieve this target.
0 个评论
回答(1 个)
Xiangchun
2024-2-13
Hi Chuan,
A scalable way of managing your own ECM parameters for the Battery Builder generated battery block is to leverage an automatically generated centralized script for parameterization.
If you build a battery pack using the Battery Builder App, during the last step of "Create Battery Library," change how you want to define the "Mask Parameters" from "NumericValues" to "VariableNamesByType" or "VariableNamesByInstance".
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1616078/image.png)
Similarly, if the battery pack block is generated by API, in the buildBattery call to generate the block, you can change how you want to define MaskParameters. For example,
buildBattery(pack,LibraryName="batteriesVariableNames",...
MaskInitialTargets="VariableNamesByInstance",...
MaskParameters="VariableNamesByType")
When you specify the MaskParameters argument as "VariableNamesByType" or "VariableNamesByInstance", the function generates a parameterization script that you can use to manage the run-time parameters of the modules and cells inside your system.
For more details, please refere to Manage Battery Run-Time Parameters with Centralized Script - MATLAB & Simulink (mathworks.com).
To read more about the buildBattery function, especially the "MaskParameters" name-value explanation, please see Build custom library blocks from battery objects - MATLAB buildBattery (mathworks.com).
Best wishes,
Xiangchun
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Battery Pack Modeling 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!