addHPPCTest
Description
addHPPCTest(
adds the suite,newHPPCTest)HPPCTest object, newHPPCTest, to the
HPPCTestSuite object, suite.
addHPPCTest(
adds the suite,newHPPCTest,Temperature=temp)HPPCTest object, newHPPCTest, to the
HPPCTestSuite object, suite, and overwrites the
temperature value for all pulses in newHPPCTest with
temp.
Examples
This example shows how to add the data of an HPPCTest
object inside an HPPCTestSuite object.
Open the DownloadBatteryData example to load the required HPPC
data obtained for a BAK 2.9 Ah battery cell at 0, 10, and 25 °C. Each data consists of a
table with three columns. The columns of the table refer to time, voltage, and current
values, respectively.
openExample("simscapebattery/DownloadBatteryDataExample")Load the data and store each data inside an HPPCTest object by
using the hppcTest function. You can use this object
to view the data, add or edit breakpoints, add or remove pulses, and include additional
information such as state of charge and capacity. The HPPC data is a table, so you must
also specify each column name by using the TimeVariable,
VoltageVariable, and CurrentVariable arguments.
These names must match the names of the columns in the hppcData
table.
load("testDataBAKcells/hppcDataBAKcell0degC.mat") hppcExp0degC = hppcTest(hppcData,TimeVariable="time (s)",... VoltageVariable="voltage (V)",... CurrentVariable="current (A)",... Temperature=zeros(numel(hppcData(:,1)),1)); load("testDataBAKcells/hppcDataBAKcell10degC.mat") hppcExp10degC = hppcTest(hppcData,TimeVariable="time (s)",... VoltageVariable="voltage (V)",... CurrentVariable="current (A)",... Temperature=repmat(10,numel(hppcData(:,1)),1)); load("testDataBAKcells/hppcDataBAKcell25degC.mat") hppcExp25degC = hppcTest(hppcData,TimeVariable="time (s)",... VoltageVariable="voltage (V)",... CurrentVariable="current (A)",... Temperature=repmat(25,numel(hppcData(:,1)),1));
Create a data container for the three HPPCTest objects by using the
hppcTestSuite function.
hppcSuite1 = hppcTestSuite([hppcExp0degC;hppcExp10degC;hppcExp25degC]); disp(hppcSuite1.SuiteSummary)
TestID Test Temperature NumPulses
______ ________________________________________ ___________ _________
1 1×1 simscape.battery.parameters.HPPCTest 0 18
2 1×1 simscape.battery.parameters.HPPCTest 10 18
3 1×1 simscape.battery.parameters.HPPCTest 25 18 The addHPPCTest function is useful when you want to add the
test data to an existing HPPCTestSuite object. For this example, you
load the HPPC data obtained for a BAK 2.9 Ah battery cell at 35 °C and store it inside
another HPPCTest object.
load("testDataBAKcells/hppcDataBAKcell35degC.mat") hppcExp35degC = hppcTest(hppcData,TimeVariable="time (s)",... VoltageVariable="voltage (V)",... CurrentVariable="current (A)",... Temperature=repmat(35,numel(hppcData(:,1)),1));
Add the data from this HPPCTest object to the test container,
hppcSuite1, by using the addHPPCTest
function.
addHPPCTest(hppcSuite1,hppcExp35degC); disp(hppcSuite1.SuiteSummary)
TestID Test Temperature NumPulses
______ ________________________________________ ___________ _________
1 1×1 simscape.battery.parameters.HPPCTest 0 18
2 1×1 simscape.battery.parameters.HPPCTest 10 18
3 1×1 simscape.battery.parameters.HPPCTest 25 18
4 1×1 simscape.battery.parameters.HPPCTest 35 18 Input Arguments
Hybrid pulse power characterization (HPPC) test suite to update with the new
HPPCTest object, specified as an HPPCTestSuite
object.
HHPPC test data to add to the HPPCTestSuite object, specified as an
HPPCTest object.
Temperature value, specified as a scalar or vector.
Data Types: double
Version History
Introduced in R2025a
See Also
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)