I have tried including the “Memory” block and “Unit Delay” solutions. yet the error persists. Please help. I use MATLAB 2013a.

Thank you.

]]>This is a good point. The Transport Delay is appropriate to break such loop. The main point is that a Transfer Function or a Transport Delay will introduce a delay that is not function of the solver step size.

]]>There is also a diagnostic in the model configuration to trigger an error when a division by zero happens.

]]>An error occurred while running the simulation and the simulation was terminated

Caused by:

Derivative of state ‘1’ in block ‘New_MEC2EA_PandO_paso_FIJO/Baterias24V 3MIL 25 S /Battery4/Model/Current filter’ at time 0.0 is not finite. The simulation will be stopped. There may be a singularity in the solution. If not, try reducing the step size (either by reducing the fixed step size or by tightening the error tolerances)

Can you help me to solve this?.

]]>