Hauptinhalt

simulateHPPCTest

Plot HPPC test measured voltage against simulated voltage of equivalent circuit model

Since R2025a

Description

simulateHPPCTest(circuitModel,myHppcTest) plots the measured voltage for the entire HPPCTest object, myHpccTest, and compares it against the simulated voltage for the ECM object, circuitModel, with estimated parameters.

example

Examples

collapse all

This example shows how to plot the measured voltage for the HPPC test data inside an ECM object and compare it against the simulated voltage of the ECM object with estimated parameters.

Open the DownloadBatteryData example and load the required HPPC data obtained for a BAK 2.9 Ah battery cell at 25 °C. This 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("testDataBAKcells/hppcDataBAKcell25degC.mat")

Store the HPPC data inside an HPPCTest object by using the hppcTest function. 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.

hppcExp = hppcTest(hppcData,...
    TimeVariable="time (s)",...
    VoltageVariable="voltage (V)",...
    CurrentVariable="current (A)");

Fit the HPPC data in the hppcExp object to a battery equivalent circuit model (ECM). To fit the data and create an ECM object, use the fitECM function.

batteryEcm = fitECM(hppcExp);

Analyze how the function performed the fit on the ECM for the entire test data by using the simulateHPPCTest function.

simulateHPPCTest(batteryEcm,hppcExp);

Plot of the simulated and measured HPPCTest voltage. The X axis represents time, in minutes. The Y axis represents the voltage, in volts.

Input Arguments

collapse all

Equivalent circuit model used to obtain simulated voltage, specified as an ECM object.

Hybrid pulse power characterization (HPPC) test, specified as an HPPCTest object.

Version History

Introduced in R2025a