Where is LiBatteryElements library that will work with R2017a?

2 visualizzazioni (ultimi 30 giorni)
  • I am trying to run the R2012b sc_lithium_cell_1RC.mdl under R2017a. When I try and run I get the following errors.
  • Multiple compilation errors detected while compiling ssc_lithium_cell_1RC.
  • Caused by:
  • ['ssc_lithium_cell_1RC/Lithium Cell (1RC equivalent circuit model)/C1']: Cannot find parameter 'i'. Please run ssc_build if you have made changes to Simscape file or if you are upgrading to a new version of Simscape.
  • ['ssc_lithium_cell_1RC/Lithium Cell (1RC equivalent circuit model)/Em_table']: Cannot find parameter 'Qe'. Please run ssc_build if you have made changes to Simscape file or if you are upgrading to a new version of Simscape.
  • ['ssc_lithium_cell_1RC/Lithium Cell (1RC equivalent circuit model)/R0']: Cannot find parameter 'i'. Please run ssc_build if you have made changes to Simscape file or if you are upgrading to a new version of Simscape.
  • ['ssc_lithium_cell_1RC/Lithium Cell (1RC equivalent circuit model)/R1']: Cannot find parameter 'i'. Please run ssc_build if you have made changes to Simscape file or if you are upgrading to a new version of Simscape.
  • Subsequently I try to run the ssc_build on LiBatteryElements, BUT... that library doesn't exist in 2012b. However it is in 2010b. I copied it into my working directory and rerun sec_build. Now I see this:
  • Failed to generate 'LiBatteryElements_lib'
  • Caused by:
  • Error using LiBatteryElements.C_table>equations (line 43)
  • Function, tablelookup, is wrong. Please check 1) whether input data points have correct sizes; 2) query
  • values are scalar; 3) query values and table data have the commensurate units; and 4) constants or compile
  • time parameters are passed to interpolation and extrapolation argument.
  • Argument 1 = [5x1 double]
  • Argument 2 = {[273.1500 293.1500 313.1500], 'K'}
  • Argument 3 = {[5x3 double], 'F'}
  • Argument 4 = [1x1 double]
  • Argument 5 = {[1x1 double], 'C'}
  • SOC_Table = [5x1 double]
  • Temp_Table = {[273.1500 293.1500 313.1500], 'K'}
  • C_Table = {[5x3 double], 'F'}
  • SOC = [1x1 double]
  • T = {[1x1 double], 'C'}
  • I looked at the code but could not tell what was wrong.
  • Any ideas?
  1 Commento
mohan kanth
mohan kanth il 4 Mag 2017
i thick problem is in library path - open LiBatteryBlocks.slx, go to 'save as' option, then u will get the library location. copy the link of that location and paste in the Matlab path then run command ssc_build.
  • 'i' is not parameter it should be only in equation section. check if 'i' is in parameter section ( in parameter codes)

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Composite Components in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by