Error when change battery parallel and/or series cells in battery module assembly
I’m using the example model charge discharge module assembly with coolant control (openExample(‘simscapebattery/chargeDischargeModuleAssemblyWithCoolantControlExample’). But I change the size of the battery module (for example: number of parallel cells from 4 to 6, and number of series assemblies still on 3) in the CoolantControlCreateLib.mlx.
Then I run ChargeDischargeModuleAssemblyWithCoolantControlExample.mlx but appears an error saying:
Error compiling Simscape network for model coolantControl.
Caused by:
Error using coolantControlLib.ParallelAssemblies.ParallelAssemblyType1> (line 55)
[‘coolantControl/ModuleAssembly/Module1’]: Length of Current (positive in) must be equal to Batteries in Parallel.
Line 55 is:
assert(length(batteryCurrent) == P);
In ParallelAssemblyType1.ssc, P is the parallel cells. Equal to 6.
I don’t understand why length of batterycurrent is not 6.
I checked almost everything and I don’t know what is the cause of the error. thanks!I’m using the example model charge discharge module assembly with coolant control (openExample(‘simscapebattery/chargeDischargeModuleAssemblyWithCoolantControlExample’). But I change the size of the battery module (for example: number of parallel cells from 4 to 6, and number of series assemblies still on 3) in the CoolantControlCreateLib.mlx.
Then I run ChargeDischargeModuleAssemblyWithCoolantControlExample.mlx but appears an error saying:
Error compiling Simscape network for model coolantControl.
Caused by:
Error using coolantControlLib.ParallelAssemblies.ParallelAssemblyType1> (line 55)
[‘coolantControl/ModuleAssembly/Module1’]: Length of Current (positive in) must be equal to Batteries in Parallel.
Line 55 is:
assert(length(batteryCurrent) == P);
In ParallelAssemblyType1.ssc, P is the parallel cells. Equal to 6.
I don’t understand why length of batterycurrent is not 6.
I checked almost everything and I don’t know what is the cause of the error. thanks! I’m using the example model charge discharge module assembly with coolant control (openExample(‘simscapebattery/chargeDischargeModuleAssemblyWithCoolantControlExample’). But I change the size of the battery module (for example: number of parallel cells from 4 to 6, and number of series assemblies still on 3) in the CoolantControlCreateLib.mlx.
Then I run ChargeDischargeModuleAssemblyWithCoolantControlExample.mlx but appears an error saying:
Error compiling Simscape network for model coolantControl.
Caused by:
Error using coolantControlLib.ParallelAssemblies.ParallelAssemblyType1> (line 55)
[‘coolantControl/ModuleAssembly/Module1’]: Length of Current (positive in) must be equal to Batteries in Parallel.
Line 55 is:
assert(length(batteryCurrent) == P);
In ParallelAssemblyType1.ssc, P is the parallel cells. Equal to 6.
I don’t understand why length of batterycurrent is not 6.
I checked almost everything and I don’t know what is the cause of the error. thanks! simscape, battery, simulink MATLAB Answers — New Questions