![](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!