Clear Filters
Clear Filters

For "Characterize Battery Cell for Electric Vehicles" the "copy command" does not lead to the same content as the website example

10 views (last 30 days)
reading through that example, readers get the impression that there is some HPPC test data available, and the code blocks on that page suggest it can be plotted.
however, when i copy the command:
openExample('simscapebattery/BatteryCellCharacterizationForElectricVehiclesExample')
and run it, it opens a similar, but not identical exmaple. Even the first code block in the webpage fails with:
Unrecognized function or variable 'plotBatteryTestData'.
There is a LiveScirpt CellCharacterizationHPPC.mlx, but opening that shows that the HPPC data is "generated" from a cell model. The problem is if the cell model used for "generating" the HPPC data dosn't have charge dynmics characterized, the HPPC generated data will not have relxation periods and other critical dynamics that would be present in HPPC test of a real cell. I have looked at all the "pre-charcterized parts" for the Simscape battery Cell (table-based), and none seem to have theCharge Dynamics params available. See my previous question about that here.
>> ver
-----------------------------------------------------------------------------------------------------
MATLAB Version: 9.14.0.2206163 (R2023a)
-----------------------------------------------------------------------------------------------------
MATLAB Version 9.14 (R2023a)
Simulink Version 10.7 (R2023a)
Embedded Coder Version 7.10 (R2023a)
MATLAB Coder Version 5.6 (R2023a)
Simscape Version 5.5 (R2023a)
Simscape Battery Version 1.1 (R2023a)
Simscape Electrical Version 7.9 (R2023a)
Simulink Coder Version 9.9 (R2023a)
Simulink Test Version 3.8 (R2023a)
Stateflow Version 10.8 (R2023a)
Are those versions somehow getting me a different version of this example? If so, how can I get the updated version of this example without updating my license?

Accepted Answer

Steven Lord
Steven Lord on 30 Mar 2024
The version of the example on the website is from the most recent release, which as I type this is release R2024a. You indicated you're using release R2023a. I have not checked to determine if the example has changed in either release R2023b or R2024a, but from what you described I suspect that it has.
In order to use the example from release R2024a you're going to need to use release R2024a.
Or you could compare the results from the example in your installation with the example from the online documentation for release R2023a. To do the latter, click on Support at the top of this page then look on the right side of the page for "Other Releases". In that list of other releases select R2023a. Navigate to the Simscape Battery documentation then click on Examples and find the example in the list.

More Answers (0)

Categories

Find more on Propulsion and Power Systems in Help Center and File Exchange

Tags

Products


Release

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!