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.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.
Amériques
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- 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)