Derivative of state '1' in block PV Array at time 0.0 is not finite error
61 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Nishant
el 17 de Mzo. de 2024
Comentada: Nishant
el 13 de Abr. de 2024
im trying to charge a battery using a solar pv array and i keep getting the following error: An error occurred while running the simulation and the simulation was terminated
Caused by:
- Derivative of state '1' in block 'ChargingBatteryUsingSolarPVArray/PV Array/Diode Rsh/Transfer Fcn' 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)
what am i not doing correctly?
0 comentarios
Respuesta aceptada
R
el 25 de Mzo. de 2024
Hi Nishant,
This error occurs when some operation in the model returns "Inf" or "NaN" output. To debug this error, open Configuration Parameters and navigate to Diagnostics > Data Validity. Set the diagnostic "Inf or NaN block output" to error. When you run your simulation, you will get the error as follows:
An error occurred while running the simulation and the simulation was terminated
Caused by:
Block 'BlockName' outputs 'NaN' for element x of output port x at major time step 0
Where 'BlockName' is the block in which the error is thrown.
This block either divides by 0 or outputs NaN, which creates an Inf which generates this error. Therefore, avoid division by zero in the logic and check operations for possible NaN outputs.
3 comentarios
R
el 12 de Abr. de 2024
It's difficult to identify the specific issue based solely on the image. Could you please attach the Simulink model along with your response so that I can examine it more closely?
Más respuestas (0)
Comunidades de usuarios
Más respuestas en Power Electronics Control
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!