![](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.
11 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Xiangchun
el 13 de Feb. de 2024
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 comentarios
Ver también
Categorías
Más información sobre Battery Pack Modeling en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!