Effacer les filtres
Effacer les filtres

Derivative of state '1' in block 'matlab_fu​nction_MAT​HWORKS/CHE​RYL KNEE EXTENSION MODEL2/Integrator4' at time 0.918 is not finite. The simulation will be stopped.

3 vues (au cours des 30 derniers jours)
While simulating Simulink model (attached) using mATLAB function contains control algorithm the simulation stop with errors "Derivative of state '1' in block 'matlab_function_MATHWORKS/CHERYL KNEE EXTENSION MODEL2/Integrator4' at time 0.918 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) ".Please help.

Réponses (1)

Salman Ahmed
Salman Ahmed le 11 Oct 2021
Modifié(e) : Salman Ahmed le 11 Oct 2021
Hi Saharul,
This error has occured due to the presence of a NaN value at the input of the integator. To ascertain this, you can set the diagnostic "Inf or NaN block output" to error in the configuration settings. It shows the Zero4 block is the one which has produced this value. You could bypass the NaN values using a suitable condition based on your model. Hope it helps.

Catégories

En savoir plus sur Event Functions dans Help Center et File Exchange

Produits


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by